We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3808ccd commit 842657aCopy full SHA for 842657a
ports/stm32/flash.c
@@ -159,8 +159,13 @@ static const flash_layout_t flash_layout[] = {
159
160
#define FLASH_LAYOUT_IS_HOMOGENEOUS (1)
161
#define FLASH_LAYOUT_START_ADDR (FLASH_BASE)
162
+#if defined(STM32H7A3xx) || defined(STM32H7A3xxQ)
163
+#define FLASH_LAYOUT_SECTOR_SIZE (0x2000)
164
+#define FLASH_LAYOUT_NUM_SECTORS (256)
165
+#else
166
#define FLASH_LAYOUT_SECTOR_SIZE (0x20000)
167
#define FLASH_LAYOUT_NUM_SECTORS (16)
168
+#endif
169
170
#else
171
#error Unsupported processor
0 commit comments