I’d like to enable the MPU (memory protection unit) on a Cortex-M3 project which is being developed in IAR EWARM. My main goal is to improve the stack overflow protection in FreeRTOS and catch these as they occur, not when FreeRTOS decides to check the stack (on a context switch?).
However, it appears that MPU support is only present in FreeRTOS 7.5.2 for the LPC17xx microcontrollers using GCC-derived toolchains.
Has anyone managed to get the MPU port working on an STM32 with IAR EWARM?
Failing that, is there any way I can configure FreeRTOS to set up the MPU to provide some limited stack overflow protection, even if the full MPU protections don’t apply?