Skip to main content
Associate II
December 23, 2024
Solved

STM32N6 FreeRTOS linker issue for MPU

  • December 23, 2024
  • 2 replies
  • 1742 views

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?

Best answer by Saket_Om

Hello @milanvdm 

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

2 replies

Saket_OmBest answer
Technical Moderator
December 24, 2024

Hello @milanvdm 

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

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question.Saket_Om"
Visitor II
December 3, 2025

I'm working with the STM32N6 dev board, trying to configure XCUBE-FREERTOS.  The following directions do not work and there is no FREERTOS example for STM32Cube_FW_N6_V1.3.0.  I tried to enable and configure FreeRTOS through MX for my project and am unable to select "AppS".  It tells me to disable "AppNS" but I'm not allowed to do that either.  What's going on?