Other Parts Discussed in Thread: CC2640
Hello Champions,
I'm working with a "modified" SimplePeripheral sdk 1.40 .
Adding HEAPMGR_METRICS I noticed that when a conncetion is enstablished both HeapmgrMemAlo and HeapmgrMemFreeTotal are corrupted.
Before a connection is established:
After a connection is established
In order to trap the HAL assertion I added the predefined symbols :
EXT_HAL_ASSERT
MEM_ALLOC_ASSERT
and registered in the main.c the Asser Handler :
RegisterAssertCback(AssertHandler);
Forcing multiple ICall_malloc(500); I can break into AssertHandler and able to see the stackframe , so the platform is well instrumented.
Letting the Peripheral to run , I don't get any Assert when the Heap variables get corrupted .
What I'm missing ? My doubt is that somewhere on the code multiple ICall_free are called.
How I can debug ?
Thank you,
Paolo