mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-04 11:43:39 +00:00
d4d3eee2b6
* Support parsing markdown, r2slides and plain txt
1.1 KiB
1.1 KiB
AVR
This document explains how to debug an AVR microcontroller connecting with the JTAG interface via USB using the GDB protocol, commonly used by Arduino.
On some systems it is necessary to install a driver and the SDK. You can find the links below:
Works for arduino and atmega128, ..
macOS installation
Install JTAG serial driver:
Install SDK from Arduino:
echo 'PATH="/Applications/Arduino.app//Contents/Java/hardware/tools/avr/bin/:$PATH"' >> ~/.profile
Plugin setup
Install avarice, the gdbserver <-> jtag:
r2pm -i avarice
Run the proxy:
r2pm -r avarice --jtag /dev/tty.wch* --mkI :4242
Connecting to the gdb server
Using GDB:
(avr-gdb) target remote :4242
In another terminal now run:
r2 -a avr -d gdb://localhost:4242
Final Notes
Right now the avr debugger is pretty broken, the memory and register reads result in in correct data.