cancel
Showing results for 
Search instead for 
Did you mean: 

Flash erase fails on STM32N6 Nucleo board once FSBL executes HAL XSPI initialization

edwind
Associate II

Dear,

When running the FSBL that includes HAL XSPI initialization logic on the Nucleo-N657X0-Q board (MB1940-N657X0Q-C02), the flash erase with the STM32CubeProgrammmer v2.22 sometimes fails. However, if I leave out the XSPI initialization logic for accessing the NOR flash, flash erase always succeeds. BOOT pin 1 is set to DEV and I am loading the FSBL firmware directly into RAM.

Do you have any idea why XSPI Init causes the flash erase to fail ?

BR,

EdwinD

 

11 REPLIES 11

Hello @edwind ;

 

Could you please try with another binary file like as blink led binary.

Do you get the same issue?

 

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.

Mikk Leini
Senior III

I have NUCLEO-N657X0-Q that I haven't used yet and when I read out its HWCONF1 (OTP124) I see that HSLV_VDDIO3 is 0, which means XSPI2 isn't configured for less than 2.5V operation mode. But NOR Flash is at 1.8V based on schematic, so I suppose this bit must be set. Otherwise Flash is used with overvoltage...?!?

It reminds me this article: How to program the OTP fuse bits in the STM32N6 - STMicroelectronics Community

It appears N6 DK's have XSPI1 and XSPI2 low voltage bits set in factory and Nucleo's don't have. Note that Nucleo's do not have PSRAM, so only XSPI2 needs to be set.