---

** [tickets:#359] Unable to connect to stm8s105 targets. (Other stm8 targets 
work)**

**Status:** new
**Milestone:** 0.11.0
**Labels:** stm8s 
**Created:** Tue Aug 16, 2022 04:35 PM UTC by brad roy
**Last Updated:** Tue Aug 16, 2022 04:35 PM UTC
**Owner:** nobody


I'm unable to connect to stm8s105 chips. Other stm8 chips - the stm8s103f3 
works, and the stm8l151c6 also connects. I *can* connect and read/write to 
flash and opt on the same stm8s105k6 chips with the stm8flash tool, using the 
same stlink.

**STM8s105.cfg**
$ openocd -f interface/stlink-dap.cfg -f target/stm8s105.cfg 
Open On-Chip Debugger 0.11.0-g228ede4-dirty (2022-07-25-13:51)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst

Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : STLINK V2J17S4 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.235884
Error: stlink_swim_enter_failed (unable to connect to the target)

**STM8s.cfg (with the '105 chip)**
$ openocd -f interface/stlink-dap.cfg -f target/stm8s.cfg 
Open On-Chip Debugger 0.11.0-g228ede4-dirty (2022-07-25-13:51)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst

Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : STLINK V2J17S4 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.243799
Error: stlink_swim_enter_failed (unable to connect to the target)

**writing flash with stm8flash (same chip/programmer)**
$ stm8flash -c stlinkv2 -p stm8s105k6 -w ./Blink.ino.hex 
Determine FLASH area
Due to its file extension (or lack thereof), "./Blink.ino.hex" is considered as 
INTEL HEX format!
1986 bytes at 0x8000... OK
Bytes written: 1986

(LED is blinking)

**stm8l151c6**
$ openocd -f interface/stlink-dap.cfg -f target/stm8l.cfg 
Open On-Chip Debugger 0.11.0-g228ede4-dirty (2022-07-25-13:51)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst

Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : STLINK V2J17S4 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.240633
Info : clock speed 800 kHz
Info : starting gdb server for stm8l.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to undefined, pc: 0x00006000


**stm8s103f3**
$ openocd -f interface/stlink-dap.cfg -f target/stm8s103.cfg 
Open On-Chip Debugger 0.11.0-g228ede4-dirty (2022-07-25-13:51)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst

Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : STLINK V2J17S4 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.237467
Info : clock speed 800 kHz
Info : starting gdb server for stm8s.cpu on 3333
Info : Listening on port 3333 for gdb connections



---

Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.


Reply via email to