Feb 19, 2013 #1 K kender Advanced Member level 4 Joined Jun 19, 2005 Messages 1,428 Helped 138 Reputation 276 Reaction score 39 Trophy points 1,328 Location Stanford, SF Bay Peninsula, California, Earth, Sol Activity points 10,069 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: 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
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: 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
Feb 20, 2013 #2 A ahmad1954 Full Member level 4 Joined Jun 30, 2012 Messages 192 Helped 26 Reputation 52 Reaction score 26 Trophy points 1,308 Activity points 2,102 I don't know ccstudio. but does ccstduio have stdio.h library?