zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.48k stars 6.41k forks source link

STM32U5 TF-M flash layout clarifications. #65458

Closed ROMAINPC closed 9 months ago

ROMAINPC commented 9 months ago

Hello,\ I am studying the size of the Non-Secure flash memory on an STM32U5 with Trusted Firmware M enable. Reference documentation is UM2851.\ According to this ST documentation there are several flash layouts depending on the secure update mode. (1 swap mode, and 4 others overwrite modes : single image and/or single slot mode).\ The documentation also explains the role of the integrator to enlarge the Non-Secure partition. It is recommended to start from the b_u585i_iot02a project.

There are flash_layout.h and region_defs.h, however the flash_layout.h doesn't match the documentation. 8KB data slots are not mentioned. Above all, the default size of Secure and Non-Secure partitions does not correspond to any layout. This is why I have several questions:

This issue follows this one on the RAM usage.

github-actions[bot] commented 9 months ago

Hi @ROMAINPC! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙