zephyr: drivers/flash/flash_stm32l5_u5.c : unable to use full 2MB flash with TF-M activated
Describe the bug With the current driver, it is not possible to access more than 1MB of the 2MB of stm32u58x MCU when TF-M is activated
To Reproduce
Change storage_partition in dts file (b_u585 board for example) to use offset after 1MB
Build settings sample
west build -b b_u585i_iot02a samples/subsys/settings -p
Expected behavior It is possible to write at this offset of flash
Additional context
correction seems to be to add a second bank for stm32u58x boards in drivers/flash/flash_stm32l5_u5.c:l384
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 22 (10 by maintainers)
Commits related to this issue
- west.yml: tf-m: Fix SAU configuration on U5 Fix SAU configuration on U5 to allow non secure application to use end of flash which is not used by secure. Fixes #53231 Signed-off-by: Erwan Gouriou <e... — committed to erwango/zephyr by erwango a year ago
- west.yml: tf-m: Fix SAU configuration on U5 Fix SAU configuration on U5 to allow non secure application to use end of flash which is not used by secure. Fixes #53231 Signed-off-by: Erwan Gouriou <e... — committed to erwango/zephyr by erwango a year ago
- west.yml: tf-m: Fix SAU configuration on U5 Fix SAU configuration on U5 to allow non secure application to use end of flash which is not used by secure. Fixes #53231 Signed-off-by: Erwan Gouriou <e... — committed to zephyrproject-rtos/zephyr by erwango a year ago
- west.yml: tf-m: Fix SAU configuration on U5 Fix SAU configuration on U5 to allow non secure application to use end of flash which is not used by secure. Fixes #53231 Signed-off-by: Erwan Gouriou <e... — committed to asemjonovs/zephyr by erwango a year ago
@microbuilder I’ve replaced my commit with @jamike’s which was merged in between (https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/19226/2/platform/ext/target/stm/common/stm32u5xx/secure/target_cfg.c)
Sure, I’ve pushed this PR to allow testing. I actually expects @jamike to provide a more complete fix. I’ll keep you posted.