I want to read a .dat file and store the data to the DDR3 on EVM6678L. Firstly, I use the following code to open a file.
FILE *fp;
if((fp = fopen("data.dat","r"))!=NULL)
{
printf("Open succeed!\n");
}
But the return value of function fopen always is NULL. Never open file succeed.
I want to know how to open the file succeed.?
Best regards