Skip to main content
Associate II
September 10, 2026
Question

STM32N6 Nucleo XIP clock frequency problem.

  • September 10, 2026
  • 4 replies
  • 55 views

Hello everyone,

I’m using Nucleo STM32N6 for a project of mine, and I used template XIP to begin with.
In template XIP, clock frequency of the XSPI2 is set to 50Mhz without any prescalers, and VDDIO3 is set to 1 (1.8V). That setup works fine for XIP up to 85Mhz clock frequency, but above that at BOOT (00) it fails as soon as it tries to jump to a application. 
I haven’t been able to resolve this problem. Is it setup, or something with EXT_MEM middleware?


In MX25 datasheet it can be seen that frequency heavily depends on dummy cycles, and 86Mhz corresponds to 8 dummy cycles, but on 200Mhz it requires 20. In EXT_MEM setup there is a 8D8D8D case where i go into during setup and it sets object to 20 dummy cycles, but I’m not sure is it successful in actually forcing that setup. 

Any help would be welcome.

 

4 replies

KDJEM.1
ST Technical Moderator
September 10, 2026

Hello ​@GoranDragovic ;

 

Could you please check if HSLV_VDDIO3 is set to 1.

Please look at this article How to program the OTP fuse bits in the STM32N6 | Community to know how to check HSLV_VDDIO3 value.

 

Than k you.

Kaouthar

 

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.
Associate II
September 10, 2026

Yes, it is set. 

I have two STM32N6 Nucleo boards, on one I set HSLV_VDDIO3 to 1, and on second I set both HSLV_VDDIO2 to 1 also, and they both experience similar problems.

Picture of OTP124 for the board I’m currently using. 

 

KDJEM.1
ST Technical Moderator
September 11, 2026

Hello ​@GoranDragovic ;

 

You can check the number of dummy cycles in XSPI_TCR register CCYC[4:0] bits.

Are you able to run these examples STM32CubeN6/Projects/NUCLEO-N657X0-Q/Examples/XSPI?

 

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.
Associate II
September 14, 2026

Okay, first of all, thank you for your engagement.

I ran XSPI_NOR_MemoryMapped_DTR example, and it is blinking GREEN, but weird part is CLK 200Mhz but Dummy Cycles set to 6, while the MX25 chip datasheet clearly says it should be 20. Also this RUNS code from RAM, it doesn’t to XIP as my code does. 

After that I ran my code that uses EXT_MEM, and with 80Mhz, it sets Dummy cycles to 20 in FSBL, after jump to APPLI, it sets dummy cycles to 10.

Later I set it to 200Mhz, and Dummy are still at 20 but, it fails to jump from FSBL to APPLI.

So I think it’s probably something with XIP handoff.