printf() through Spy-Bi-Wire hangs [MSP430, CCStudio]

Status
Not open for further replies.

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
prolifictec.com
Activity points
10,071
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
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…