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
ARM single wire debug with black magic and the ESP32
-
- Posts: 27
- Joined: Tue Jan 31, 2017 10:59 am
-
- Posts: 263
- Joined: Sun Jun 19, 2016 12:00 am
Re: ARM single wire debug with black magic and the ESP32
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?
-
- Posts: 27
- Joined: Tue Jan 31, 2017 10:59 am
Re: ARM single wire debug with black magic and the ESP32
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.
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.
-
- Posts: 1
- Joined: Sun Sep 25, 2022 10:27 pm
Re: ARM single wire debug with black magic and the ESP32
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
-
- Posts: 27
- Joined: Tue Jan 31, 2017 10:59 am
Re: ARM single wire debug with black magic and the ESP32
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.
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 86 guests