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.

TMS320F280025C: guide to using sprintf in CCSTUDIO

Part Number: TMS320F280025C


could you please tell me if theres something wrong with the code ,if not ,may i know why the control is not going to the code below sprintf

#include "stdio.h"

float x=3.795;
volatile char dummy_data[100]="\r\nDummy Data Test String";

void main(void)
{
int j;

j=sprintf(dummy_data,"\r\nVoltage on Pin no. 2 is %f",x);

}