Skip to main content
peterdonchev
Senior
November 2, 2025
Solved

STM32CubeMX 6.15 STM32H523 Incorrect LL MPU code generation

  • November 2, 2025
  • 1 reply
  • 151 views

Hi,
Both Region 1 and Region 2 are configured with ALL READS/WRITES access permissions.

peterdonchev_0-1762109352242.png

The resulting initialization code is as follows:

 /** Initializes and configures the Region 1 and the memory to be protected
 */
 LL_MPU_ConfigRegion(LL_MPU_REGION_NUMBER1, LL_MPU_INSTRUCTION_ACCESS_ENABLE|LL_MPU_ACCESS_INNER_SHAREABLE, LL_MPU_ATTRIBUTES_NUMBER1, 0x08030000, 0x0807FFE0);
 LL_MPU_EnableRegion(LL_MPU_REGION_NUMBER1);

 /** Initializes and configures the Region 2 and the memory to be protected
 */
 LL_MPU_ConfigRegion(LL_MPU_REGION_NUMBER2, LL_MPU_INSTRUCTION_ACCESS_DISABLE|LL_MPU_ACCESS_INNER_SHAREABLE, LL_MPU_ATTRIBUTES_NUMBER0, 0x20010000, 0x20043FE0);
 LL_MPU_EnableRegion(LL_MPU_REGION_NUMBER2);

The second parameter should also include the LL_MPU_REGION_ALL_RW attribute but it is missing.
The .ioc configuration file is attached.

Best answer by Ghofrane GSOURI

Hello @peterdonchev 

This issue has been resolved in the latest version of STM32CubeMX 6.17.0 

Link to download 

THX

Ghofrane

1 reply

Ghofrane GSOURI
Technical Moderator
November 3, 2025

Hello @peterdonchev 

Thank you for your valuable contribution.

The issue has been escalated to the development team under internal ticket ID 221004 for resolution.

I will keep you updated as soon as new information becomes available.

THX

Ghofrane

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.
Ghofrane GSOURI
Ghofrane GSOURIBest answer
Technical Moderator
February 25, 2026

Hello @peterdonchev 

This issue has been resolved in the latest version of STM32CubeMX 6.17.0 

Link to download 

THX

Ghofrane

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.