Page 1 of 1
ARM single wire debug with black magic and the ESP32
Posted: Fri Apr 13, 2018 8:51 am
by Olof Astrand
If you are into ARM programming and your device has support for SWD you can now do it over wifi with the ESP32!
https://github.com/Ebiroll/esp32_blackmagic
I wanted to send it back as a pull request to,
https://github.com/blacksphere/blackmagic
but do not have the skills to fix the makefiles.
This is better than i.e. ST-LINK as you can flash and debug your device without using any USB-port.
/Olof
Re: ARM single wire debug with black magic and the ESP32
Posted: Tue Apr 17, 2018 2:29 pm
by BuddyCasino
Nice! Had some trouble flashing BMP to a Blue Pill due to 64k flash limit, this would have saved me some time. Is the port feature complete?
Re: ARM single wire debug with black magic and the ESP32
Posted: Thu May 03, 2018 1:40 pm
by Olof Astrand
Its almost complete, except for Jtag. You must use the SWD pins. 2 of them + ground.
I am currently adding a web based log viewer/serial terminal. Wanted to use the SWO pin for that but will probably just use an extra UART instead. It seems easier to understand.
I am amazed how well it works. It feels like black magic.
Re: ARM single wire debug with black magic and the ESP32
Posted: Wed Jul 26, 2023 11:00 pm
by llindquist
I know this code is quite old now, and I am trying to reach you on github as well - is there a chance you can update it for modern platformio / ESPIDF? It's not working on PIO 6.1.9
Re: ARM single wire debug with black magic and the ESP32
Posted: Sun Sep 24, 2023 7:26 pm
by Olof Astrand
Hello,
Sorry for late reply, I have updated the repository now and now it compiles and I also merged the latest black magic code.
As well as support for the esp32-c3 over JTAG. This has not been tested however.