ARM single wire debug with black magic and the ESP32

Olof Astrand
Posts: 16
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: 249
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: 16
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.

Who is online

Users browsing this forum: No registered users and 1 guest