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.
pull/7619/head
Glenn Ruben Bakke 2020-12-13 22:03:18 +01:00 zatwierdzone przez Damien George
rodzic f834fef6bb
commit 3b594f7b27
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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;