cancel
Showing results for 
Search instead for 
Did you mean: 

STM32N6 - booting off Quad spi (OTP) settings

Brenden_PLUS
Senior

Goal boot from a Quad SPI flash

  • I shouldn't need to change any OTP settings.  
  • Any sNor flash chip connected to XSPIM_P2 that can operated in single spi mode can be booted off from?

 

From my understanding if we want to make a dev board and use a different external memory that is not Octo SPI flash but just Quad SPI flash we shouldn't have to change any of the OTP registers.  

Since

  • In sNor flash it starts in single spi mode
    • Then in your FSB you can configure the SPI to your given device(From my understanding)
  • There are no OTP registers for Nor flash settings
    • These are all setup in the ROM
  • Changing OTP 11 bits (5-8) would force us to loose the ability of Dev up (From my understanding)

 

Most of this info is from the

 

 

No boot source is programmed in OTP default source is serial NOR

Screenshot from 2026-02-11 10-35-55.png

No configuration needed

Screenshot from 2026-02-11 08-57-46.png

Default settings for the XSPI from the ROM

Screenshot from 2026-02-11 08-55-19.png

Flash is the boot when Boot1 (low) Fairly curtain thats sNor flash.

Screenshot from 2026-02-11 10-17-46.png

 

Related question

1 ACCEPTED SOLUTION

Accepted Solutions
Brenden_PLUS
Senior

Another good register to have is 

  • HCONF1 - OTP124

 

If you've system is using any 1v8 on any of the VDDIO lines you should set these registers.  Else you might not be able to boot from flash from your FSB because the FSB set the frequency of the spi to fast for it to boot when the configuration is set for a 3v3 line.  

 

 

Brenden_PLUS_0-1777029718114.png

 

View solution in original post

4 REPLIES 4
KDJEM.1
ST Employee

Hello @Brenden_PLUS ;

 

I advise you to look at How to program the OTP fuse bits in the STM32N6 - STMicroelectronics Community article may help you.

 

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Brenden_PLUS
Senior

bootrom configuration table

* BOOTSR == boot rom switches

Screenshot from 2026-04-07 10-04-19.png

Hello @Brenden_PLUS 

Your understanding is correct.
By default, in Flash_Boot mode (BOOT0 = BOOT1 = 0), the STM32N6 BootROM configures XSPI1 on Port 2 in single‑SPI mode with the parameters defined in Table 14 of UM3234. This allows the system to boot and copy a signed FSBL binary into the internal AXISRAM2.


Afterwards, depending on the external NOR Flash memory you plan to use, the final configuration must be performed in your FSBL using the External Memory Manager middleware.

Best regards,

Romain,

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Brenden_PLUS
Senior

Another good register to have is 

  • HCONF1 - OTP124

 

If you've system is using any 1v8 on any of the VDDIO lines you should set these registers.  Else you might not be able to boot from flash from your FSB because the FSB set the frequency of the spi to fast for it to boot when the configuration is set for a 3v3 line.  

 

 

Brenden_PLUS_0-1777029718114.png