This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR2355: attempting some debugging using console with printf?

Part Number: MSP430FR2355


Hello...

I have the following code in main.c

    if (ERR_FUNC_RTN == init_UART(&applicationUART))
            printf("ERROR\n");

I have stdio.h included....

When I run the application with faulty parameters and get to this statement my code halts in trgmsg.c at

    for (i = 0; i < length; i++) PACKCHAR(*data++, p, i+8);

Even without any breakpoints....If I hit the run button to continue the print works.  I have adjusted heap and stack to 400...Can someone tell me how to get around not having the program halt and having to "re" hit the run button?

Using CCS 10.4.0

  • Hi Steve,

    The issue you are having sounds like the one reported in this thread. Unfortunately, I don't believe there is a fix for this issue.

    In general, I avoid printf on these systems since is a resource heavy function. You can try using the backchannel UART if you want to have a textual debug console. Of course this is more work for you to implement. 

    Regards,

    Evan

**Attention** This is a public forum