Go Down

Topic: arduino micro upload program easier (Read 569 times) previous topic - next topic


I found a trick that makes it a bit easier to program the arduino micro in some situations. If you watch device manager on windows, you might notice that the arduino micro shows up as "arduino micro bootloader COM4" for a few seconds after hitting the reset button, then it disappears and another entry shows up "arduino micro COM5" when the board starts executing the user program. So what I did was, right click the com port -> properties -> port settings -> advanced -> com port number, and changed it from COM5 to COM6. Then, I hit reset on the arduino and super super fast went into the com port settings for the "arduino micro bootloader COM4" and changed it from COM4 to COM6 as well.

This solved a problem for me where I had to select the com port in the arduino menu every time before uploading, or I had to reset the micro at just the right time during upload. Now, the auto reset and upload works perfect every time.

On another note, I personally find the serial monitor in arduino IDE to be annoying. You have to open it and close it between uploads. I recommend using a ttl serial port (a spare arduino uno works well), and just using "Serial1" on the micro for debug printing. You can use any serial monitor program (like Terminal by Bray++) and leave the port open all the time this way.


Use arduino 1.6.5 ,the serial.monitor will not close during upload,but will be grayed out and be available after upload.

Murphy always gets me ...


Malhar, that doesn't solve the problem problem of the Micro using a different COM number for programming and for serial output while running.

But isn't it easier to just change the "serial out while running" to the same number as the program COM? So just change COM5 to COM4. Then you don't have to be freakishly quick :)
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake


@rocketsarefast thanks for the tip about setting the port numbers to the same value. That was a big help to me. Always having to chase the changing port has been a real annoyance to me lately because I've been doing a lot of work with Pro Micros.


Go Up