diff options
author | Damien George <damien@micropython.org> | 2024-06-18 17:46:21 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-07-08 16:24:27 +1000 |
commit | eb3ea9ee13093d81053f5d07b8c96e4fc0e1383d (patch) | |
tree | 07f7bb3e3f9c6fb1f4204c531d3c18a29c3cb189 /ports/stm32/flash.c | |
parent | 24fd5f72682922664c0bcf70d6e3631a6d5b8d2b (diff) |
stm32: Add support for STM32N6xx MCUs.
This commit adds preliminary support for ST's new STM32N6xx MCUs.
Supported features of this MCU so far are:
- basic clock tree initialisation, running at 800MHz
- fully working USB
- XSPI in memory-mapped mode
- machine.Pin
- machine.UART
- RTC and deepsleep support
- SD card
- filesystem
- ROMFS
- WiFi and BLE via cyw43-driver (SDIO backend)
Note that the N6 does not have internal flash, and has some tricky boot
sequence, so using a custom bootloader (mboot) is almost a necessity.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/stm32/flash.c')
-rw-r--r-- | ports/stm32/flash.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/stm32/flash.c b/ports/stm32/flash.c index 7668b53a4..85bcee5a9 100644 --- a/ports/stm32/flash.c +++ b/ports/stm32/flash.c @@ -30,6 +30,8 @@ #include "py/mphal.h" #include "flash.h" +#if !defined(STM32N6) + #if defined(STM32F0) #define FLASH_FLAG_ALL_ERRORS (FLASH_FLAG_EOP | FLASH_FLAG_WRPERR | FLASH_FLAG_PGERR) @@ -509,3 +511,5 @@ int flash_write(uint32_t flash_dest, const uint32_t *src, uint32_t num_word32) { return mp_hal_status_to_neg_errno(status); } + +#endif |