summaryrefslogtreecommitdiff
path: root/src/stm/registers.ld
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-05-12 22:55:38 -0700
committerKeith Packard <keithp@keithp.com>2014-05-12 22:55:38 -0700
commit530894f508874f4cb3db644ca9ca679ed704f964 (patch)
tree6f0744a9eee34ee9028ee26a77a325ca224a6b7f /src/stm/registers.ld
parent2c543be5548ccda6bd29a2a7659fcc287f7a9f07 (diff)
altos/stm: Figure out available flash space based on chip id registers
Look at the flash size and the device id registers to figure out how much flash is available. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/registers.ld')
-rw-r--r--src/stm/registers.ld5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stm/registers.ld b/src/stm/registers.ld
index 8318c75a..d40fd90f 100644
--- a/src/stm/registers.ld
+++ b/src/stm/registers.ld
@@ -52,5 +52,10 @@ stm_scb = 0xe000ed00;
stm_mpu = 0xe000ed90;
+stm_dbg_mcu = 0xe0042000;
+
/* calibration data in system memory */
stm_temp_cal = 0x1ff80078;
+stm_flash_size_medium = 0x1ff8004c;
+stm_flash_size_large = 0x1ff800cc;
+stm_device_id = 0x1ff80050;