Browse Source

update link script

Signed-off-by: surenyi <surenyi82@163.com>
master
surenyi 6 years ago
parent
commit
b118622f72
  1. 2
      Makefile
  2. 2
      src/flash.ld
  3. 2
      src/iap.ld

2
Makefile

@ -47,7 +47,7 @@ TARGET ?= audio
-include targets.mk
link_script ?= $(top_dir)/stm32f4x.lds
iap_script ?= $(top_dir)/src/iap.lds
iap_script ?= $(top_dir)/src/iap.ld
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 -D__FPU_USED=1 -D__FPU_PRESENT=1

2
src/flash.ld

@ -2,7 +2,7 @@ ENTRY(Reset_Handler)
_MIN_HEAP_SIZE = 0x200;
_MIN_STACK_SIZE = 0x400;
MEMORY {
flash (rx) : org = 0x08004000, len = 2M
flash (rx) : org = 0x08004000, len = 2032K
ram1 (xrw) : org = 0x20000000, len = 112K
ram2 (xrw) : org = 0x2001c000, len = 16K
ram3 (xrw) : org = 0x20020000, len = 64K

2
src/iap.lds → src/iap.ld

@ -2,7 +2,7 @@ ENTRY(Reset_Handler)
_MIN_HEAP_SIZE = 0x200;
_MIN_STACK_SIZE = 0x400;
MEMORY {
flash (rx) : org = 0x08000000, len = 2M
flash (rx) : org = 0x08000000, len = 16K
ram (xrw) : org = 0x20000000, len = 192K
ccmram (rw): org = 0x10000000, len = 64K
sdram (rw): org = 0xc0000000, len = 32M
Loading…
Cancel
Save