Skip to content

Instantly share code, notes, and snippets.

@BobBurns
Created July 31, 2015 16:50
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 BobBurns/a68f178731c708e8cbb5 to your computer and use it in GitHub Desktop.
Save BobBurns/a68f178731c708e8cbb5 to your computer and use it in GitHub Desktop.
linker script to go with blinky.s
/* linker script for STM32 Cortex M3 c/o pygmy.utoh.org */
SECTIONS
{
/* interupt vectors start at zero */
. = 0x0; /* start of flash */
.text : { *(text) }
/* constant data follows code but still in flash */
.data :
{
*(.data)
*(.rom)
}
/* internal RAM starts at 0x20000000 */
. = 0x20000000;
.ram : { *(.ram) }
.bss :
{
*(.bss)
*(.ram)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment