aboutsummaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorMichel Jaouen <michel.jaouen@st.com>2021-06-07 17:10:43 +0200
committerDavid Hu <david.hu@arm.com>2021-06-10 12:03:04 +0200
commit404053e078098836b015d2e78403252ebce46170 (patch)
tree16d1d4e73b43788cce2de049752ca83fd4473542 /platform
parent68cb2a6ffa14860fd630e5f3baa74c87f065da0d (diff)
downloadtrusted-firmware-m-404053e078098836b015d2e78403252ebce46170.tar.gz
platform: stm: Fix stm32l562e_dk test config with ARMCLANG
Change-Id: I7b8946ab6aa1939b130be9ccee618a6d09e17684 Signed-off-by: Michel Jaouen <michel.jaouen@st.com>
Diffstat (limited to 'platform')
-rw-r--r--platform/ext/target/stm/stm32l562e_dk/include/flash_layout.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/platform/ext/target/stm/stm32l562e_dk/include/flash_layout.h b/platform/ext/target/stm/stm32l562e_dk/include/flash_layout.h
index 112d90f50..f02175a9c 100644
--- a/platform/ext/target/stm/stm32l562e_dk/include/flash_layout.h
+++ b/platform/ext/target/stm/stm32l562e_dk/include/flash_layout.h
@@ -58,16 +58,17 @@
*
* Internal flash
* 0x0000_0000 BL2 - MCUBoot (72 KB)
- * 0x0001_2000 NV counters area (4 KB)
- * 0x0001_3000 Secure Storage Area (8 KB)
- * 0x0001_5000 Internal Trusted Storage Area (8 KB)
- * 0x0001_7000 Secure image primary slot (224 KB)
- * 0x0004_f000 Non-secure image primary slot (172 KB)
- * 0x0007_b000 Unused (16 KB)
+ * 0x0001_2000 scratch (8 KB)
+ * 0x0001_4000 NV counters area (4 KB)
+ * 0x0001_5000 Secure Storage Area (8 KB)
+ * 0x0001_7000 Internal Trusted Storage Area (8 KB)
+ * 0x0001_9000 Secure image primary slot (240 KB)
+ * 0x0005_5000 Non-secure image primary slot (172 KB)
+ * 0x0008_0000 Unused (0 KB)
* External flash
- * 0x0000_0000 Secure image secondary slot (224 KB)
- * 0x0003_8000 unused (32 KB)
- * 0x0004_0000 Non-secure image secondary slot (172 KB)
+ * 0x0000_0000 Secure image secondary slot (240 KB)
+ * 0x0003_c000 unused (32 KB)
+ * 0x0004_4000 Non-secure image secondary slot (172 KB)
*/
/* Sector size of the flash hardware */
@@ -127,8 +128,8 @@
#define FLASH_ITS_AREA_OFFSET (FLASH_PS_AREA_OFFSET+FLASH_PS_AREA_SIZE)
#define FLASH_ITS_AREA_SIZE (0x2000) /* 8 KB */
-#define FLASH_S_PARTITION_SIZE (0x38000) /* S partition */
-#define FLASH_NS_PARTITION_SIZE (0x2C000) /* NS partition */
+#define FLASH_S_PARTITION_SIZE (0x3C000) /* S partition */
+#define FLASH_NS_PARTITION_SIZE (0x2B000) /* NS partition */
#define FLASH_PARTITION_SIZE (FLASH_S_PARTITION_SIZE+FLASH_NS_PARTITION_SIZE)
/* Secure image primary slot */
@@ -153,8 +154,8 @@
#define FLASH_ITS_AREA_SIZE (0x2000) /* 8 KB */
#if defined(EXTERNAL_FLASH)
-#define FLASH_S_PARTITION_SIZE (0x38000) /* S partition */
-#define FLASH_NS_PARTITION_SIZE (0x2C000) /* NS partition */
+#define FLASH_S_PARTITION_SIZE (0x3C000) /* S partition */
+#define FLASH_NS_PARTITION_SIZE (0x2B000) /* NS partition */
#else
#define FLASH_S_PARTITION_SIZE (0x2D000) /* S partition */
#define FLASH_NS_PARTITION_SIZE (0x9000) /* NS partition */