Skip to content

Instantly share code, notes, and snippets.

@bulislaw
Last active July 13, 2017 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bulislaw/ef69be24b7c09fbf71b3273b60f8c5ac to your computer and use it in GitHub Desktop.
Save bulislaw/ef69be24b7c09fbf71b3273b60f8c5ac to your computer and use it in GitHub Desktop.
Example of ameba linker script
; 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