soc: arm: stm32h7x mapping system memory region

System memory declared by the MPU as 'Strongly Ordered'
with region attributes which will inhibit the speculative fetch,
preventing the Flash RDSERR.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2023-07-25 10:23:03 +02:00 committed by Carles Cufí
commit 66caf58265

View file

@ -12,6 +12,15 @@ static const struct arm_mpu_region mpu_regions[] = {
REGION_FLASH_ATTR(REGION_FLASH_SIZE)),
MPU_REGION_ENTRY("SRAM", CONFIG_SRAM_BASE_ADDRESS,
REGION_RAM_ATTR(REGION_SRAM_SIZE)),
/*
* System memory attributes inhibit the speculative fetch,
* preventing the RDSERR Flash error
*/
MPU_REGION_ENTRY("SYSTEM", 0x1FF00000,
{ (STRONGLY_ORDERED_SHAREABLE |
REGION_512K |
MPU_RASR_XN_Msk | P_RW_U_NA_Msk) }),
#if DT_NODE_HAS_STATUS(DT_NODELABEL(mac), okay)
#if DT_NODE_HAS_STATUS(DT_NODELABEL(sram3), okay)
MPU_REGION_ENTRY("SRAM3_ETH_BUF",