Hello dear, has anyone used the Xloader program to load programs to the Arduino Leonardo? I have used it for the Arduino Mega and UNO, but I don't see the option for other models.
I haven't.
The tricky part is that you need to reset the processor via software first to invoke the bootloader. On e.g. the Uno that reset is achieved by asserting DTR when you open the serial port but that does not work with board with native USB (like Leonardo).
After the reset, the port will change if you're using Windows; it will not change in Linux and I do not know about Mac).
So you need to upload using that new port.
Any specific reason why are you using Xloader? Would a powershell script also worK?
Hello sterretje, I am using Xloader because it is the most practical thing I have found, I could use another method if I knew it.
What I need is to be able to load the .hex files on the Arduinos without having to use the IDE.
Thank you!
You can use avrdude as a standalone application; it doesn't handle the software reset part by the IDE described above but you can either do that manually (in which case you will have to check e.g. device manager what the new port is or in a script.
I understand that Xloader is convenient for you; I still live with one foot in a command line world
They added it in AVRDUDE 7.3:
I'm going to try AVRDUDE 7.3
Thank you!
Not all Xloader versions support leonardo. Just search for Xloader for leonardo and download that one.
Hello Azur, do you know which version works with the Leonardo? I have tried several and they do not work with this Arduino.
I can't send it to you. Go to ranenbegs ffb firmware download it open the folder "Xloader" and click on XLoader.exe and that version works with leonardo.
If you don't know how to use Xloader once you select the 32u4 click the reset button. There will appear an another com port. Select that one and click on upload. Good luck mate!
Thank you so much. I will try it