2024-12-24 12:16 PM
I am trying to start a debugger session to my new NUCLEO-N657X0-Q and getting the following error:
STMicroelectronics ST-LINK GDB server. Version 7.9.0
Copyright (c) 2024, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
Target unknown error 32
Error in initializing ST-LINK device.
Reason: Unknown. Please check power and cabling to target.
I am using the latest version of STM32CubeIDE (1.17.0)
The STM32CubeProgrammer (v2.18.0) is also unable to program any binaries on the board. After changing the Reset Mode to "Hardware reset" I am able to connect to the board, but immediately get the error message:
15:09:28:207 : UR connection mode is defined with the HWrst reset mode
15:09:28:364 : ST-LINK SN : 002F00453433511830343835
15:09:28:365 : ST-LINK FW : V3J15M7
15:09:28:365 : Board : NUCLEO-N657X0-Q
15:09:28:365 : Voltage : 3.27V
15:09:28:365 : SWD freq : 8000 KHz
15:09:28:365 : Connect mode: Normal
15:09:28:365 : Reset mode : Hardware reset
15:09:28:365 : Device ID : 0x486
15:09:28:365 : Revision ID : Rev A
15:09:28:365 : reset ap 1
15:09:28:365 : Reading data...
15:09:28:365 : r ap 1 @0x00000000 0x00000004 bytes Data 0x00000018
15:09:28:365 : r ap 1 @0x00000000 0x00000004 bytes Data 0x00000018
15:09:28:365 : Database: Config 0 is active.
15:09:28:461 : UPLOADING ...
15:09:28:461 : Size : 1024 Bytes
15:09:28:461 : Address : 0x8000000
15:09:28:462 : Read progress:
15:09:28:462 : Reading data...
15:09:28:462 : r ap 1 @0x08000000 0x00000400 bytes Data 0x00000018
15:09:28:541 : r ap 1 @0x08000000 0x00000400 bytes Data 0x00000011
15:09:28:541 : Error: Data read failed
Unfortunately link to user manual UM3417, which is https://www.st.com/resource/en/user_manual/dm01122391.pdf (per STM32 Nucleo-144 boards data brief) is currently unavailable.
I don't understand what I am doing wrong from the error messages, and can't access the user manual. I would appreciate if someone can shed light on the issue I am seeing.
2024-12-24 10:57 PM
Hi @cersoy ,
Try to perform an STLink upgrade from STM32CubeProgrammer.
Regarding the user manual, it should be this one: Data brief - NUCLEO‑xxxxLx/xxxxXx/xxxxZx(-P/Q).
Where do you find the wrong link? Please let me know to fix it.
-Amel
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.
2024-12-25 06:15 AM - edited 2024-12-25 06:17 AM
Thank you Amel for your prompt response. On page 6 of the document you pointed out, there is a link to the user manual of this specific board:
link to UM3417 does not work.
I upgraded the STlink from the STprogrammer per your recommendation. Below are the snippets:
But still no success accessing the board:
Are there any diagnostics I can collect to troubleshoot the problem. Thanks again for your help.
2024-12-25 06:39 AM
What about a full erase of the chip? does it work?
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.
2024-12-25 06:55 AM
Below is what I am getting:
09:50:31:976 : Waiting for device n:1...
09:50:32:043 : ST-LINK SN : 002F00453433511830343835
09:50:32:044 : ST-LINK FW : V3J15M7
09:50:32:045 : Board : NUCLEO-N657X0-Q
09:50:32:046 : Voltage : 3.27V
09:50:32:049 : SWD freq : 8000 KHz
09:50:32:049 : Connect mode: Normal
09:50:32:049 : Reset mode : Hardware reset
09:50:32:052 : Device ID : 0x486
09:50:32:052 : Revision ID : Rev A
09:50:32:062 : reset ap 1
09:50:32:079 : Reading data...
09:50:32:082 : r ap 1 @0x00000000 0x00000004 bytes Data 0x00000018
09:50:32:183 : r ap 1 @0x00000000 0x00000004 bytes Data 0x00000018
09:50:32:184 : Database: Config 0 is active.
09:50:32:235 : MASS ERASE ...
09:50:32:235 : Mass erase operation failed.Please verify flash protection
09:50:32:235 : Please disconnect device n:1 and connect the next...
without access to the user manual I don't know: if there is flash protection or not, and how to resolve it. Please advise.
2024-12-26 12:23 AM
Hi @cersoy ,
Try to check if there are some option bytes already set and that prevent flash erase.
You need the product reference manual (RM0486) rather than the mentioned user manual to understand the option bytes and the flash protection.
-Amel
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.