8000 stm32/boards/USBDONGLE_WB55: Add USE_MBOOT support. · tve/micropython@9c9cc7a · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c9cc7a

Browse files
jimmodpgeorge
authored andcommitted
stm32/boards/USBDONGLE_WB55: Add USE_MBOOT support.
1 parent 30e8162 commit 9c9cc7a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ports/stm32/boards/USBDONGLE_WB55/mpconfigboard.mk

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
MCU_SERIES = wb
22
CMSIS_MCU = STM32WB55xx
33
AF_FILE = boards/stm32wb55_af.csv
4-
LD_FILES = boards/stm32wb55xg.ld boards/common_basic.ld
54
STARTUP_FILE = lib/stm32lib/CMSIS/STM32WBxx/Source/Templates/gcc/startup_stm32wb55xx_cm4.o
65

6+
ifeq ($(USE_MBOOT),1)
7+
# When using Mboot all the text goes together after the bootloader
8+
LD_FILES = boards/stm32wb55xg.ld boards/common_bl.ld
9+
TEXT0_ADDR = 0x08004000
10+
else
11+
# When not using Mboot the text goes at the start of flash
12+
LD_FILES = boards/stm32wb55xg.ld boards/common_basic.ld
13+
TEXT0_ADDR = 0x08000000
14+
endif
15+
716
# MicroPython settings
817
MICROPY_PY_BLUETOOTH = 1
918
MICROPY_BLUETOOTH_NIMBLE = 1

0 commit comments

Comments
 (0)
0