diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2020-09-08 17:00:41 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2020-09-08 23:53:12 +1000 |
| commit | 9c9cc7a02f6f998d0141989040d68219d6ad0625 (patch) | |
| tree | a9b5637c516333162088b4c77ade920010a2cf48 | |
| parent | 30e8162ac49d333b00bae4a7f719a1f24692b062 (diff) | |
stm32/boards/USBDONGLE_WB55: Add USE_MBOOT support.
| -rw-r--r-- | ports/stm32/boards/USBDONGLE_WB55/mpconfigboard.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ports/stm32/boards/USBDONGLE_WB55/mpconfigboard.mk b/ports/stm32/boards/USBDONGLE_WB55/mpconfigboard.mk index 416364df9..dcec788ed 100644 --- a/ports/stm32/boards/USBDONGLE_WB55/mpconfigboard.mk +++ b/ports/stm32/boards/USBDONGLE_WB55/mpconfigboard.mk @@ -1,9 +1,18 @@ MCU_SERIES = wb CMSIS_MCU = STM32WB55xx AF_FILE = boards/stm32wb55_af.csv -LD_FILES = boards/stm32wb55xg.ld boards/common_basic.ld STARTUP_FILE = lib/stm32lib/CMSIS/STM32WBxx/Source/Templates/gcc/startup_stm32wb55xx_cm4.o +ifeq ($(USE_MBOOT),1) +# When using Mboot all the text goes together after the bootloader +LD_FILES = boards/stm32wb55xg.ld boards/common_bl.ld +TEXT0_ADDR = 0x08004000 +else +# When not using Mboot the text goes at the start of flash +LD_FILES = boards/stm32wb55xg.ld boards/common_basic.ld +TEXT0_ADDR = 0x08000000 +endif + # MicroPython settings MICROPY_PY_BLUETOOTH = 1 MICROPY_BLUETOOTH_NIMBLE = 1 |
