Posts

Showing posts from January, 2022

How to program AVR microcontrollers (ATmega8, ATmega328p, ATtiny13, ATtiny84 ...) on Linux operating system (OpenSuse Leap 15.2)

Image
AVR microcontroller programming on Linux In this post I will show you how to program AVR microcontrollers (uC) in Linux. How to setup softwares and hardwares. It is very easy to program we only need a cheap uC chip in DIP package, a programmer, couple of wires, resistors and a breadboard. I will show you how to program the chip in C language with Linux's Console application and a text editing software called 'Kate'. Setup hardware and software 1. We need a programmer for example an USBasp programmer. I think we can also use a USBtiny programmer, but I don't have any experience with that.  usbasp programmer More information about USBasp programmer (Schematic diagram and firmware) here:  https://www.fischl.de/usbasp/ 2. We need to install software packages from YAST Software Management tool. - avr-libc - avrdude - cross-avr-binutils - cross-avr-gcc7 repository for OpenSuse Leap 15.2:  https://download.opensuse.org/repositories/CrossToolchain:/avr/openSUSE_Leap_15.2/ re...