cancel
Showing results for 
Search instead for 
Did you mean: 

STM32N6 FreeRTOS linker issue for MPU

milanvdm
Associate

I am trying to setup FreeRTOS for the new STM32N6 Nucleo board.

Running into the following error `GCC/ARM_CM55_NTZ/non_secure/port.c:1814: undefined reference to `__privileged_sram_start__'`.

Based on https://github.com/STMicroelectronics/x-cube-freertos/blob/main/Projects/NUCLEO-N657X0-Q/Applications/FreeRTOS_MPU/README.md#notes, it looks like I am missing some linker files. The example itself has it defined at https://github.com/STMicroelectronics/x-cube-freertos/blob/main/Projects/NUCLEO-N657X0-Q/Applications/FreeRTOS_MPU/EWARM/stm32n657xx_axisram2_fsbl.icf#L80 . But looks to be using EWARM whereas I am using CubeIDE.

How can I define/find these linker files needed for the privileged calls?

1 REPLY 1
Saket_Om
ST Employee

Hello @milanvdm 

Did you try with the linker file provided in the example Projects/NUCLEO-N657X0-Q/Applications/FreeRTOS_Mutex?

If your question is answered, please close this topic by clicking "Accept as Solution".

Thanks
Omar