summaryrefslogtreecommitdiffstatshomepage
path: root/ports/stm32/storage.h
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stm32/storage.h')
-rw-r--r--ports/stm32/storage.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/stm32/storage.h b/ports/stm32/storage.h
index accf6c3904..75cb0e9c1e 100644
--- a/ports/stm32/storage.h
+++ b/ports/stm32/storage.h
@@ -28,7 +28,11 @@
#include "drivers/memory/spiflash.h"
+#if defined(STM32N6)
+#define FLASH_BLOCK_SIZE (4096)
+#else
#define FLASH_BLOCK_SIZE (512)
+#endif
#define FLASH_PART1_START_BLOCK (0x100)
// Try to match Python-level VFS block protocol where possible for these constants