CPU : K61FX512
Language - C++
I am working on a code that uses a lot of "new" - dynamic mem allocation but doesn't delete the objects after using them.
The Code is running from ext DDR. I am doing a soft reset by jump to application (since soft reset command will send the control to 0x00000000).
I am able to re-initialize the stack pointer properly but heap pointer is managed by EWL which doesn't reset it after this soft reset.
Is it possible to explicitly clear/reset the heap pointer in C++?