cancel
Showing results for 
Search instead for 
Did you mean: 

Enable MPU on NUCLEO-G474RE project

Eric_S0
Associate

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Mahmoud Ben Romdhane
ST Employee

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.

View solution in original post

1 REPLY 1
Mahmoud Ben Romdhane
ST Employee

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.