Skip to content

Instantly share code, notes, and snippets.

@esromneb
Created January 7, 2020 05:24
Show Gist options
  • Save esromneb/1846f91588966f5e8e9f3b15e96f8c80 to your computer and use it in GitHub Desktop.
Save esromneb/1846f91588966f5e8e9f3b15e96f8c80 to your computer and use it in GitHub Desktop.
partial ld file without vmem
START_LOC = 0x0000;
IMEM_LEN = 0x6400;
DMEM_LEN = 0x1800;
BOOT_LEN = 0x03f8;
PASS_FAIL_LEN = 0x0008;
MEMORY {
imem (R) : ORIGIN = START_LOC , LENGTH = IMEM_LEN
dmem (RW) : ORIGIN = IMEM_LEN , LENGTH = DMEM_LEN
bootloader (RW): ORIGIN = IMEM_LEN + DMEM_LEN , LENGTH = BOOT_LEN
passfail (RW) : ORIGIN = IMEM_LEN + DMEM_LEN + BOOT_LEN , LENGTH = PASS_FAIL_LEN
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment