Tool/software: TI-RTOS
tm4c1294ncpdt
CCS6.1.3
tirtos_tivac_2_10_01_38
compiler: TI V5.1.11
XDC: 3.30.4.52
I have a board with SDRAM at 0x60000000 and size is 8M and a memheap is dynamically created on the whole RAM. Originally HeapTrack is not enabled in .cfg. Today I enabled it trying to debug, and found that ROV detected the heap is corrupted. Please see the snampshot below for details.
The code to create heap is:
int NonCriticalMemInit(void) { HeapMem_Params prms; Error_Block eb; Error_init(&eb); HeapMem_Params_init(&prms); prms.size = GetSdRamTotalSize(); prms.buf = (Ptr)GetSdRamStartAddr(); heapMemNonCritical0 = HeapMem_create(&prms, &eb); return NULL != heapMemNonCritical0; }
If I place a breakpoint at the last line of the above function, I could see the error in ROV. So does it mean HeapTrack can't work with SDRAM, or is there anything wrong when creating the heap?
Thanks