From 8ded61d59888c79ef1f94e664b5fb770841a801a Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 22 Apr 2013 20:33:33 -0500 Subject: [PATCH] altos/stm: Provide another 4kB of flash space for apps With the flash loader now < 4kB, we can use the spare 4kB for applications Signed-off-by: Keith Packard --- src/stm-flash/ao_pins.h | 2 +- src/stm/altos-application.ld | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stm-flash/ao_pins.h b/src/stm-flash/ao_pins.h index 6779fc42..1c00675b 100644 --- a/src/stm-flash/ao_pins.h +++ b/src/stm-flash/ao_pins.h @@ -75,6 +75,6 @@ #define AO_BOOT_APPLICATION_PIN 0 #define AO_BOOT_APPLICATION_VALUE 1 #define AO_BOOT_APPLICATION_MODE 0 -#define AO_BOOT_APPLICATION_BASE ((uint32_t *) 0x2000) +#define AO_BOOT_APPLICATION_BASE ((uint32_t *) 0x1000) #endif /* _AO_PINS_H_ */ diff --git a/src/stm/altos-application.ld b/src/stm/altos-application.ld index c94c06b8..6affc376 100644 --- a/src/stm/altos-application.ld +++ b/src/stm/altos-application.ld @@ -16,7 +16,7 @@ */ MEMORY { - rom (rx) : ORIGIN = 0x08002000, LENGTH = 120K + rom (rx) : ORIGIN = 0x08001000, LENGTH = 124K ram (!w) : ORIGIN = 0x20000000, LENGTH = 16K } -- 2.30.2