Closed TheMakerTeam closed 3 years ago
Thanks for using the library.
*** [.pio\build\esp32doit-devkit-v1\lib0b6\LittleFS_esp32\LITTLEFS.cpp.o] Error 1
The issue is somewhere in your PIO settings and not because of this library. Possibly the dependency of LittleFS_esp32 library.
Check Note for Platform IO using ESP32 LittleFS
Try first with the simple example of this library first, them moving forward gradually. It's better to start compiling your complex project on the less buggy Arduino IDE to be sure everything is OK before moving to PIO.
If still having issue, ask on PIO forum
I was able to get it to compile correctly. What I did to fix the issue was to download “espressif/arduino-esp32” from github then I took the “FS” library folder contents and manually copied it to the “LITTLE_FS” folder and everything works perfectly now. Not sure why it was necessary to do this but at least it is working now.
From: Khoi Hoang @.> Sent: Monday, April 12, 2021 10:38 PM To: khoih-prog/ESP_WiFiManager @.> Cc: Paul W @.>; Author @.> Subject: Re: [khoih-prog/ESP_WiFiManager] Compile Error in PlatformIO (#56)
Thanks for using the library.
*** [.pio\build\esp32doit-devkit-v1\lib0b6\LittleFS_esp32\LITTLEFS.cpp.o] Error 1
The issue is somewhere in your PIO settings and not because of this library. Possibly the dependency of LittleFS_esp32 library.
Check Note for Platform IO using ESP32 LittleFShttps://github.com/khoih-prog/ESP_WiFiManager#note-for-platform-io-using-esp32-littlefs
Try first with the simple example of this library first, them moving forward gradually. It's better to start compiling your complex project with on less buggy Arduino IDE to be sure everything is OK before moving to PIO.
If still having issue, ask on PIO forumhttps://community.platformio.org/
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/khoih-prog/ESP_WiFiManager/issues/56#issuecomment-818388300, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR2L2OJGOFOVK663DXCQX43TIOVCFANCNFSM422NGDDA.
It's good to know you solved the problem.
It seems that you miss the dependency of lorol/LittleFS_esp32@>=1.0.6
env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
lib_deps =
paulstoffregen/OneWire@^2.3.5
marcoschwartz/LiquidCrystal_I2C@^1.1.4
milesburton/DallasTemperature@^3.9.1
khoih.prog/ESP_WifiManager @ ^1.5.2
lorol/LittleFS_esp32@>=1.0.6
monitor_speed = 115200
upload_port = COM[4]
I don't know why none of these are used automatically by PIO
lib_deps =
; PlatformIO 4.x
; ESP_DoubleResetDetector@>=1.1.1
; LittleFS_esp32@>=1.0.6
; PlatformIO 5.x
khoih.prog/ESP_DoubleResetDetector@>=1.1.1
lorol/LittleFS_esp32@>=1.0.6
ibrary.properties depends=ESP_DoubleResetDetector,LittleFS_esp32)
"dependencies":
[
{
"owner": "khoih.prog",
"name": "ESP_DoubleResetDetector",
"version": ">=1.1.1",
"platforms": ["espressif8266", "espressif32"]
},
{
"owner": "lorol",
"name": "LittleFS_esp32",
"version": ">=1.0.5",
"platforms": ["espressif32"]
}
],
Describe the bug
When I attempt to compile the program I get the following output.
Processing esp32doit-devkit-v1 (platform: espressif32; board: esp32doit-devkit-v1; framework: arduino) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via
-v, --verbose
option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html PLATFORM: Espressif 32 (3.1.0) > DOIT ESP32 DEVKIT V1 HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:compilation terminated. Compiling .pio\build\esp32doit-devkit-v1\lib0b6\LittleFS_esp32\lfs.c.o Compiling .pio\build\esp32doit-devkit-v1\lib0b6\LittleFS_esp32\lfs_util.c.o Compiling .pio\build\esp32doit-devkit-v1\lib0b6\LittleFS_esp32\littlefs_api.c.o *** [.pio\build\esp32doit-devkit-v1\lib0b6\LittleFS_esp32\LITTLEFS.cpp.o] Error 1 =============================================================================================================================================== [FAILED] Took 21.00 seconds =============================================================================================================================================== The terminal process "C:\Users\paulw.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
Steps to Reproduce
My Platform.ini file contents
[env:esp32doit-devkit-v1] platform = espressif32 board = esp32doit-devkit-v1 framework = arduino lib_deps = paulstoffregen/OneWire@^2.3.5 marcoschwartz/LiquidCrystal_I2C@^1.1.4 milesburton/DallasTemperature@^3.9.1 khoih.prog/ESP_WifiManager @ ^1.5.2 monitor_speed = 115200 upload_port = COM[4]
Expected behavior
I expected it to compile correctly
Actual behavior
I got the above error message
Debug and AT-command log (if applicable)
None
Screenshots
None
Information
Please ensure to specify the following:
Platform.io version 1.55.1
Example
Add any other context about the problem here.