Browse Source

ld: stm32: drop ram to 2k.

Some tiny l0 and f0 devices have only 2k of ram.  That's still plenty
for our blink purposes.

Fixes https://github.com/karlp/libopencm3-miniblink/issues/5
master
Karl Palsson 3 years ago
parent
commit
754ec779ed
1 changed files with 2 additions and 2 deletions
  1. 4
      ld.stm32.basic

4
ld.stm32.basic

@ -1,7 +1,7 @@
/*
* Generic linker script that works for ~all STM32 devices
* ~all STM32 devices have flash at 0x08000000 and at least 8K
* ~all STM32 devices have ram at 0x200000000 and at least 4K
* ~all STM32 devices have ram at 0x200000000 and at least 2K
*
* This is enough for miniblink, but if you try and copy this to your own
* projects, "You're gonna have a bad day"
@ -10,7 +10,7 @@
MEMORY
{
rom (rx) : ORIGIN = 0x08000000, LENGTH = 8K
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 4K
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 2K
}
INCLUDE ./cortex-m-generic.ld
Loading…
Cancel
Save