How to realise Real-time detection of access of memory beyond the bounds of an allocation block, instead of period detection in Cortex-M4. Please give me any idea.

In my application, I have already redefine malloc and free with keil. Now I hope that the program
will be stopped immediately at the exact location at which the program wrote beyond the
allocated data.

Is there any idea to achieve it?

More questions in this forum