Skip to main content
Senior
November 17, 2025
Solved

Any limits on flash selection for STM32N6

  • November 17, 2025
  • 3 replies
  • 330 views

From my understanding all STM32N6 chips need a external flash chip and there's a static stage 0 boot loader. 

 

So if this is true is there any limitation's on the brands of flash or speed/address bit size limitations?

 

With the previous stage 0 bootloader for a different non ST product had a lot of limitation on the flash that could be used.

* 16 bit flash address only

* Only support a few brands of flash chips. 

 

Best answer by Brenden_PLUS

So i did find the info in 

* UM3234 - How to proceed with boot ROM on STM32N6 MCUs

* Section 3.4

 

So i've included images of the pages. 

 

It also looks like all these settings are fixed.  There's no OTP setting to changes any of these values. 

Screenshot from 2025-11-20 08-13-38.png

Screenshot from 2025-11-20 08-13-26.png

Screenshot from 2025-11-20 08-13-16.png

Screenshot from 2025-11-20 08-12-56.png

 

 

3 replies

AScha.3
Super User
November 17, 2025

1. Supported External Flash Memory Brands and Types

STM32 MCUs with Quad-SPI, Octo-SPI, Hexadeca-SPI (HSPI), and XSPI interfaces support a wide range of external flash memory brands and types. These interfaces are compatible with:

  • Single-SPI, Dual-SPI, Quad-SPI, Octo-SPI, and 16-bit protocol memories
  • HyperBus™ protocol memories (e.g., HyperRAM, HyperFlash)

Supported memory suppliers include Macronix, Adesto, Micron, AP Memory, Infineon, Winbond, and ISSI. Example supported parts:

  • Quad-SPI: Micron MT25QL128A, NUMONIX N25Q256A, Macronix MX25L5124G, Infineon S25FS128SIFI000
  • Octo-SPI: Macronix MX25UM51245G, MX25LMS51245G, Infineon S71KL512SC0BHI00
  • XSPI: Macronix MX66UW1G45GXDI00, APmemory APS256XXN-OBR-BG

There are no explicit brand limitations, but compatibility should be verified with the STM32 datasheet and reference manual for your device.

"If you feel a post has answered your question, please click ""Accept as Solution""."
TDK
November 17, 2025

@AScha.3 This question is specific to the STM32N6 which is unique in that it relies on external flash to boot up. I would not trust a generic AI answer to be accurate here.

"If you feel a post has answered your question, please click ""Accept as Solution""."
AScha.3
Super User
November 17, 2025

@TDK  , your right, so lets see:

1. Address Bit Size and Memory Access Limitations

  • When using the STM32N6 in Macronix OctaRAM™ mode (XSPI_DCR1 register MTYP[2:0] = 011), only 13 bits of row address are decoded and sent to the memory. This restricts access to 8 K of 1-Kbyte blocks (8 Mbytes). This limitation does not apply to PSRAMs or HyperRAM™ memories.
  • For 256-Mbyte memories in memory-mapped mode, transactions that end at the last address may fail, causing incomplete writes or deadlocks on reads. It is recommended to avoid transactions that end at the last memory address.
  • If DQS is enabled and a wrap includes the last memory address, data corruption or deadlock may occur. Such wraps should be avoided.

2. Supported Flash Memory Types, Interface Speeds, and Addressing

  • STM32N6 supports external flash memory via Quad-SPI, Octo-SPI, Hexa-SPI, and XSPI interfaces.
  • Maximum AHB/AXI frequency: 400 MHz.
  • Maximum Octo-SPI and Hexa-SPI frequency: 200 MHz each.
  • XSPI interface supports a wide range of external serial memories, including those from Macronix, APmemory, Infineon, Winbond, and ISSI, and supports protocols such as OCTABUS and HyperBus.
  • For detailed address size and configuration, refer to the STM32N6 reference manuals and datasheets.

3. Brand and Model Limitations

  • The STM32N6 boot ROM supports booting from various types of external memory, including sNOR x4/x8 flash, HyperFlash™, SD cards (SD V6.0), and eMMC (V5.1).
  • There are no explicit restrictions on brands or models; compatibility is determined by supported interface types and electrical characteristics, not by manufacturer.

Summary

There are no explicit limitations on the brands of external flash memory for STM32N6, as long as the memory is compatible with the supported interfaces (Quad-SPI, Octo-SPI, Hexa-SPI, XSPI) and meets the required electrical characteristics. However, there are technical limitations regarding address bit size and memory access, especially in certain modes and with large memory devices. Always consult the STM32N6 reference manual and datasheets for detailed configuration and compatibility.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Visitor II
June 26, 2026

We are working on an STM32N6-based design and are finalizing the external SPI NOR flash for boot/application storage.

We have shortlisted the following 256 Mbit SPI NOR flash parts:

  1. GD25Q256EYIGR
  2. MX25L25645GMR-08G
  3. XM25QU256DXIQT

As per our understanding from UM3234 and this discussion, STM32N6 boot ROM does not appear to have a specific brand restriction, but the selected flash must be compatible with the required boot ROM read/configuration requirements.

Could you please confirm whether the above parts are suitable for use as external boot SPI NOR flash with STM32N6?

Also, if ST provides any official validated/approved SPI NOR flash list, recommended vendor list, or external-loader supported memory list for STM32N6, please share the reference/document/link.

We want to finalize the memory part for production design, so official confirmation would be very helpful.

Thank you.

Visitor II
July 1, 2026

I would like to follow up regarding SPI NOR flash compatibility with our STM32N6-based design.

As we are finalizing the hardware for production, we would appreciate your confirmation on whether the following 256 Mbit SPI NOR flash devices are suitable for use as the external boot flash with STM32N6:

  • GD25Q256EYIGR
  • MX25L25645GMR-08G
  • XM25QU256DXIQT

Additionally, if there is an official list of validated/recommended SPI NOR flash devices, or any external loader compatibility documentation for STM32N6, we would be grateful if you could share it.

This information is important for us to finalize our production BOM, so your guidance would be greatly appreciated.

We look forward to your response.