The IDE updated to 2.2.1 fine, and I can select the Raspberry Pi Pico W board as Arduino Mbed OS RP2040 Boards
Raspberry Pi Pico
When I follow the usual instructions to press bootsel whilst pluggin in the Pico W, I see a drive on the Windows computer but running the Arduino IDE cannot find the Port for the Pico W.
When I unplug and replug the Pico W, the IDE finds the port and I can compile and upload programs like Blink
.
The programs say they are uploaded (Loading into Flash: [==============================] 100%
But then nothing else happens
According to Programming Raspberry Pi Pico with Arduino IDE | Random Nerd Tutorials and How to Program Raspberry Pi Pico With the Arduino IDE | Tom's Hardware the code
This is happening with an absolutely new Pico W - nothing like MicroPython has been loaded.
The output goes loaded into flash but I am missing the sketch uses xx space
So I then load the Raspberry PI Micropython OS (bootsel, plugin, copy v1.21.0.uf2 to the Pico W and let it reboot.
When I now try to upload the sketch I get a different error, which looks promising but then errors out on the upload
Sketch uses 89905 bytes (4%) of program storage space. Maximum is 2097152 bytes. Global variables use 42836 bytes (15%) of dynamic memory, leaving 227500 bytes for local variables. Maximum is 270336 bytes. Performing 1200-bps touch reset on serial port COM10 "C:\Users\brian\AppData\Local\Arduino15\packages\arduino\tools\rp2040tools\1.0.6/rp2040load" -v -D "C:\Users\brian\AppData\Local\Temp\arduino\sketches\EC31F9D29F32E1B81539FC5AFAFC9C8D/sketch_oct24a.ino.elf" rp2040load 1.0.6 - compiled with go1.16.2 ..................... Failed uploading: uploading error: exit status 1
Rebooting with bootsel reverts to the "USB File mode" and IDE does not recognise the Pico Port
Rebooting without bootsel boots the Pico W into a mode where it goes back to "Loading into Flash;" but not getting the Sketch uses...
part of the upload.
I went through the drivers as found here Raspberry Pi Pico, Can't Load any Sketch - #9 by Papirrruqui and nuked and reset everything.
It seem that if I don't load micropython.uf2 the Pico W sits in folder mode and the IDE does not see it.
If I load the Pico W .uf2 I can select the board, the port (com10) and Board info looks good except it says "Unknown board"
If I load the Pico (not Pico W) micropython .uf2 I have the same issue except the board is recognised.
Is there a working .uf2 that I need to install to support Arduino IDE?
I tried circuit python 8.2.7 and the upload sequence appears to work, but the code never runs.