Skip to content

Instantly share code, notes, and snippets.

@0x6a61
Last active April 12, 2020 20:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save 0x6a61/d8615401b73f15b6175a53948e03df8c to your computer and use it in GitHub Desktop.
Compile C-File to avr, emulate chip and finally debug with gdb-avr
avr-gcc -g -O0 -mmcu=atmega16 main.c
simavr -m atmega16 -g -v a.out
# GDB
avr-gdb
target remote 127.0.0.1:1234
file /tmp/a.out
# Radare 2
r2 -a avr -D gdb gdb://127.0.0.1:1234
o /tmp/a.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment