Skip to main content
Explorer
April 30, 2026
Solved

Enable MPU on NUCLEO-G474RE project

  • April 30, 2026
  • 1 reply
  • 153 views

The data sheet for the G474RE says it has a Memory Protection Unit. The article on how to enable/configure it in STM32CubeMX shows a CORTEX_M# node under "System Core". I don't see that node. Thank you.

Best answer by Mahmoud Ben Romdhane

Hello @Eric_S0 

Let me thank you for posting and welcome to the ST Community.

Although the STM32G474RE (Cortex-M4) includes a Memory Protection Unit (MPU) at the hardware level, STM32CubeMX does not provide a graphical configuration node (CORTEX_Mx / MPU) for this series under

System Core.

However, the MPU can be fully used by configuring it manually in the application code, using CMSIS or HAL functions (HAL_MPU_ConfigRegion, HAL_MPU_Enable).

Thanks.

Mahmoud

1 reply

ST Technical Moderator
May 4, 2026

Hello @Eric_S0 

Let me thank you for posting and welcome to the ST Community.

Although the STM32G474RE (Cortex-M4) includes a Memory Protection Unit (MPU) at the hardware level, STM32CubeMX does not provide a graphical configuration node (CORTEX_Mx / MPU) for this series under

System Core.

However, the MPU can be fully used by configuring it manually in the application code, using CMSIS or HAL functions (HAL_MPU_ConfigRegion, HAL_MPU_Enable).

Thanks.

Mahmoud

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.