diff --git a/Makefile b/Makefile index 1168fd2..5a5f1da 100644 --- a/Makefile +++ b/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 diff --git a/src/flash.ld b/src/flash.ld index 8636d1e..788df8b 100644 --- a/src/flash.ld +++ b/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 diff --git a/src/iap.lds b/src/iap.ld similarity index 98% rename from src/iap.lds rename to src/iap.ld index 50b4142..4e232a7 100644 --- a/src/iap.lds +++ b/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