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.

Only single character parameters working in printf/sprintf

Other Parts Discussed in Thread: MSP430F5438A

Hi All,

I'm using the MSP430F5438A and have just upgraded to Code Composer Studio V5.1.

The sprintf functionality that I was happily using under CCS V4 is now no longer working and of course that also rings true for printf.

The problems I am seeing can be shown with a  few modifications to the Hello World example.

#include <stdio.h>
void  main( void )
{
    printf("Hello World! %i\n", 123 );
    printf("Hello World! %u\n", 123 );
    printf("Hello World! %lu\n", 123 );

}

Only the first character from each parameter is copied into the string and printed so the results are something like:

Hello World! 1cÿ
Hello World! 1cÿ
Hello World! 1fÿÿÿÿÿÿEÅ

I have set the "Level of printf support required" to FULL

And have also increased the default heap size which of course is needed for any printf functionality.

Many thanks in advance for any help.