What might be the cause of the debugger reporting a double fault when executing the 'svc 0' call to start FreeRTOS on the M4 core of an STM32MP157?
I'm using the 2.1.0 ecosystem with an STM32MP157A-EV1 and am having some problems with running a customized FreeRTOS build on the M4 core while running Linux on the A7s.
I have modifed the linker script so that the code is in SRAM1&SRAM2, resource table & OPENAMP rings & buffers in SRAM3 and data in the rest of SRAM3 and the bss in the RETRAM above the vector table. I'm using FreeRTOS v10.3.1 rather than v10.2.1 that is provided by STM32CubeIDE 1.5.1 & the 1.3.0 FW pack but the port.c code looks the same on both.
My code works fine running in engineering mode with FreeRTOS running my tasks fine. However when I try to use either the built-in STLink on the EV1 or an external Segger J-Trace Pro Cortex-M the system faults when it tries to execute the 'svc 0' call during scheduler start.
If I build a simple dummy FreeRTOS CubeIDE-generated project I can now - after some wrestling with the debuggers - get that to start FreeRTOS okay via Linux.
Any ideas on what else to check would be appreciated.
