altos/stm: Provide another 4kB of flash space for apps
authorKeith Packard <keithp@keithp.com>
Tue, 23 Apr 2013 01:33:33 +0000 (20:33 -0500)
committerKeith Packard <keithp@keithp.com>
Wed, 8 May 2013 04:30:26 +0000 (21:30 -0700)
With the flash loader now < 4kB, we can use the spare 4kB for applications

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm-flash/ao_pins.h
src/stm/altos-application.ld

index 6779fc42ca8a211d47567bd5cad97cb609b65cef..1c00675bd8f1eca76abd0364f96b53809010173d 100644 (file)
@@ -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_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_ */
 
 #endif /* _AO_PINS_H_ */
index c94c06b84c546dc2336868d20a70d866a34b54c3..6affc376a1e75e19887191894728101f51dc8e73 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 MEMORY {
  */
 
 MEMORY {
-       rom (rx) : ORIGIN = 0x08002000, LENGTH = 120K
+       rom (rx) : ORIGIN = 0x08001000, LENGTH = 124K
        ram (!w) : ORIGIN = 0x20000000, LENGTH = 16K
 }
 
        ram (!w) : ORIGIN = 0x20000000, LENGTH = 16K
 }