如何为 LittleFS 配置 PlatformIO (ESP32)
你可以配置 PlatformIO 使用 LittleFS 文件系统而不是默认的 SPIFFS,使用
platformio.ini
board_build.filesystem = littlefs如果你使用 arduino-esp32,你可能还需要指定使用最新的 arduino-esp32 框架版本,但我建议先不使用该选项尝试:
platform_packages_setting.ini
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.5完整 platformio.ini 示例
platformio_example.ini
[env:esp32dev]
platform = espressif32
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.5
board = esp32dev
framework = arduino
board_build.filesystem = littlefs
monitor_speed = 115200Check out similar posts by category:
ESP8266/ESP32, PlatformIO
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow