ATMega_2560_Embedded_THT/instructions_old.txt

16 lines
468 B
Plaintext

Installed the following:
sudo apt-get install arduino
sudo apt-get install gcc-avr binutils-avr avr-libc
sudo apt-get install avrdude
sudo apt-get install arduino-cli
Compile:
avr-gcc -Os -mmcu=atmega2560 -c -o blinking_led blinking_led.c
Obj Copy:
avr-objcopy -O ihex -R .eeprom blinking_led blinking_led.hex
Programming:
avrdude -C /usr/share/arduino/hardware/tools/avrdude.conf -patmega2560 -cwiring -P /dev/ttyACM0 -b 115200 -D -U flash:w:blinking_led.hex:i