AVR Baremetal
Motivation
So I started this quest on doing Baremetal programming of AVR micro-controllers just using
avr-gccfor compilation and object, elf file creation
avr-objcopyfor creating hex file from elf file
avrdudeandarduinoprogrammer for flashing the chip.
makefor automating the build, hex file generation process and flashing purposes.
Working Environment
- I’m building these projects in Ubuntu 22 Linux. Hence the documentation will contain information on how to replicate the projects here in Debian based Linux OS systems.
Explore the project
❗
If you’re using
PORTD, make sure to remove the TX and RX (D0 and D1) connections on the Arduino Uno before flashing!References
- A note for the fuses:
- The fuse register calculator: https://eleccelerator.com/fusecalc/fusecalc.php?chip=atmega328p