How to deal wirh : Could not verify ST device! ?
Dear all,
Could not verify ST device!
This error popped up suddenly and blocks any progress. I took an older computer and had the same error again.
Therefore, I suspected a hardware failure and ordered new adapters and processor boards, but I kept having the same error again.
I have upgraded the STM32CubeIDE, the st-link drivers (dpinst_amd64.exe) and st-stlink-server(st-stlink-server.1.1.1-3.msi).
The st_link v2 adapter have been upgraded with the latest firmware.
Using STM32 Link Utility, I was able to program, verify and run blink applications.
I am using BluePills (STM32F103C8) with chinese adapters on a 64 bit Windows 10 machine.
Please find below the output produced when starting debugging in STM2CubeIDE using the GDB server in SWD mode.
I also selected the OPENOCD debugger, but it also failed, though in a different way.(see below)
Does anyone have a suggestion how to proceed on this?
Cheers, Paul
..........................ST-LINK GDB server.....................
STMicroelectronics ST-LINK GDB server. Version 5.2.3
Copyright (c) 2019, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
LogFile Name : C:\Users\Paul_2\Documents\STM32\Workspace\test\Debug\st-link_gdbserver_log.txt
Logging Level : 31
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Enabled
SWD Debug : Enabled
Hardware watchpoint supported by the target
SWD frequency = 4000 kHz
ST-LINK Firmware version : V2J31S7
Device ID: 0x410
PC: 0xc6640804
ST-LINK device status: HALT_MODE
ST-LINK detects target voltage = 3.17 V
Vendor = 0x55
Error in initializing ST-LINK device.
Reason: ST-LINK: Could not verify ST device! Abort connection.
......................OPENOCD.........................................
Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-04-23-20:37)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 8000 kHz
adapter_nsrst_delay: 100
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 8000 kHz
Info : STLINK v2 JTAG v31 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.166882
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Stlink adapter speed set to 4000 kHz
Warn : UNEXPECTED idcode: 0x2ba01477
Error: expected 1 of 1: 0x1ba01477
in procedure 'init'
in procedure 'ocd_bouncer'
