Last active
July 13, 2017 12:54
-
-
Save bulislaw/ef69be24b7c09fbf71b3273b60f8c5ac to your computer and use it in GitHub Desktop.
Example of ameba linker script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Example memory map/addresses | |
; ADDR SIZE DESC | |
; 0x00000000 1M SPI Flash (Or is it 2M?) | |
; 0x10000000 512K SRAM | |
; 0x30000000 1M SDRAM | |
LR_ROM 0x00000000 0x00100000 { ; Flash | |
ROM_SDRAM 0x30000000 0x00100000 { ; Bottom half of SDRAM for ROM | |
*.o (RESET, +First) | |
*(InRoot$$Sections) | |
.ANY (+RO) | |
} | |
RW_SDRAM 0x30100000 0x00100000 { ; Upper half of SDRAM for anything | |
.ANY (+RW +ZI) | |
} | |
} | |
SRAM 0x10000000 0x00080000 { ; 512K SRAM starting at 5M - HEAP? | |
EMPTY_SRAM 0x10000000 EMPTY 0x00080000 { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment