I have a somewhat similar problem in that I can't upload a simple blink sketch. I double-tap before uploading the sketch, which the port selector starts on com3 (on windows). But then it automatically switches to com5, and the upload fails because it can't find the original com port. How do I prevent the com ports from mysteriously switching?
I moved the post to a dedicated topic since it is not directly related to Connecting Arduino Nano 33 BLE Sense
You don't, it's part of the bootloader. I'm not familiar with your board but the usual process for boards with native USB is that the IDE resets the board just before the actual upload starts. If that does not work,
IDE 2.x
- Double tap reset.
- Start upload
- When the IDE reports the memory usage, double tap reset again.
Instead of double tapping the reset in step 1 you can select another port (e.g. COM1 on Windows or e.g. the port of a connected Uno)
IDE 1.x
You can skip step 1 above but you need to have a port selected.
Can u still program your board?
I'm using IDE 2.x When I plug the Nano in, sometimes my PC (win 11) shows that it found a COM port, but sometimes it doesn't.
If it does see a COM port, then I select it, then double tap the Nano to reset, do the upload, and then double tap again after the IDE reports memory usage. Eventually the IDE momentarily shows that it is not connected to anything, but the upload finishes anyway and then auto-connects to the original COM port I selected. That allows me to reprogram the Nano.
But if I see no COM port when I first plug the Nano in, then there's nothing I can do to reprogram the Nano.
Surely there must be an easier and more reliable way to reprogram this Nano?
Please try this experiment and then report your results in a reply on this forum thread:
- Connect your Arduino board to your computer with the USB cable.
- Verify the board is in the state where it doesn't produce a COM port.
- Press and release the reset button on your Arduino board quickly twice.
- If it is already open, close the Tools > Port menu in Arduino IDE.
- Open the Tools > Port menu in Arduino IDE.
Now please reply with the answers to the following questions:
- Do you now see the LED on the board pulsing?
- Do you see a port for the board in the Tools > Port menu?
Not seen it here under win 11 on a test machine so hard to check what might be different at your end.
Have you put all Arduino items under exclusions for any security you have ?
Power saving might also come into play so you need to go to the deeper power settings on the USB ports themselves and turn all that OFF.
I restarted my win11 PC and now it works fine. I guess as they say, when in doubt, reboot.
I'm glad it is working now. Thanks for taking the time to post an update!
Regards,
Per
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.