Skip to content

Instantly share code, notes, and snippets.

@0x6a61
0x6a61 / learn-avr.sh
Last active Apr 12, 2020
Compile C-File to avr, emulate chip and finally debug with gdb-avr
View learn-avr.sh
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
View gist:451ae7c04b4c2fb92370367a47a5cf5d
# ~/.radare2rc
e asm.describe=true
e asm.pseudo=true
e asm.emu = true
e asm.trace=true
e asm.cmtright=true
e cmd.stack = true
eco solarized
You can’t perform that action at this time.