Hello,
what just happened to me:
I connected an arduino pro micro to the computer (it worked normally up to this point) and tried to upload a sketch.
t didn't work, I noticed that I had selected the wrong board (arduino uno) in the ide. From this point on, the Arduino micro was no longer recognized by the ide, and not even by the computer.
no lamp on the micro was on, and there was no more windows sound when plugged in.
i have tried different usb ports and cables
edit: oh and i had connected an imu 6050 to the arduino (nothing got hot and i tried it already without the imu
Do this:
Make sure you have the correct board selected from the Tools > Board menu.
Sketch > Upload
Watch the black console window at the bottom of the Arduino IDE window. As soon as you see something like this:
Sketch uses 444 bytes (1%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
press and release the reset button. The upload should now finish successfully and you will be able to upload normally after that.
hello, thank you for the quick answer!
but: i can't even select the arduino in the “tools”->"port:" option, so would your methot work without the right port selected? and also, as far as i am aware, the arduino pro micro has no reset button
janos139:
would your methot work without the right port selected?
Yes, the bootloader creates a port when you reset the board and the Arduino IDE will recognize that new port and upload to it.
janos139:
as far as i am aware, the arduino pro micro has no reset button
Sorry, I forgot that you are using the Pro Micro. Instead of pressing the reset button, use a wire to momentarily connect the "RST" pin to the "GND" pin.
oh... i found the issue, for troubleshooting my sketch, i had connected a cable from vcc to pin 8 and than connected it accidently directly from vcc to ground. now i removed it and it works! thanks for helping me and sorry for bothering you, maybe this will still help somebody in the future
i thought it could be really bad to upload with the wrong board selected
I'm glad to hear you found the solution. Thanks for taking the time to post an update.
janos139:
i thought it could be really bad to upload with the wrong board selected
With the Pro Micro, it's only a problem if you switch the board from the wrong board to the Arduino Micro during the compilation process. What that does is compiles you sketch for the wrong board (e.g., Uno) then uploads the wrong sketch to the Micro. Because it has native USB capabilities, in order for the Micro to have a serial port, some USB code must run in the background of your sketch. That code is automatically added when you compile for the Micro. However, the Uno has no need of this code since it doesn't have native USB capabilities and thus has a separate USB chip. So when you upload a sketch compiled for Uno to your Micro, there is no USB code and thus no port.
If you try uploading with Uno selected, but don't switch the board, the upload will just fail, so it does no harm.
With the SAMD boards, if you have the wrong board selected (e.g., Nano 33 BLE), it will brick the board even if you don't change the board during the compilation, and you can't use the reset button to recover when that happens, so it's a much more complex fix.