You brought a cheap USB AVR that only can be used with ProgISP, which is not available for Linux or Mac? Here is a tutorial to compile USBasb to use the stick via avrdude, platformIO or Arduino IDE.
-
Have a look at this blog post https://www.sciencetronics.com/greenphotons/?p=938. File in this repo has already been changed.
-
Add a wire to the self-programming jumper pins.
-
Connect the programmer to another programmer, for example an Arduino Uno that has the ISP sketch (File/Examples/11.ArduinoISP).
-
Install dependencies
apt-get install avrdude gcc-avr avr-libc
-
Go into
firmware
sub directory and check the settings inMakefile
. For example, some USB ISP use atmega8, others atmega88. -
Compile:
make main.hex
-
Set fuse:
avrdude -c avrisp -p atmega88 -b 19200 -P /dev/ttyACM1 -u -U hfuse:w:0xdd:m -U lfuse:w:0xff:m
ormake fuses
-
Upload firmware:
avrdude -c avrisp -p atmega88 -P /dev/ttyACM1 -b 19200 -U flash:w:main.hex
ormake flash
-
Remove jumper wire and enjoy. The USB ISP should now be recognised as USBasb device.