Skip to content
Permalink
Browse files

linker: add no-flash system support

Non-XIP system with FLASH_SIZE = 0 is no-flash system. And no-flash
system makes text, rodata, and data all in SRAM, so define the marco
ROM_ADDR to RAM_ADDR.

Fixes: #16027.

Signed-off-by: Wentong Wu <wentong.wu@intel.com>
  • Loading branch information...
wentongwu authored and nashif committed May 23, 2019
1 parent d82febd commit 7b3dc920dd555b58436c3c3a21881f0b954e7247
Showing with 5 additions and 0 deletions.
  1. +5 −0 include/arch/arm/cortex_m/scripts/linker.ld
@@ -40,7 +40,12 @@
#define SKIP_TO_KINETIS_FLASH_CONFIG
#endif

#if !defined(CONFIG_XIP) && (CONFIG_FLASH_SIZE == 0)
#define ROM_ADDR RAM_ADDR
#else
#define ROM_ADDR (CONFIG_FLASH_BASE_ADDRESS + CONFIG_FLASH_LOAD_OFFSET)
#endif

#ifdef CONFIG_TI_CCFG_PRESENT
#define CCFG_SIZE 88
#define ROM_SIZE (CONFIG_FLASH_SIZE*1K - CONFIG_FLASH_LOAD_OFFSET - \

0 comments on commit 7b3dc92

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