Hi Sir:
Below is my platform information
Chipset: i.MX RT1060X Processor
OS: FreeRTOS , version V10.3.0
Memory management by file heap_3.c ( pvPortMalloc and vPortFree)
When I call function "vPortFree" at the end of my execution, I do not see the MCU heap being properly released. I think the function is releasing the heap of the RTOS rather than the on the MCU, right?
If yes, how can I release the heap on the MCU?
Best Regards
Edward
Solved! Go to Solution.
Hi @Edward-Liao33 ,
Yes, heap3.c use system malloc/free function. It seems IDE can't detect new heap usage data after free().
You can test by below code
pt=pvPortMalloc(0x200);
*pt=1;
vPortFree(pt);
The heap usage will increase when malloc, but will not decrease after free().
Regards,
Jing
Hi @Edward-Liao33 ,
Yes, heap3.c use system malloc/free function. It seems IDE can't detect new heap usage data after free().
You can test by below code
pt=pvPortMalloc(0x200);
*pt=1;
vPortFree(pt);
The heap usage will increase when malloc, but will not decrease after free().
Regards,
Jing