AVR on Arch Linux

My question is how can I make files in avr - c and then compile them to avr mkii isp.

I would just create a c file, put my avrc code in it, and then enter the command in the terminal to export it to isp, or is there a more complicated process?

PS I'm a complete newbie when it comes to linux arch

+4
source share
1 answer

I don’t know exactly how to do this in arch linux, but this should not differ much from how you do on other distributions. Avr-gcc is commonly used to refer to the entire tool chain. But actually avr-gcc is just a compiler. You also need avr-binutils (collector, linker, object file processing) and avr-libc (requires libs). Try this tutorial: http://www.ladyada.net/learn/avr/setup-unix.html It shows how to download and install all the necessary tools. This is specifically for Ubuntu, which uses "apt" as its package manager. Learn how pacman (the package manager for linux) works.

, , , . , - :

sudo avr-gcc -mmcu=(microcontroller device) flash_LED_example.c -o flash_LED_bin

, . avrdude . ISP USB. , ( usbasp):

sudo avrdude -c usbasp -p m328p -U flash:w:flash_LED_bin

-c , -p , -U , flash, eeprom . , , w, r v. , , , flash_LED_bin.

+4

All Articles