I am running the MMC/SD demo that came with the PSP package. it compiles but it has a a warning, and when i run it, it aborts with an error i think is related to the warning.
it has the warning:
Description Resource Path Location Type
BIOS.heapSize and Memory.defaultHeapInstance have both been set. BIOS.heapSize ignored. Using Memory.defaultHeapInstance. mmcsdSample.cfg /mmcsdsample ti.sysbios.BIOS XDCTools Configuration Marker
when i run it to this line of code:
retVal = PSP_blkmediaFATfsRegister(MMC_INST_ID, PSP_MMCSD_SAMPLE_DRIVE);
it gives me this abort message:
[C674X_0] ti.sysbios.heaps.HeapMem: line 309: assertion failure: A_invalidFree: Invalid free
[C674X_0] xdc.runtime.Error.raise: terminating execution
which happens to be this line of code in the heapmem library:
Assert_isTrue((((UArg)addr & HeapMem_reqAlignMask) == 0), HeapMem_A_invalidFree);
so i am trying to figure out if i need to remove the BIOS heap somehow or i need to remove the heapmem heap. which is the right thing to do? is neither? is the memory locations not being aligned and that is why this isn't working right (i ask because the comment above that line of heapmem code is make sure the data is aligned)? if so why are they not being aligned?