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....
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 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.
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?
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.