board: s32z2xxdc2: allow the code to be executed from code RAM
- Trace32 runner: no need to configure TE bit in CFG_CORE register in the cmm start-up script, it can be configured at Zephyr start-up code when required (via SCTRL register) - MPU static regions also needs to be updated for XIP and non-XIP Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
This commit is contained in:
parent
56cd16efbd
commit
e4539aa9c9
5 changed files with 32 additions and 20 deletions
|
@ -11,20 +11,25 @@
|
|||
#define DEVICE_REGION_END 0x76FFFFFFUL
|
||||
|
||||
static const struct arm_mpu_region mpu_regions[] = {
|
||||
MPU_REGION_ENTRY("vector",
|
||||
(uintptr_t)_vector_start,
|
||||
REGION_RAM_TEXT_ATTR((uintptr_t)_vector_end)),
|
||||
|
||||
MPU_REGION_ENTRY("SRAM_TEXT",
|
||||
(uintptr_t)__text_region_start,
|
||||
(uintptr_t)__rom_region_start,
|
||||
REGION_RAM_TEXT_ATTR((uintptr_t)__rodata_region_start)),
|
||||
|
||||
MPU_REGION_ENTRY("SRAM_RODATA",
|
||||
(uintptr_t)__rodata_region_start,
|
||||
REGION_RAM_RO_ATTR((uintptr_t)__rodata_region_end)),
|
||||
#ifdef CONFIG_XIP
|
||||
REGION_RAM_RO_ATTR(CONFIG_FLASH_BASE_ADDRESS + KB(CONFIG_FLASH_SIZE))
|
||||
#else
|
||||
REGION_RAM_RO_ATTR((uintptr_t)__rodata_region_end)
|
||||
#endif
|
||||
),
|
||||
|
||||
MPU_REGION_ENTRY("SRAM_DATA",
|
||||
#ifdef CONFIG_XIP
|
||||
(uintptr_t)_image_ram_start,
|
||||
#else
|
||||
(uintptr_t)__rom_region_end,
|
||||
#endif
|
||||
REGION_RAM_ATTR((uintptr_t)__kernel_ram_end)),
|
||||
|
||||
MPU_REGION_ENTRY("DEVICE",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue