cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo N6 won't flash

JediMasterEon
Associate II

Same: Target unknown error 32
From the STMCubeIDE
STM32CubeIDE
Version: 1.19.0
Build: 25607_20250703_0907 (UTC)
OS: Windows 11, v.10.0, x86_64 / win32
Java vendor: Eclipse Adoptium
Java runtime version: 21.0.3+9-LTS
Java version: 21.0.3

Flashing a Nucleo N6
Example Uart Console App
Did do the stlink firmware update, seemed to work.
Flashing other boards works...

5 REPLIES 5
TDK
Super User

Try holding BOOT0 high during reset, connect with STM32CubeProgrammer to erase the chip and recover.

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

 

Tried that, STMCubeProgrammer says no STM32 device... to erase it. 
Firmware upgrade dialog does find it with the open upgrade mode function, and flashes, says successful, but no connect in programmer, no flash from the IDE.
I've also tried several different USB cables and ports...

Hi @JediMasterEon 

I'm not sure what you're trying to erase on the Nucleo board? Is it the external flash memory?
Note that there is no internal flash in the STM32N6, so you shouldn't use the Erase function in the STM32CubeProgrammer.

Are you in DEV_BOOT configuration? Can you confirm the BOOT0 and BOOT1 jumper settings on your board?
Could you also check my comments in this thread:

https://community.st.com/t5/stm32-mcus-boards-and-hardware/nucleo-n657x0-q-failed-to-start-gdb-server/m-p/756600/highlight/true#M23206

And here also very good article which can help you:

https://community.st.com/t5/stm32-mcus/stm32n6-fsbl-explained/ta-p/764307

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.

Indeed. No program flash on chip. I did know that, must have slipped my mind... New Nucleo Excitment!
I should have just got the Discovery board.  Can you let me know if my ST Account gets updated with an expense or credit line...  I sent the request...
To my money manager..., maybe  from Amazon, or Kindle Direct, or Adventesia Treasury.
Is there a Hexa-SPI Flash module already designed to work with the Nucleo I can order?
Maybe one with some PSRAM on it too... ?



 

Hi @JediMasterEon 

Refer to the boards user manual UM3417 and UM3300:

https://www.st.com/resource/en/user_manual/um3417-stm32n6-nucleo144-board-mb1940-stmicroelectronics.pdf

The NUCLEO-N657X0-Q embed a 512-Mbit OctoSPI NOR Flash.

The STM32N6570-DK embed a 1-Mbit OctoSPI NOR Flash and also a 256-Mbit Hexadeca-SPI PSRAM. 

https://www.st.com/resource/en/user_manual/um3300-discovery-kit-with-stm32n657x0-mcu-stmicroelectronics.pdf

Both boards are fully supported by STM32CubeProgrammer and STM32Cube_FW_N6_V1.2.0 examples and External Memory Manager Middleware.

The STM32N6 device embed up to 4.2-MByte of SRAM, 128-kByte + 64K-Byte TCM RAM with ECC and 1.5-kByte OTP memory.

Here some useful resource which can help you to start:

https://www.st.com/resource/en/reference_manual/rm0486-stm32n647657xx-armbased-32bit-mcus-stmicroelectronics.pdf

https://www.st.com/resource/en/datasheet/stm32n657a0.pdf

https://www.st.com/resource/en/user_manual/um3234-how-to-proceed-with-boot-rom-on-stm32n6-mcus-stmicroelectronics.pdf

https://www.st.com/resource/en/errata_sheet/es0620-stm32n6xxxx-device-errata-stmicroelectronics.pdf

Getting started with STM32CubeN6 for STM32N6 series - User manual

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.