Folks,
Hopefully, someone can help here with a few issues I’m having uploading a program to an RPi Pico (2040 base without WiFi). I’ve been working on a project for some months. The project is intended to respond to commands received via SMS. The breadboard also contains a Nano to send simulated SMS commands to the Pico to save airtime.
I had IDE versions 2.3.3 and 1.8.19 running simultaneously on a Windows 10 PC, connected to different USB ports.
EDIT: Also I'm using Earle Philhower's library v4.1.1.
Everything worked well for several months until Microsoft sneaked in a Windows 10 update and strange things happened.
Firstly, when starting the 2.3.3 IDE, it froze while starting up; the logo would pulse, but the program stayed at that stage. The 1.8.19 IDE worked fine. I reinstalled 2.3.3, but it made no difference. Eventually, I re-imaged the PC and reinstalled both IDEs, and everything was OK.
EDIT: I'm now using two pc's, one connected to the pico, the other running v1.8.19 to the nano. The pc connected to the nano is working OK.
Then, a few days later, the Pico refused to accept a new upload. The IDE picked COM4, and the serial monitor worked, but uploading produced this message in the output window:
- Converting to UF2, output size: 175616, start address: 0x2000
- Scanning for RP2040 devices: No drive to deploy.
- Checking the serial port I see...
- COM4 is still selected. The serial monitor shows an orange banner with the message “Connecting to Raspberry Pi Pico on COM4.” This changes to “Port monitor error: command ‘open’ failed: Serial port busy.”
Cycling the Pico’s power produces the same error when I upload. The only way I can upload a new program is to power down the Pico, push its button, power up, and wait for Windows Explorer to open. I then drop the flash_nuke.uf2 file into the Pico. Next, I select its port to the UF2 board and hit upload. The Pico must now have its external reset pin grounded or be power cycled before it runs the new program.
I have two Picos, and the problem can be repeated on both. The only difference is that one prefers to select COM6, and the other COM4. Hopefully, someone has seen this before and can help with a solution.
My apologies for a long post.
Malcolm