Skip to content

Commit 13d697f

Browse files
mattia-moffadanielinux
authored andcommitted
Increase IMAGE_HEADER_SIZE on stm32h5
This is needed to accommodate for the ARM Cortex-M33 interrupt vector alignment requirements. The number of interrupts on the STM32H5 is 149; the next power of 2 is 256; in bytes, that is 1024.
1 parent 6151834 commit 13d697f

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

config/examples/stm32h5-dualbank.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x8140000
2525
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0xFFFFFFFF
2626
FLAGS_HOME=0
2727
DISABLE_BACKUP=0
28+
IMAGE_HEADER_SIZE?=1024

config/examples/stm32h5-tz-dualbank-otp.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ DISABLE_BACKUP=0
2828
FLASH_OTP_KEYSTORE=1
2929
WOLFCRYPT_TZ=1
3030
WOLFCRYPT_TZ_PKCS11=1
31-
ARMORED=1
31+
ARMORED=1
32+
IMAGE_HEADER_SIZE?=1024

config/examples/stm32h5-tz.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ FLAGS_HOME=0
2727
DISABLE_BACKUP=0
2828
WOLFCRYPT_TZ=1
2929
WOLFCRYPT_TZ_PKCS11=1
30+
IMAGE_HEADER_SIZE?=1024

config/examples/stm32h5.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x8140000
2525
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x08010000
2626
FLAGS_HOME=0
2727
DISABLE_BACKUP=0
28+
IMAGE_HEADER_SIZE?=1024

0 commit comments

Comments
 (0)