Platform: stm: b_u585i_iot02a: Add flash layout info.
Add B-U585I-IOT02A in cortex M33 list in platform_introduction.rst
Change-Id: Ic8780fe0a8437ec5e783c77b64d3ae12974b43e3
Signed-off-by: Michel Jaouen <michel.jaouen@st.com>
diff --git a/platform/ext/platform_introduction.rst b/platform/ext/platform_introduction.rst
index d134657..b895e29 100644
--- a/platform/ext/platform_introduction.rst
+++ b/platform/ext/platform_introduction.rst
@@ -30,6 +30,8 @@
<https://developer.arm.com/tools-and-software/development-boards/fpga-prototyping-boards/mps3>`_
- `LPC55S69.
<https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc5500-cortex-m33/lpcxpresso55s69-development-board:LPC55S69-EVK>`_
+ - 'B-U585I-IOT02A.
+ <https://www.st.com/en/evaluation-tools/B-U585I-IOT02A.html>`_
- `NUCLEO L552ZE Q.
<https://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-nucleo-boards/nucleo-l552ze-q.html>`_
- `DISCO L562QE.
diff --git a/platform/ext/target/stm/b_u585i_iot02a/include/flash_layout.h b/platform/ext/target/stm/b_u585i_iot02a/include/flash_layout.h
index d45ad34..eeef22d 100644
--- a/platform/ext/target/stm/b_u585i_iot02a/include/flash_layout.h
+++ b/platform/ext/target/stm/b_u585i_iot02a/include/flash_layout.h
@@ -23,6 +23,22 @@
* some of the values are redefined here with different names, these are marked
* with comment.
*/
+ /* Flash layout for b_u585i_iot02a with BL2 (multiple image boot):
+ *
+ * 0x0000_0000 SCRATCH (64KB)
+ * 0x0001_0000 BL2 - counters(16 KB)
+ * 0x0001_4000 BL2 - MCUBoot (84 KB)
+ * 0x0002_7000 OTP Write Protect (4KB)
+ * 0x0002_8000 NV counters area (16 KB)
+ * 0x0002_c000 Secure Storage Area (16 KB)
+ * 0x0003_0000 Internal Trusted Storage Area (16 KB)
+ * 0x0003_4000 Secure image primary slot (256 KB)
+ * 0x0007_4000 Non-secure image primary slot (512 KB)
+ * 0x000f_4000 Secure image secondary slot (256 KB)
+ * 0x0013_4000 Non-secure image secondary slot (512 KB)
+ *
+ * Bl2 binary is written at 0x1_2000:
+ * it contains bl2_counter init value, OTP write protect, NV counters area init.
/* Flash layout info for BL2 bootloader */
#define FLASH_AREA_IMAGE_SECTOR_SIZE (0x2000) /* 8 KB */