← index #16295PR #17171
Duplicate · high · value 8.586
QUERY · ISSUE

add support for STM32N6

openby Vincent1-pythonopened 2024-11-24updated 2024-12-28
enhancementport-stm32

Description

Seek to add support for STM32N6,Because it's coming out soon

Code Size

Seek to add support for STM32N6,Because it's coming out soon

Implementation

I hope the MicroPython maintainers or community will implement this feature, I intend to implement this feature and would submit a Pull Request if desirable

Code of Conduct

Yes, I agree

CANDIDATE · PULL REQUEST

stm32: Add support for STM32N6xx MCUs and two N6 boards

mergedby dpgeorgeopened 2025-04-23updated 2025-08-29
port-stm32

Summary

This PR 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
  • mboot support (required, because there's no internal flash)
  • XSPI in memory-mapped mode
  • machine.Pin
  • machine.UART
  • SD card
  • filesystem
  • ROMFS
  • WiFi and BLE via cyw43-driver (SDIO and UART backend)

Supported boards:

  • NUCLEO_N657X0
  • STM32N6570_DK Edit: this board is no longer supported, can be added later if needed
  • OPENMV_N6

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.

The ST CMSIS and HAL files are added verbatim here, but will eventually be moved into stm32lib. Edit: N6 CMSIS and HAL files are now in stm32lib.

OpenMV have generously sponsored the development of this port.

Testing

This PR has been tested on the two N6 boards that are added here.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied