SpenceKonde / DxCore

Arduino core for AVR DA, DB, DD, EA and future DU-series parts - Microchip's latest and greatest AVRs. Library maintainers: Porting help and adviccee is available.
Other
189 stars 50 forks source link

Adding debugging support through Arduino 2.0 IDE #545

Open MX682X opened 3 months ago

MX682X commented 3 months ago

@SpenceKonde I know you don't support the new Arduino IDE, but to improve overall experience, and mainly for me to avoid switching between different IDE's, I've written a a gdb-server script in python that acts as interface between avr-gdb and the PICkits 4/5 (which btw, allowed me to add pickit5 support in the upcoming avrdude). So far, I'm facing a couple user-interface problems, like the server that has to be started externally. But nothing that shouldn't be fixable by a PR on the Arduino Github. As I have also figured out how the scripting assembly of the pickits works, future me might even end up adding UPDI debugging support to any serial port/adapter. Anyway, here is the repo: https://github.com/MX682X/PK5-UPDI-GDB-Server