Skip to content

Instantly share code, notes, and snippets.

@wdwalker
Last active March 12, 2017 17:08
Show Gist options
  • Save wdwalker/25ccdd19b447ef6649e68d5ed231b23e to your computer and use it in GitHub Desktop.
Save wdwalker/25ccdd19b447ef6649e68d5ed231b23e to your computer and use it in GitHub Desktop.
Diffs from CMSIS_5/Device/ARM/ARMCM3/Source/GCC/gcc_arm.ld to set the MEMORY section for the NXP LPC1768
*** ../CMSIS_5/Device/ARM/ARMCM3/Source/GCC/gcc_arm.ld 2017-03-09 18:07:02.000000000 -0500
--- LPC1768.ld 2017-03-09 18:53:18.000000000 -0500
***************
*** 2,8 ****
MEMORY
{
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 512K
! RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 256K
}
/* Library configurations */
--- 2,10 ----
MEMORY
{
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 512K
! RAM (rwx) : ORIGIN = 0x10000000, LENGTH = 32K
! AHB_RAM0(rwx) : ORIGIN = 0x2007C000, LENGTH = 16K
! AHB_RAM1(rwx) : ORIGIN = 0x20080000, LENGTH = 16K
}
/* Library configurations */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment