Skip to content
Permalink
Browse files

scripts: make code relocation work for non-XIP system

on non-XIP system, loading address shouldn't be located on
FLASH memory region.

Fixes: #16090.

Signed-off-by: Wentong Wu <wentong.wu@intel.com>
  • Loading branch information...
wentongwu authored and nashif committed May 13, 2019
1 parent 743a184 commit c8f43b9c25e599ed05c13fdee5059867bb378c57
Showing with 7 additions and 1 deletion.
  1. +7 −1 scripts/gen_relocate_app.py
@@ -39,7 +39,13 @@
__{0}_{1}_rom_start = LOADADDR(_{2}_{3}_SECTION_NAME);
"""

LOAD_ADDRESS_LOCATION_FLASH = "GROUP_DATA_LINK_IN({0}, FLASH)"
LOAD_ADDRESS_LOCATION_FLASH = """
#ifdef CONFIG_XIP
GROUP_DATA_LINK_IN({0}, FLASH)
#else
GROUP_DATA_LINK_IN({0}, {0})
#endif
"""
LOAD_ADDRESS_LOCATION_BSS = "GROUP_LINK_IN({0})"

MPU_RO_REGION_START = """

0 comments on commit c8f43b9

Please sign in to comment.
You can’t perform that action at this time.