Hi,
I am using my Arduino Uno Board to program my Attiny84.
I have set the following settings.
Tools -> Board -> "Attiny84 @ 16 MHz (external crystal; 4.3 V BOD)"
Tools -> Programmer -> "Arduino as ISP"
If I insert a new Attiny84 now in my programming adapter I have to do the following steps.
- Tools -> "Burn Bootloader"
- File -> "Upload with Programmer"
Now If I have to program 50 of the Attiny Controllers I have to do 50 times step 1 and 2.
The problem is that it first compiles the sketch and I have to do it manually.
Is there a way that I can combine the sketch I want to upload with the bootloader that I just have to do step one (Tools -> "Burn Bootloader") and then it would automatically upload thebootloader first and then the sketch???
Thanks in advance
The ATtiny84 doesn't actually support a bootloader so what the "Burn Bootloader" step is doing is just setting the configuration fuses ("use crystal oscillator" and "brown-out voltage 4.3V").
Go to the IDE preferences and turn on Verbose Logging for both build and upload. After each step (burn bootloader and upload using programmer) copy the text from the IDE window to a text file. In there you will find the AVRdude commands used by the IDE to set the fuses and upload the .HEX produced by the build. It will also show where that .HEX file was built so you can copy it to a convenient folder. Write a script (or command file) for your OS using the commands the IDE used, adjusting for the saved location of the .HEX file. Run that script/COM file for each chip you want to program. Since the compile doesn't have to be re-done each time (you already have the .hex) it will go much faster than it would in the IDE.