Last active
April 12, 2020 20:03
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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