cancel
Showing results for 
Search instead for 
Did you mean: 

Connection error while using NUCLEO-N657X0-Q with STM32CubeProgrammer

Wen0127
Visitor

I was trying to deploy YOLO models with NUCLEO-N657X0-Q board, following instructions shown in the README file in the repository "STM32N6-GettingStarted-ObjectDetection"README.md . While using prebuild binaries, it told me to use STM32CubeProgrammer to program several .hex files. And here's the problem:

After connected, I choose the "ai_fsbl.hex" file, and clicked "start programming".Then the connection is disabled, with 2 messages saying "connections to device 0x486 is lost" and "failed to download files".

Wen0127_1-1756198844462.png

 

The log is shown below:

16:51:32 : Opening and parsing file: ai_fsbl.hex
16:51:32 : Memory Programming ...
16:51:32 :   File          : ai_fsbl.hex
16:51:32 :   Size          : 59.59 KB 
16:51:32 :   Address       : 0x70000000
16:51:32 : Erasing memory corresponding to segment 0:
16:51:32 : Download in Progress:
16:51:32 : Error: failed to download  Sector[0]
16:51:32 : Error: failed to download the File
16:51:32 : Warning: Connection to device 0x486 is lost
16:51:32 : Disconnected from device.

 After the disconnection, I can't connect the board to the CubeProgrammer again until I unplug the wire connecting the board with my laptop and then plug it back. Same error messages show every time when I try to connect the board again.

Here are more info of my enviroment/settings:

Enviroment:

Windows11

CubeProgrammer v2.20.0

CubeIDE & CubeMX also installed (newest ver)

STLINK of the board is updated to V3J16M8

The cable is a USB C-to-A cable. I've seen some posts saying that the C-to-C cable may solve the problem, but I don't have one at now. I've bought one C-to-C cable through Alibaba and it should be delieverd to me tomorrow, then I'll try if the cable can solve the issue. 

Settings:

1. The ST-LINK configuration is shown below:

Wen0127_2-1756199189617.png

I've tried changing some of the configuration like "Frequency", "Mode", "Reset mode", but it doesn't work, the same messages still show. 

2. The programming configurations are shown below:

Wen0127_3-1756199429856.png

Wen0127_4-1756199445946.png

I've also tried several different settings, but it still didn't work.

 

If any other informations needed, please inform me and I'll post it in the comments. And I'll be very appreciated if you could tell me what to do to solve this. Thanks.

0 REPLIES 0