Hi,
I am trying to read and write into files on my PC from the DSP Target (C6455) via JTAG using fopen, fread and fwrite function calls. I am able to open a new file on the host PC from the target but the fread and fwrite function calls are failing. They are just returning zeros. I am using DSP BIOS
Here is my code:
void openWriteInfoFile(void)
{
FILE *fp;
Int32 retVal, numCmds, currCmdLen;
fp = fopen("hello.bin", "rb");
retVal = fread(&numCmds, 4, 1, fp);
retVal = fread(&currCmdLen, 4, 1, fp);
fclose(fp);
}
I have even added 0x10000 bytes of heap in my DDR. It works some times but fails most of the time.
Thanks,
Vish