Error when trying to initiate debug on stm32f1038tx using stlink v2 using OpenSTM32
Warn : Could not determine executable path, using configured BINDIR
console dump
Open On-Chip Debugger 0.10.0-dev-00011-g46c94c8 (2018-09-06-08:38)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Warn : Could not determine executable path, using configured BINDIR.
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_nsrst_delay: 100
adapter speed: 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v17 API v2 SWIM v4 VID 0x0483 PID 0x3748
Info : vid/pid are not identical: 0x0483/0x374B 0x0483/0x3748
Info : using stlink api v2
Info : Target voltage: 3.255541
Info : STM32F103C8Tx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting ‘gdb’ connection on tcp/3333
adapter speed: 950 kHz
Error: timed out while waiting for target halted
TARGET: STM32F103C8Tx.cpu - Not halted
in procedure ‘reset’
in procedure ‘ocd_bouncer’
Info : device id = 0x20036410
Info : flash size = 64kbytes
adapter speed: 950 kHz
Error: timed out while waiting for target halted
TARGET: STM32F103C8Tx.cpu - Not halted
in procedure ‘reset’
in procedure ‘ocd_bouncer’
Error: Target not halted
Error: failed erasing sectors 0 to 2
Error: flash_erase returned -304
debug config
- This is an genericBoard board with a single STM32F103C8Tx chip
- Generated by System Workbench for STM32
- Take care that such file, as generated, may be overridden without any early notice. Please have a look to debug launch configuration setup(s)
source find interface/stlink.cfg
set WORKAREASIZE 0x5000
transport select “hla_swd”
set CHIPNAME STM32F103C8Tx
set BOARDNAME genericBoard
- Enable debug when in low power modes
set ENABLE_LOW_POWER 1
- Stop Watchdog counters when halt
set STOP_WATCHDOG 1
- STlink Debug clock frequency
set CLOCK_FREQ 4000
- use hardware reset, connect under reset
- connect_assert_srst needed if low power mode application running (WFI...)
reset_config srst_only srst_nogate connect_assert_srst
set CONNECT_UNDER_RESET 1
source find target/stm32f1x.cfg