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.

printf from MSP430

Other Parts Discussed in Thread: MSP430F5529, MSP430FG439

Hi,

Using CCS 4.1 I created a project for MSP430.

The program runs from RAM:

#include "msp430f5529.h"
#include "stdio.h"
int main (void)
{
 printf ("Hello\n");
 return 0;
}

The code runs OK but no "Hello" is printed on the console.

I'm using the switch --printf_support=minimal but this switch should support regular strings.

Can you help ?

Thanks.

 

  • Please check this FAQ for tips when using printf: http://tiexpressdsp.com/wiki/index.php?title=CCE_FAQs#How_to_use_printf_in_CCE_v3.3F

    Although it is written for CCEv3, the same points apply to CCS4 although some of the options may look a bit different in the CCSv4 GUI. For instance, the "Enable CIO function use" is under Project->Properties->CCS Debug->Target tab.

     

  • I am having the same problem but with a MSP430FG439 even I reviewed and done the steps described in your link "How to use printf". CIO is enabled, stack/heap size is 300 bytes. When testing the same project as above (with the header file msp430xg43x.h) I can not see anything in the CIO console. I could step through "printf()" in assembler but nothing goes out to the console. The  CCS  Version I use is : 4.1.2.00027.

    Am I doing something wrong?

    Thanks in advance!

  • I am trying to do the same thing.  And of course it is not working.   

    Did anyone every answer you?

    I also have dozens of other things going wrong, such as " Warning: CPU is OFF and further debugging is not possible."  And there is no support for that either. 

  • Hi Gents,

     

    The warning, you get, that  the CPU is off is an CSS issue. If the CPU is really off or in a Low power mode you could not single step your code. To verify if the CPU is really off , you could look in the CPU status register.  I noticed that the CPU off Bit is not set.

     

    In my understanding this issue is generate by a wrapper driver of CSS. This will be fixed in the upcoming Release 4.2.0 of CSS.

     

    I hope I could help you a little bit.

     

    Regards Florian

**Attention** This is a public forum