Skip to main content
BCowp.1
Associate II
August 23, 2024
Question

STM32U5 FreeRTOS MPU Support

  • August 23, 2024
  • 3 replies
  • 2913 views

Versions:
STM32CubeMX 6.12.0
FreeRTOS X-Cube-FREERTOS 1.1.10 (FreeRTOS Kernel 10.5.1)
STM32U5 MCU Package 1.6.0

Although STM32CubeMX now has support for FreeRTOS, it does not appear to recognise the FreeRTOS support (https://www.freertos.org/Security/04-FreeRTOS-MPU-memory-protection-unit) for the Cortex-M33 MPU: 

BCowp1_1-1724423362897.png

It also does not include mpu_wrappers.c, which means I cannot enable configENABLE_MPU in FreeRTOSConfig.h manually without also copying this from the canonical FreeRTOS kernel release.

I have, in fact, manually imported mpu_wrappers.c and turned on configENABLE_MPU. Everything appears to work quite nicely.

Why is this option not supported?

What, if any, dragons have I unearthed by turning it on?

If the there are no dragons, then clearly this is an oversight and should be included in later releases. It adds a frustrating extra step to upgrading FreeRTOS versions with CubeMX.

 

This topic has been closed for replies.

3 replies

ST Employee
September 6, 2024

Hello @BCowp.1 , 

Thank you for your feedback 

I've reported this request to the CubeMX team ( Internal Ticket: Ticket 190405). I'll keep you updated if there are any updates 

 

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.
Associate II
December 28, 2024

Hi @Sarra.S , do you have an update on this topic / ticket ?

ST Employee
January 6, 2025

I will keep you updated @clemens! 

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.