soc: nordic: nrf54h20: Add default ARM MPU regions
Commit 149df6b61b
("soc: nordic: nrf54h20: Disable USBHS core cache")
inadvertedly removed default MPU regions defined in arm_mpu_regions.c.
Without the SRAM_0 region defined all builds with asserts enabled result
in failed assertion even before the kernel inits. The failed assertion
is the very last step of arch_kernel_init() when MPU areas are marked
for dynamic regions. Because the failure occurs so early, the device
appears completely dead.
Fix the issue by bringing the default regions to nrf54h20 custom
regions file.
Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
This commit is contained in:
parent
28bdcbd3c5
commit
3502b71386
1 changed files with 9 additions and 0 deletions
|
@ -11,6 +11,15 @@
|
|||
#define USBHS_SIZE DT_REG_SIZE_BY_NAME(DT_NODELABEL(usbhs), core)
|
||||
|
||||
static struct arm_mpu_region mpu_regions[] = {
|
||||
MPU_REGION_ENTRY("FLASH_0",
|
||||
CONFIG_FLASH_BASE_ADDRESS,
|
||||
REGION_FLASH_ATTR(CONFIG_FLASH_BASE_ADDRESS,
|
||||
CONFIG_FLASH_SIZE * 1024)),
|
||||
MPU_REGION_ENTRY("SRAM_0",
|
||||
CONFIG_SRAM_BASE_ADDRESS,
|
||||
REGION_RAM_ATTR(CONFIG_SRAM_BASE_ADDRESS,
|
||||
CONFIG_SRAM_SIZE * 1024)),
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usbhs), okay)
|
||||
MPU_REGION_ENTRY("USBHS_CORE", USBHS_BASE,
|
||||
REGION_RAM_NOCACHE_ATTR(USBHS_BASE, USBHS_SIZE)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue