machine: add flash start/end address that can be used for data

This commit is contained in:
Ayke van Laethem
2023-02-20 20:47:42 +01:00
parent cce9c6d5a1
commit 2b7fa93fcb
5 changed files with 39 additions and 0 deletions
+4
View File
@@ -69,3 +69,7 @@ _heap_start = _ebss;
_heap_end = ORIGIN(RAM) + LENGTH(RAM);
_globals_start = _sdata;
_globals_end = _ebss;
/* For the flash API */
__flash_data_start = LOADADDR(.data) + SIZEOF(.data);
__flash_data_end = ORIGIN(FLASH_TEXT) + LENGTH(FLASH_TEXT);