I am having trouble uploading a new program to my arduino micro. I first flashed the blink example program to the board and that worked. However now whenever I try to flash a new program it either cannot fine the port of it just gives me a general error. I have selected the right model and port in the tools menu as well as press the reset button right before the upload stage. This arduino micro has an external power supply. Here is the error code:

Sketch uses 4,244 bytes (14%) of program storage space. Maximum is 28,672 bytes. Global variables use 154 bytes (6%) of dynamic memory, leaving 2,406 bytes for local variables. Maximum is 2,560 bytes. PORTS {COM1, COM4, } / {COM1, COM4, } => {} PORTS {COM1, COM4, } / {COM1, COM4, } => {} PORTS {COM1, COM4, } / {COM1, COM4, } => {} PORTS {COM1, COM4, } / {COM1, COM4, COM9, } => {COM9, } Found upload port: COM9 C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -PCOM9 -b57600 -D -Uflash:w:C:\Users\Joel\AppData\Local\Temp\build4becb324f24d9ea6a5bead572d36ff0a.tmp/d4onOF.ino.hex:i An error occurred while uploading the sketch.

Com 1 and 4 are default to this computer

Thanks in advance for your help.


This problem was fixed by restarting the arduino IDE by the exe instead of opining it from an .ino file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.