kender
Advanced Member level 4
![Advanced Member level 4](/styles/images/ranks/hlevel1.gif)
Colleagues,
I can’t seem to make the printf() to work through Spy-Bi-Wire (SBW) in CCStudio. The program execution just hangs, when it gets to printf().
My setup consists of:
To try to enable the printf(), I’ve changed these settings in Project->Properties:
Here’s my code. Only the while loop was written by me. The rest was when I created the project with Grace.
The problem is that program execution hangs, when it gets to printf().
Any suggestion, insight or reference is really appreciated!
Cheers,
- Nick
I can’t seem to make the printf() to work through Spy-Bi-Wire (SBW) in CCStudio. The program execution just hangs, when it gets to printf().
My setup consists of:
- MSP430FR5739
- MSP-FET430UIF
- Code Composer Studio 5.3.0.00090
To try to enable the printf(), I’ve changed these settings in Project->Properties:
- Console I/O (CIO) enabled
- Stack size 768, heap size 1024
- printf() support minimal
Here’s my code. Only the while loop was written by me. The rest was when I created the project with Grace.
Code:
/*
* ======== Standard MSP430 includes ========
*/
#include <msp430.h>
#include <stdio.h>
/*
* ======== Grace related includes ========
*/
#include <ti/mcu/msp430/Grace.h>
/*
* ======== main ========
*/
int main(void)
{
Grace_init(); // Activate Grace-generated configuration
while (1)
{
P1OUT |= BIT0;
__delay_cycles(100000);
P1OUT &= ~ (BIT0);
__delay_cycles(100000);
printf("*"); [COLOR="#FF0000"]// hangs here[/COLOR]
}
return (0);
}
The problem is that program execution hangs, when it gets to printf().
Any suggestion, insight or reference is really appreciated!
Cheers,
- Nick