diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2022-05-05 12:09:47 -0400 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2022-05-06 15:17:57 -0400 |
commit | 21026c8eb750b35c07bb3ae9fb043fd01e502a06 (patch) | |
tree | dc0f6eb180ba3dc98f2d05334da2eaa92ae38cfb /watch-library/hardware | |
parent | 3ee5749d894b922e9e197301bd7129511ebe3f71 (diff) | |
download | Sensor-Watch-21026c8eb750b35c07bb3ae9fb043fd01e502a06.tar.gz Sensor-Watch-21026c8eb750b35c07bb3ae9fb043fd01e502a06.tar.bz2 Sensor-Watch-21026c8eb750b35c07bb3ae9fb043fd01e502a06.zip |
add room for flash filesystem in linker script
Diffstat (limited to 'watch-library/hardware')
-rwxr-xr-x | watch-library/hardware/linker/saml22j18.ld | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/watch-library/hardware/linker/saml22j18.ld b/watch-library/hardware/linker/saml22j18.ld index a9801509..211e5346 100755 --- a/watch-library/hardware/linker/saml22j18.ld +++ b/watch-library/hardware/linker/saml22j18.ld @@ -32,11 +32,18 @@ OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") OUTPUT_ARCH(arm) SEARCH_DIR(.) -/* Memory Spaces Definitions */ +/* Memory Space Definitions: + * 0x00000000-0x00002000: Bootloader (length 0x2000 or 8192 bytes) + * 0x00002000-0x0003C000: Firmware (length 0x3A000 or 237568 bytes) + * 0x0003C000-0x00040000: EEPROM Emulation (length 0x2000 or 8192 bytes) + * 0x20000000-0x20008000: RAM (length 0x8000 or 32768 bytes) + */ MEMORY { - rom (rx) : ORIGIN = 0x2000, LENGTH = 0x00040000-0x2000 - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00008000 + bootloader (rx) : ORIGIN = 0x0, LENGTH = 0x2000 + rom (rx) : ORIGIN = 0x2000, LENGTH = 0x00040000-0x2000-0x2000 + eeprom (r) : ORIGIN = 0x00040000-0x2000, LENGTH = 0x2000 + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00008000 } /* The stack size used by the application. NOTE: you need to adjust according to your application. */ |