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.

CCS/TMS320C5515: Scanf is not waiting to give input.

Part Number: TMS320C5515

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