From ef55d1a3f0cfb5d757325b8ab8ce24b861d85c62 Mon Sep 17 00:00:00 2001 From: ALTracer Date: Mon, 15 Apr 2024 07:19:15 +0300 Subject: [PATCH] stm32h7: Document flash capacities and mention datasheets --- src/target/stm32h7.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/target/stm32h7.c b/src/target/stm32h7.c index 8e36205514e..e6c0d355d84 100644 --- a/src/target/stm32h7.c +++ b/src/target/stm32h7.c @@ -131,6 +131,19 @@ #define STM32H7_DBGMCU_IDCODE_DEV_MASK 0x00000fffU #define STM32H7_DBGMCU_IDCODE_REV_SHIFT 16U +/* + * Flash capacity in STM32 chips is indicated by this number/letter: + * STM32H7B0VBT6 (STM32H74xxI, STM32H72xxE) + * ^ + * where known sizes for STM32H7 families are + * 8: 64 KiB (H7Rx, H7Sx: DS14359-DS14360) + * B: 128 KiB (Value line: DS12556, DS13315, DS13196) + * E: 512 KiB + * G: 1024 KiB + * I: 2048 KiB + * Refer to the (as of 2024) 17 datasheets, Ordering information. + * DS12110/DS12117, DS12919/DS12923, DS12930-DS12931, DS13139/DS13195, DS13311-DS13314. + */ #define STM32H7_FLASH_BANK1_BASE 0x08000000U #define STM32H7_FLASH_BANK2_BASE 0x08100000U #define STM32H7_FLASH_BANK_SIZE 0x00100000U