How to upload an object file from windows, without the Arduino IDE.

Hi all,
Is there a way to upload a compiled sketch to an Arduino, from windows?
What I'm looking for is a way to upload a "firmware"in a automated way.

In the Arduino IDE, do this:

  • File > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK
  • Sketch > Upload

After a successful upload, scroll up the black console window at the bottom of the Arduino IDE window. There you will find the command the Arduino IDE generated to do the upload. You only need to copy that command, modify it as you like, then run it from your automated system.

Thank you very much.
I'll follow your instructions.

Another question, please.
I have a sketch than I want to upload on a lot of boards.
I make the .bin file using PROGRAM->EXPORT BINARY

But I dont know how to upload the .bin, from Arduino IDE.
Where is that option?

Where is that option?

It doesn't exist. The Arduino IDE is intended to be very beginner friendly. Adding advanced features like that would only cause confusion for the target user. If you want to upload the compiled binary then you need to simply run the upload command, which you can get by following the instructions in my previous reply.

But where I can run these commands?
I must put them on a batch file or so?

You can run them from the command line if you like. But you're talking about automation so maybe you'd prefer a batch file.