ARM single wire debug with black magic and the ESP32

Olof Astrand
Posts: 27
Joined: Tue Jan 31, 2017 10:59 am

ARM single wire debug with black magic and the ESP32

Postby Olof Astrand » Fri Apr 13, 2018 8:51 am

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

BuddyCasino
Posts: 263
Joined: Sun Jun 19, 2016 12:00 am

Re: ARM single wire debug with black magic and the ESP32

Postby BuddyCasino » Tue Apr 17, 2018 2:29 pm

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?

Olof Astrand
Posts: 27
Joined: Tue Jan 31, 2017 10:59 am

Re: ARM single wire debug with black magic and the ESP32

Postby Olof Astrand » Thu May 03, 2018 1:40 pm

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.

llindquist
Posts: 1
Joined: Sun Sep 25, 2022 10:27 pm

Re: ARM single wire debug with black magic and the ESP32

Postby llindquist » Wed Jul 26, 2023 11:00 pm

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

Olof Astrand
Posts: 27
Joined: Tue Jan 31, 2017 10:59 am

Re: ARM single wire debug with black magic and the ESP32

Postby Olof Astrand » Sun Sep 24, 2023 7:26 pm

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.

Who is online

Users browsing this forum: No registered users and 89 guests