STM32F412x - Stack overflow detection and prevention method
Hi,
I'm using STM32F412 module with freeRTOS (CMSIS_V2) middleware in STCube IDE.
Can I achieve below functionality as a stack overflow feature using STM32 MPU (Memory Protection Unit)?
1. Detect corruption of a function return address before the function returns to that address. I.e., the corrupted return address will not be used and appropriate remediation action will be performed instead, such as rebooting the product into a good known state.
2. Detect corruption of other variables in the stack frame, again before the function completes.
3. Be present in functions that have one or more arrays declared in the functions stack frame (this includes third party library code within the same run-time environment as the application code).
