2025-05-14 2:33 AM - edited 2025-05-14 8:41 AM
Hi everyone,
Apologies in advance if this is a trivial issue, but I’ve just started working in the embedded world and I'm trying to get my bearings.
I'm using a Nucleo-N657X0-Q board with an integrated NPU. I created a project to deploy a neural network using STM32CubeMX, and the compilation in STM32CubeIDE completed successfully without errors.
I followed, with some adjustments, this guide: https://community.st.com/t5/stm32-mcus/how-to-debug-stm32n6-using-stm32cubeide/ta-p/800547
Although the guide refers to a different board (flash-less), I was able to configure the Run mode as shown in the last figure of Step 5. However, when trying to program the board, I get the following error:
-------------------------------------------------------------------
STM32CubeProgrammer v2.19.0
-------------------------------------------------------------------
ST-LINK SN : 0017003B3233511439363634
ST-LINK FW : V3J15M7
Board : NUCLEO-N657X0-Q
Voltage : 3.28V
SWD freq : 8000 KHz
Connect mode: Normal
Reset mode : Software reset
Device ID : 0x486
Revision ID : Rev B
Device name : STM32N6xx
Device type : MCU
Device CPU : Cortex-M55
BL Version : --
Opening and parsing file: test_npu_Appli-Trusted.bin
Memory Programming ...
File : test_npu_Appli-Trusted.bin
Size : 1.24 MB
Address : 0x08000000
Erasing memory corresponding to sector 0:
Download in Progress:
��������������������������������������������������
Error: failed to download Sector[0]
Error: failed to download the File
0%
The .bin file is correct and present in the specified directory. The board's jumpers are set to development mode, meaning:
BOOT0 = 0
BOOT1 = 1
The following is what happens in the IDE e the hardware configuration with jumpers:
Could it be that the address 0x08000000 I used for the download is not valid for this board (unlike the one in the guide, which is flash-less)? Or is there another possible reason why sector 0 can't be programmed ? Are there any detailed manuals I can read ?
Thanks in advance!