we are using CC2430 mounted on SRF04EB.we are using IAR workbench to progarm. When we wrote the below code,
following errors occured:
#include
#define ecg_size 1250
uint8 ecg[ecg_size]={0};
void main (void)
{uint8 j=0;
FILE *fp;
fp=fopen("C:\Documents and Settings\btp\Desktop\pertest\ecg.txt","r");
while(fp!=EOF){
fscanf(fp,"%d",ecg[j++]);
} }Errors:
Error[Pe020]: identifier "FILE" is undefined C:\Documents and Settings\btp\Desktop\pertest\source\apps\PER_test\per_test.c 336
Error[Pe020]: identifier "fp" is undefined C:\Documents and Settings\btp\Desktop\pertest\source\apps\PER_test\per_test.c 336
Warning[Pe223]: function "fopen" declared implicitly C:\Documents and Settings\btp\Desktop\pertest\source\apps\PER_test\per_test.c 337
Warning[Pe192]: unrecognized character escape sequence C:\Documents and Settings\btp\Desktop\pertest\source\apps\PER_test\per_test.c 337
Warning[Pe192]: unrecognized character escape sequence C:\Documents and Settings\btp\Desktop\pertest\source\apps\PER_test\per_test.c 337
Warning[Pe192]: unrecognized character escape sequence C:\Documents and Settings\btp\Desktop\pertest\source\apps\PER_test\per_test.c 337
Warning[Pe192]: unrecognized character escape sequence C:\Documents and Settings\btp\Desktop\pertest\source\apps\PER_test\per_test.c 337
Warning[Pe223]: function "fscanf" declared implicitly C:\Documents and Settings\btp\Desktop\pertest\source\apps\PER_test\per_test.c 342
Warning[Pe223]: function "fclose" declared implicitly C:\Documents and Settings\btp\Desktop\pertest\source\apps\PER_test\per_test.c 345
Error while running C/C++ Compiler
please help us with this problem