Make the setup as shown in figure.
![]() |
Image credits to https://learn.sparkfun.com/tutorials/installing-an-arduino-bootloader |
- Select 'Power Target' in 'AVR Pocket Programmer'.
- git clone https://github.com/arunkumarv31/rtos
- cd compile
- Edit Makefile. Comment avrdude line with option arduino and uncomment line with option usbtiny in burn section.
- make
- sudo make burn
- sudo (or be root) is mandatory. Because linux may not show error as permission denied, instead it will show initialization failed, rc=-1.
If you have your own code and hex file. Burn the hex with this command -
- sudo avrdude -F -V -c usbtiny -p atmega328p -D -b 115200 -U flash:w:main.hex
For Arduino mega2560 sudo avrdude -F -V -c usbtiny -p atmega2560 -D -b 115200 -U flash:w:main.hex
Edit inc/common.h and Makefile in rtos if you are using my codes.