This is what I get from the console in cubeIDE. I have made many changes in the stm32f1x.cfg file
The changes include:
Changing from 0x1ba01477 to 0x2ba01477 and back in this line
#jtag scan chain
if { [info exists CPUTAPID] } {
set _CPUTAPID $CPUTAPID
} else {
if { [using_jtag] } {
# See STM Document RM0008 Section 26.6.3
set _CPUTAPID 0x3ba00477
} {
# this is the SW-DP tap id not the jtag tap id
set _CPUTAPID 0x20036410
}
}
Changing this, expected ID should be 0
#swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0
I have tried adding this expression before the if statements
set CPUTAPID 0
and this expression
reset_config trst_only
This is the printout from the Console in cubeIDE. It is followed by the Could not verify the ST device statement. This printout does not change no matter what I change in the .cfg file. I get the feeling that the issue is elsewhere. The changes I make have no effect.
Print starts:Open On-Chip Debugger 0.11.0+dev-00438-ga75fc63 (2021-11-03-15:27)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.htmlInfo : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : STLINK V2J39S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 2.658746
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : clock speed 4000 kHz
Error: BUG: can't assert SRST
Info : stlink_dap_op_connect(connect)
Error: BUG: can't assert SRST
Info : SWD DPIDR 0x2ba01477
Info : STM32F103T8Ux.cpu: Cortex-M3 r2p1 processor detected
Info : STM32F103T8Ux.cpu: target has 6 breakpoints, 4 watchpoints
Info : starting gdb server for STM32F103T8Ux.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : device id = 0x20036410
Info : flash size = 64kbytes
O.K.
O.K.:0xE00FFFD0
shutdown command invoked
Info : dropped 'gdb' connection
Print ends:Is this my device ID?
Info : device id = 0x20036410
Any advice on how to continue is most welcome!!