ATMega_2560_Embedded_THT/instructions_old.txt

16 lines
468 B
Plaintext
Raw Permalink Normal View History

2022-10-04 18:52:43 +05:30
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