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.