Skip to content

Commit

Permalink
Change the STM32U5 default image header size to resolve vector table …
Browse files Browse the repository at this point in the history
…alignment issues with the Cortex-M33. ZD 17661
  • Loading branch information
dgarske authored and danielinux committed Mar 15, 2024
1 parent 6d927eb commit e8ce553
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/examples/stm32u5-nonsecure-dualbank.config
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ WOLFBOOT_SECTOR_SIZE?=0x2000
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08010000
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x08110000
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0xFFFFFFFF

# Use a larger image header size to enforce alignment requirements for the interrupt vector table
IMAGE_HEADER_SIZE?=1024
3 changes: 3 additions & 0 deletions config/examples/stm32u5.config
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x817F000
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x81FE000
FLAGS_HOME=0
DISABLE_BACKUP=0

# Use a larger image header size to enforce alignment requirements for the interrupt vector table
IMAGE_HEADER_SIZE?=1024
4 changes: 4 additions & 0 deletions docs/Targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ mon reset init

## STM32U5

The STM32U5 is a Cortex-M33 (ARMv8-M).

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.

### Scenario 1: TrustZone Enabled

#### Example Description
Expand Down

0 comments on commit e8ce553

Please sign in to comment.