Skip to content
Commit 93869605 authored by Weifeng Li's avatar Weifeng Li Committed by Fabio Baltieri
Browse files

drivers: flash: flash_stm32l5x: fix the STM32U5X flash bank issue



STM32U5X has 128k/256k/512k/1M/2M dual bank Flash.
The address of the 2 bank are continuous, so it's no need a "Dummy page"
in "stm32_flash_layout", which cause wrong slot1 section (for secondary
image), and the BANK2_OFFSET is not right either, which cause
"flash_stm32_valid_range" return a failure.
To fix the issue, just set CONFIG_FLASH_SIZE to STM32_SERIES_MAX_FLASH
Tested on NUCLEO-U545RE with mcuboot.

Signed-off-by: default avatarWeifeng Li <weifeng.li@aofrio.com>
parent 4b1f2da9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment