Skip to content

Commit 9233753

Browse files
pi-anldpgeorge
authored andcommitted
stm32/boards: Increase mboot region to 32k for WB55 boards.
If mboot is built with support for packing (signing/encryption) it needs up to 32KiB. So for simplicity increase the mboot region to 32KiB unconditionally for WB55 boards (custom WB55 board configurations can still provide their own linker scripts to override this).
1 parent 1fbf0ef commit 9233753

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ports/stm32/boards/NUCLEO_WB55/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ STARTUP_FILE = $(STM32LIB_CMSIS_BASE)/Source/Templates/gcc/startup_stm32wb55xx_c
66
ifeq ($(USE_MBOOT),1)
77
# When using Mboot all the text goes together after the bootloader
88
LD_FILES = boards/stm32wb55xg.ld boards/common_bl.ld
9-
TEXT0_ADDR = 0x08004000
9+
TEXT0_ADDR = 0x08008000
1010
else
1111
# When not using Mboot the text goes at the start of flash
1212
LD_FILES = boards/stm32wb55xg.ld boards/common_basic.ld

ports/stm32/boards/USBDONGLE_WB55/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ STARTUP_FILE = $(STM32LIB_CMSIS_BASE)/Source/Templates/gcc/startup_stm32wb55xx_c
66
ifeq ($(USE_MBOOT),1)
77
# When using Mboot all the text goes together after the bootloader
88
LD_FILES = boards/stm32wb55xg.ld boards/common_bl.ld
9-
TEXT0_ADDR = 0x08004000
9+
TEXT0_ADDR = 0x08008000
1010
else
1111
# When not using Mboot the text goes at the start of flash
1212
LD_FILES = boards/stm32wb55xg.ld boards/common_basic.ld

ports/stm32/boards/stm32wb55xg.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
MEMORY
77
{
88
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K /* sectors 0-127 */
9-
FLASH_APP (rx) : ORIGIN = 0x08004000, LENGTH = 496K /* sectors 4-127 */
9+
FLASH_APP (rx) : ORIGIN = 0x08008000, LENGTH = 480K /* sectors 8-127 */
1010
FLASH_FS (r) : ORIGIN = 0x08080000, LENGTH = 256K /* sectors 128-191 */
1111
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 192K /* SRAM1 */
1212
RAM2A (xrw) : ORIGIN = 0x20030000, LENGTH = 10K /* SRAM2A */

0 commit comments

Comments
 (0)