I am having an issue where my computer doesn't recognise the port the nano is in. I have tried restarting the nano and my laptop, reseting the boatloader and switching the cables used. This happened when I between uploads of code when I had changed nothing to the circuit itself just the code. It then worked for a few mins after 30 mins of googling different fixes but failed again on the next upload. Any ideas for fixes? I am using a nano RP20 connect board.
I moved your topic to an appropriate forum category @madsm4689.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.
Thanks in advance for your cooperation.
Hi @madsm4689. Please try this experiment and then report back with the results:
- Connect the Nano RP2040 Connect board to your computer with the USB cable.
- Press and release the reset button on the Nano RP2040 Connect quickly twice.
- You might now see a notification from your operating system that a new drive named "RPI-RP2". If not, open your computer's file manager (e.g., Windows "File Explorer", macOS "Finder") and check to see whether a drive of that name is listed there.
Now please reply here on the forum thread with the answer to the following question:
- Did a new drive named "RPI-RP2" appear on your computer after you performed the above instructions?
Hi @ptillisch
The drive is appearing in file explorer and under portable devices in device manager system (I am on Windows). It had not appeared in the device manager when I had done similarly yesterday.
I have now done a factory reset of the arduino using Blink.ino.elf.uf2 and find that this works for a few uploads and then requires me to reset again
Nice work on pursuing a solution to the problem!
The tricky thing about the boards with native USB capability like your board is the USB code that creates the CDC serial port is running on the same microcontroller as your sketch. This means your sketch code can break the USB code, or stop it from running. When that happens, the board no longer produces a serial port.
This can be unexpected to those who previously mainly worked with the boards like Uno and Mega with a dedicated USB chip that can never be affected by the sketch code.
So my hypothesis is that the cause of the "computer doesn't recognise the port" problem you are experiencing is something in your sketch code. You can test this hypothesis by uploading the sketch accessed by selecting File > Examples > 01.Basics > BareMinimum from the Arduino IDE menus and then checking to see whether the problem also occurs when the board is running that sketch. If the problem occurs when the board is running your real project sketch, but not when running the known valid "BareMinimum" sketch, then this indicates that the problem is caused by something in your real project sketch. If the problem still occurs even when the board is running the "BareMinimum" sketch, then my hypothesis is disproven and the problem must be something other than the sketch code.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.