Other Parts Discussed in Thread: HALCOGEN
Tool/software:
I have an application running on FreeRTOS that works smoothly as a standalone program. However, when I flash it through the bootloader, reboot, and jump to the application from the bootloader, the system raises a data abort exception after the scheduler starts. This exception occurs at the beginning of one of the tasks, specifically at the line where I define and initialize a small array.
After thorough debugging, I identified that the issue is related to the Memory Protection Unit (MPU). Disabling the MPU in FreeRTOS resolves the issue. My question is, what could be causing the MPU to malfunction when jumping from the bootloader to the application, and why does this issue not occur when the application is flashed directly without the bootloader?