nrf/boards/common.ld: Calculate unused flash region.
Calculate the unused flash area on the target device. The values will be exposed by _unused_flash_start and _unused_flash_length. The start address and the length are not aligned to either word or pages.
This commit is contained in:
parent
f834fef6bb
commit
3b594f7b27
@ -81,3 +81,5 @@ SECTIONS
|
||||
/* Define heap and stack areas */
|
||||
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||
_estack = ORIGIN(RAM) + LENGTH(RAM);
|
||||
_unused_flash_start = (_sidata + (_edata - _sdata));
|
||||
_unused_flash_len = (ORIGIN(FLASH_TEXT) + LENGTH(FLASH_TEXT)) - _unused_flash_start;
|
||||
|
Loading…
x
Reference in New Issue
Block a user