A pre compiled hex file into an ATtiny13 MCU

Hello all,

I want to practice mass programming of MCU's and stuff and would like to learn the methods about flashing those pre compiled hex files onto them as well as how'd you "Burn bootloader" into it(more likely how to set the fuses) and the actual software all in one click.

I've had a look at XLoader program but from what I saw it only supports the simple MCU's like atmega328 ect....

Thanks for your time and suggestions!

If you select File > Preferences > Show verbose output during: > upload and then do an Upload, Upload Using Programmer, or Burn Bootloader, then check the contents of the black console window at the bottom of the Arduino IDE window you will find the avrdude command(s) the Arduino IDE used to do that operation. You can copy that command, modify it as you like, then run it from the command line or a script.

Note that Burn Bootloader is done in two commands. One sets the fuses, the next flashes the bootloader.

You will find the AVRDUDE documentation here:
https://www.nongnu.org/avrdude/user-manual/avrdude.html

Can't understand much from it and I'm not up to learn a whole systems that took years to develop by a few hundreds of software engineers.

Any better solution as to is there a more simple software to use to do that? like what is realy used in the real world?

You don't need to understand the internal details of AVRDUDE. You just need to copy and paste a command.

If you want easy then just use the Arduino IDE with regular Arduino boards. If you want to do more advanced things like mass programming ATtiny13 then it's going to take a little bit of effort on your part. The choice is up to you.

In "the real world" not everything is a pointy clicky GUI.

pert:
You don't need to understand the internal details of AVRDUDE. You just need to copy and paste a command.

Aight then if you say so,

But what commands exactly do I copy and where do I paste it? the CMD?

Do you maybe have an example on a more standard MCU of how to to that?

pert:
In "the real world" not everything is a pointy clicky GUI.

It mostly does but with an ugly GUI....

Enable verbose upload in settings. Set the IDE to the programmer/board/etc that you're planning to upload to. Try to upload any sketch (you don't need any hardware connected). In the black console window, there will be a line with the full avrdude command (with full paths for everything) at the top of the uploading section. Copy this into notepad, edit the path of the hex file to point to what you want, and then open a command window (cmd) and paste it in.

DrAzzy:
Enable verbose upload in settings. Set the IDE to the programmer/board/etc that you're planning to upload to. Try to upload any sketch (you don't need any hardware connected). In the black console window, there will be a line with the full avrdude command (with full paths for everything) at the top of the uploading section. Copy this into notepad, edit the path of the hex file to point to what you want, and then open a command window (cmd) and paste it in.

Sorry how being as understanding as a brick but do you have an example for that? can't see any AVR dude command for that....

Also I assume you then take those avrdude commands and paste them into a .bat file for a super simple op but how do you them get feedback for when the upload is done and if everything went on correctly?

There is only one command, looks something like:

C:\Program Files\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\RAEBEL~1\AppData\Local\Temp\build939b42114286ff6d2142eb1235a39421.tmp/Matrix_trial.ino.hex:i

It's only shown when verbose upload output is enabled.
(this was pulled from another post here, since I'm not home)

Notice how it gives you the full paths to avrdude, avrdude.conf, and so on.

DrAzzy:
There is only one command, looks something like:

C:\Program Files\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\RAEBEL~1\AppData\Local\Temp\build939b42114286ff6d2142eb1235a39421.tmp/Matrix_trial.ino.hex:i

It's only shown when verbose upload output is enabled.
(this was pulled from another post here, since I'm not home)

Notice how it gives you the full paths to avrdude, avrdude.conf, and so on.

Now it's much more understandable thanks!

But about the feedback output about the upload, errors and indications how'd I see that?

MikeLemon:
Also I assume you then take those avrdude commands and paste them into a .bat file for a super simple op but how do you them get feedback for when the upload is done and if everything went on correctly?

Add a pause command at the end of your .bat file. AVRDUDE will output the upload progress and any errors to the console. If you don't have the pause command then the console window will close after the upload. With the pause command it will wait for a keystroke before closing. The -v option in DrAzzy's avrdude command provides verbose output. You can add more -v options to get even more verbose output (I think the max is -v -v -v -v) but one -v is usually good enough.