How to fill unused memory locations with RESET opcode or specific pattern?
I've developed a safety critical application over STM32F103RG microcontroller.
I want to add a fail-safe mechanism to it by making sure that all unused memory locations are either carrying opcode to RESET (like available in PICmicros) or any specific pattern.
I went through this question on the forum, but it doesn't provide instructions to follow for the STM32CubeIDE platform.
Also, if this feature is not available in STM32F, how can this be taken care of? The answer which I've linked says accessing unused memory will throw unhandled exception anyway (is it the hardfault?) If yes, then how should this exception / fault be handled?
