rumpeltux / esp-stlink

ESP8266 firmware that implements the SWIM protocol for debug access / flashing of STM8 devices
GNU General Public License v3.0
87 stars 21 forks source link

Debugging? #4

Closed spth closed 6 years ago

spth commented 6 years ago

So far, this hardware is supported by stm8flash, allowing us to read and write memory on the STM8 without having to rely on the ST-Link with its non-free firmware.

However, there are patches to OpenOCD and GDB to also allow on-target debugging via the ST-Link. Would on-target debugging work witht he ESP-STLINK? How much work would it be to add support to the OpenOCD patches?

Philipp

rumpeltux commented 6 years ago

I don’t know any of the OpenOCD details, but given that debugging is solely implemented by modifying memory mapped registers, I’d say it should be fairly easy. Essentially just the transport layer that communicates with stlink has to be replaced to talk to esp-stlink instead.