Tool/software: Code Composer Studio
Dear all,
I'm having problems with the scanf function in code composer studio. I'm using the EZ-DSP board from spectrum digital and CCS to program the C5515 DSP.
I use the code below:
#include <stdio.h>
void main(void){
char name[20];
printf("What is your name?\n");
scanf("%f",name);
printf("Hello to DSP, %s!\n",name);
}
In the code above, I do not get a prompt that waits for input on the console in CCS. As a result I get some weird data.
What is your name?
Hello to DSP, �±H×ëõT(4ÒýݾsÁ?Ÿ�Ó…
Using the debugger, it just jumps over the scanf function.
I use CCS 10 and my compiler version is TI v4.4.1. Are there any solutions that could help me.
Thanks