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.

CCS: msp430g2553 Launchpad and printf



Tool/software: Code Composer Studio

Hi,

That was an enthralling thread last year concerning the memory issues with printf().  I am keen to try the tiny printf() version but I cannot get the example provided to work.  Please put me out of my misery!

Many thanks,

Mark

  • I've been on this forum long enough to know what the next message from TI is going to say, so I'll save you a little time and do it for them. What exactly do you mean by "I cannot get the example provided to work" ? Please provide details, screen shots, copies of any error messages, tell us what version of CCSyou are using, etc.
  • Mark,

    As Lloyd mentioned, the post is too vague to make any assumptions.

    I imported the project from the linked post and was able to build and run without issues.  I am using CCSv8.1.0.

    Regards,

    Rafael

  • Hi guys,

    Thank you both for your prompt responses. My vagueness was as a result of extreme agitation at my inability to get anything to work!

    I was unsure how to proceed with the tiny_printf.c and main.c files as I am used to seeing a .h header file I can include at the top of main.c However, following your screenshot, Rafael, my son was able to set me right and that example is now working correctly. Even better, he set up my project with tiny_printf() and that is now also giving me great information on dynamic conditions within my program.

    Thanks again!

    Mark
  • Mark,

    I am glad the post helped you to give reassurance to move forward. 

    Another approach that developers use with this device is to use the UART to printf messages (an example can be found here).

    This requires some initial setup but it there is a chance it uses less code and data (I did not test this). 

    Regards,

    Rafael

  • Hi Rafael,

    Thanks for the follow-up. I will certainly have a look at the UART option, although I am only using printf() for prototyping and will not need it in the production system.

    Thanks again for your interest.

    Mark