2025-11-02 10:55 AM
Hi,
Both Region 1 and Region 2 are configured with ALL READS/WRITES access permissions.
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.