To anyonethat might be able to help
Im programing an MSP430F169 Micro using CodeComposer Studio 4. Pretty much everything works fine until i try to use SPRINTF. Im using the line below and including the proper include files but with no luck. Its very strange in that it does partially work. The formatting text is printed properly but the variables are not.
Code that i used.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include <stdio.lib>
int a = 120;
int b = 240;
int c = 360;
int d = 480;
char buffer[30];
sprintf(buffer,"Var 1 = %3u Var 2 =%3u Var 3 =%3u Var 4 =%3u",a,b,c,d)
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
What i expect to get is "Var 1=120 Var 2 =240 Var 3 =360 Var 4=480"
what i actually get is "Var 1= Var 2 = Var 3 = Var 4= "
As you can see i get the formating text....but i dont get the values of the variables. ANY THOUGHTS?