I thought I would share my latest project, a toy debugger that works with ST-Links and runs entirely from within your browser (assuming your browser is Chrome, version 61 or newer).
It has some basic functionality that you would expect from a debugger:
- Reading CPU registers
- Reading from memory
- Write/erase flash memory (only tested on STM32F103)
- Displaying redirected printf() output
- Setting break points
- Seeing what line of code you're on
- Viewing disassembly for the current code being executed
If anyone wants to try it out, I have a live demo online which I hope is fairly self-explanatory:
I've tested it successfully on Windows, Linux, and Android with both an ST-Link/v2 clone + bluepill and with an STM32F103RB Nucleo board.
I'm hopeful that nobody will need to use Zadig to replace the ST-Link drivers, but my Windows desktop has such a mess of drivers that I can no longer tell which drivers are the original ones.
Note: it may get stuck if you connect to an ST-Link/v2 with no target microcontroller connected.