If you like me use mac with Apple silicon, you need to install GNU ARC Toolchain or you can install Arduino IDE (Don't worry you don't need to use Arduino IDE, you only need AVR toolchain.) and uncommit this code
#TOOLCHAIN_PATH = ~/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin
#CC = $(TOOLCHAIN_PATH)/avr-gcc
#OBJCOPY = $(TOOLCHAIN_PATH)/avr-objcopy
- Clone this repo:
git clone https://github.com/mur4ik18/ATmega-programmator
- Put your code in ./src
- run code:
make clean
make MAINFILENAME
make flash
- star this repo
If you need to connect to COM port :
make connect
My friend who helped me with Makefile's: