earlephilhower / arduino-littlefs-upload

Build and uploads LittleFS filesystems for the Arduino-Pico RP2040, RP2350, ESP8266, and ESP32 cores under Arduino IDE 2.2.1 or higher
MIT License
128 stars 11 forks source link

`Only Arduino-Pico RP2040 supported` error when the `arduino-pico` platform is installed via Boards Manager in IDE2 #1

Closed dankeboy36 closed 1 year ago

dankeboy36 commented 1 year ago

When I install the arduino-pico platform via the Boards Manager in Arduino IDE 2.x, the FQBN will have rp2040 vendor ID. Hence, the upload command will fail, although my Arduino Nano RP2040 Connect board is supported. The FQBN is rp2040:rp2040:arduino_nano_connect. Here is the problem:

https://github.com/earlephilhower/pico-littlefs-upload/blob/e9cfb1d7a029c86dad63f3a6514a252753c3ed6c/src/extension.ts#L28

The same settings and board work if I install the platform from Git using these steps. There is one caveat: the steps instruct users to install the platform to ~/Arduino/hardware, but it should be ~/Arduino/Documents/hardware (on macOS).

earlephilhower commented 1 year ago

Thanks, I'll just key off of the fqbn.split(":")[1] instead and avoid the issue. I'm working in ESP8266 (and ESP32 hopefully) support right now and hope to have an update in a day or two.