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

Detect user-selected partitions file (and partitions.csv in sketch folder) #33

Closed schmidtsamuelw closed 4 months ago

schmidtsamuelw commented 4 months ago

First off, thank you for this plugin. I was expecting to have to write a shell script myself and awkwardly integrate it into my workflow until I stumbled upon this.

Currently, the plugin can only detect the partitions file set as the default for the selected board, ignoring the user's setting in the IDE and the sketch's partitions.csv file, if present. This causes issues in projects where the board's default partition scheme isn't being used, since the plugin will most likely be uploading to the incorrect location or allowing an upload when the actual partition scheme doesn't have a SPIFFS partition. The plugin should detect and use the same partitions file that will be used by the toolchain.

earlephilhower commented 4 months ago

Closed by #34