Skip to content

Commit e8ce553

Browse files
dgarskedanielinux
authored andcommitted
Change the STM32U5 default image header size to resolve vector table alignment issues with the Cortex-M33. ZD 17661
1 parent 6d927eb commit e8ce553

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

config/examples/stm32u5-nonsecure-dualbank.config

+3
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ WOLFBOOT_SECTOR_SIZE?=0x2000
2323
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08010000
2424
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x08110000
2525
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0xFFFFFFFF
26+
27+
# Use a larger image header size to enforce alignment requirements for the interrupt vector table
28+
IMAGE_HEADER_SIZE?=1024

config/examples/stm32u5.config

+3
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x817F000
2525
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x81FE000
2626
FLAGS_HOME=0
2727
DISABLE_BACKUP=0
28+
29+
# Use a larger image header size to enforce alignment requirements for the interrupt vector table
30+
IMAGE_HEADER_SIZE?=1024

docs/Targets.md

+4
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ mon reset init
229229

230230
## STM32U5
231231

232+
The STM32U5 is a Cortex-M33 (ARMv8-M).
233+
234+
Note: We have seen issues with vector table alignment, so the default image header size (IMAGE_HEADER_SIZE) has been increased to 1024 bytes to avoid potential issues.
235+
232236
### Scenario 1: TrustZone Enabled
233237

234238
#### Example Description

0 commit comments

Comments
 (0)