You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
468 B

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