Tool/software: TI-RTOS
Dear Support Team,
When I call this method:
Memory_Stats stats;
HeapMem_getStats(NULL, &stats);
I got the following error:
ti.sysbios.family.arm.m3.Hwi: line 1095: E_hardFault: FORCED ti.sysbios.family.arm.m3.Hwi: line 1172: E_busFault: PRECISERR: Immediate Bus Fault, exact addr known, address: 140f04f4 Exception occurred in background thread at PC = 0x000b5530. Core 0: Exception occurred in ThreadType_Task. Task name: ConfigBoot, handle: 0x200035b8. Task stack base: 0x20003620. Task stack size: 0x800. R0 = 0x09f3efbf R8 = 0x00000001 R1 = 0x00000000 R9 = 0x00000000 R2 = 0x09f3efbf R10 = 0xffffffff R3 = 0x09f3efbf R11 = 0xffffffff R4 = 0x20003c78 R12 = 0x00000000 R5 = 0x20033fb8 SP(R13) = 0x20003c60 R6 = 0x00000000 LR(R14) = 0x000b866d R7 = 0x140f04f0 PC(R15) = 0x000b5530 PSR = 0x21000000 ICSR = 0x00423803 MMFSR = 0x00 BFSR = 0x82 UFSR = 0x0000 HFSR = 0x40000000 DFSR = 0x00000000 MMAR = 0x140f04f4 BFAR = 0x140f04f4 AFSR = 0x00000000 Terminating execution...
I got the following headers included:
// to print heapSize #include <xdc/runtime/Memory.h> #include <ti/sysbios/heaps/HeapMem.h>
When I step inside the getStats() i can debug step by step, but later the exception fired.
I tried in different tasks not just ConfigBoot but same result.
Can you help me how to go on?
Should I set anything in *.cfg? Is there any detailed description? Thank you in advance!