summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-04-08 14:34:37 +1000
committerDamien George <damien.p.george@gmail.com>2019-04-08 14:34:37 +1000
commit4831e38c7e3f7b46be3282354c0f6051bb96f6e6 (patch)
treebca7e16cd8571cce8989ee2c36c71742ff900184
parentfd13ce5e60143491f0db24655393cea5437ee85b (diff)
stm32/boards/NUCLEO_H743ZI: Add config options to support mboot.
-rw-r--r--ports/stm32/boards/NUCLEO_H743ZI/mpconfigboard.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/ports/stm32/boards/NUCLEO_H743ZI/mpconfigboard.mk b/ports/stm32/boards/NUCLEO_H743ZI/mpconfigboard.mk
index 4d3455441..1d232e080 100644
--- a/ports/stm32/boards/NUCLEO_H743ZI/mpconfigboard.mk
+++ b/ports/stm32/boards/NUCLEO_H743ZI/mpconfigboard.mk
@@ -1,7 +1,18 @@
+USE_MBOOT ?= 0
+
+# MCU settings
MCU_SERIES = h7
CMSIS_MCU = STM32H743xx
MICROPY_FLOAT_IMPL = double
AF_FILE = boards/stm32h743_af.csv
+
+ifeq ($(USE_MBOOT),1)
+# When using Mboot all the text goes together after the filesystem
+LD_FILES = boards/stm32h743.ld boards/common_blifs.ld
+TEXT0_ADDR = 0x08040000
+else
+# When not using Mboot the ISR text goes first, then the rest after the filesystem
LD_FILES = boards/stm32h743.ld boards/common_ifs.ld
TEXT0_ADDR = 0x08000000
TEXT1_ADDR = 0x08040000
+endif