cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX 6.15 STM32H523 Incorrect LL MPU code generation

peterdonchev
Senior

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.

0 REPLIES 0