Hey there,
I am trying to run a really simple program on the DSP via MPMCL on the C66AK2H12.
FILE *configFile;
int FileSize,fNumRead;
char *bufConfig;
configFile = fopen("encoder123.cfg", "rb");
System_printf("File handle %08x\n",configFile);
if (configFile == NULL) {
System_printf("Failed to open file: %d", configFile);
return;
}
FileSize = ftell(configFile);
System_printf("File has %d", FileSize);
if (0 != fseek (configFile, 0, SEEK_SET)) {
System_printf("Failed to seek file");
return;
}
The problem I have that fopen always succeeds, and ftell returns 1012 no matter whether the file is there or not. I tried various settings regarding the heap to no luck:
BIOS.heapSize = 0x40000;
xdc.useModule('xdc.runtime.HeapStd');
Any more ideas on what could be wrong?
Karsten