rizin/doc/avr.md
Riccardo Schirone 22239a1bfc
Delete some unneded documentation (#59)
* Adjust doxygen documentation on rz_cmd
2020-10-30 16:06:38 +01:00

660 B

AVR (arduino, atmega128, ..)

Install JTAG serial driver:

http://www.wch.cn/download/CH341SER_MAC_ZIP.html 

Install SDK from Arduino:

https://www.arduino.cc/en/Main/Software
echo 'PATH="/Applications/Arduino.app//Contents/Java/hardware/tools/avr/bin/:$PATH"' >> ~/.profile

Install avarice, the gdbserver <-> jtag:

rz_pm -i avarice

Run the proxy:

rz_pm -r avarice --jtag /dev/tty.wch* --mkI :4242

Using GDB:

(avr-gdb) target remote :4242

In another terminal now run:

rizin -a avr -d gdb://localhost:4242

NOTE: Right now the avr debugger is pretty broken, the memory and register reads result in in correct data.