Closed joseperri closed 3 years ago
Hi,
I suggest you restart with the same ConfigOnSwitchFS example, but use the latest ESP_WiFiManager releases v1.7.4) with Arduino IDE, not PIO with the too old version v1.3.0 to be sure your board has no issue with LittleFS. Be sure to update your ESP8266 core to ESP8266 releases v3.0.2.
Only move to PIO, which is still buggy and required more experience and knowledge to use without issue, after everything is OK with Arduino IDE.
I'm closing the issue now, until you finished the test in Arduino IDE with the same environment requested in Prerequisites and repost the result to prove this is a bug caused by this library.
Good Luck,
build_flags = -Wl, -Teagle.flash.4m3m.ld
The above build_flags can be the culprit if it's not 100% correct for your WROOM2 ESP8266
because it can destroy the data you saved previously in SPIFFS or LIttleFS.
ESP-WROOM-02 currently integrates a 2-MB SPI flash.
from ESP-WROOM-02 Datasheet, while you force 4MB/3M in eagle.flash.4m3m.ld
It's better you post an issue on PIO Forum to ask for help which is the correct flags to use.
I suggest you change to one of these to see which one is OK for you
build_flags = -Wl, -Teagle.flash.2m1m.ld
build_flags = -Wl, -Teagle.flash.2m64.ld
build_flags = -Wl, -Teagle.flash.2m128.ld
build_flags = -Wl, -Teagle.flash.2m256.ld
build_flags = -Wl, -Teagle.flash.2m512.ld
Good Luck,
many of you are very kind. Cheers José
Get Outlook para Androidhttps://aka.ms/AAb9ysg
From: Khoi Hoang @.> Sent: Monday, September 27, 2021 10:10:59 PM To: khoih-prog/ESP_WiFiManager @.> Cc: joseperri @.>; Author @.> Subject: Re: [khoih-prog/ESP_WiFiManager] It does not store the SSID and Password in WROOM02 ESP8266 (#69)
I suggest you change to one of these to see which one is OK for you
Good Luck,
— 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/69#issuecomment-928554015, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHEZ25Y224FRO3Q5WE3PU6DUEEI2HANCNFSM5EYHCT6Q. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You're very welcome.
Please post the result back here to help other users after testing if OK or not.
Thanks,
I wanted to tell you that effectively with the Arduino IDE the library works perfectly, apparently the problem is generated within the Platformio IDE. Greetings
Get Outlook para Androidhttps://aka.ms/AAb9ysg
From: Khoi Hoang @.> Sent: Sunday, September 26, 2021 12:21:59 AM To: khoih-prog/ESP_WiFiManager @.> Cc: joseperri @.>; Author @.> Subject: Re: [khoih-prog/ESP_WiFiManager] It does not store the SSID and Password in WROOM02 ESP8266 (#69)
Hi,
I suggest you restart with the same ConfigOnSwitchFS examplehttps://github.com/khoih-prog/ESP_WiFiManager/tree/master/examples/ConfigOnSwitchFS, but use the latest ESP_WiFiManager releases v1.7.4)https://github.com/khoih-prog/ESP_WiFiManager/releases/tag/v1.7.4 with Arduino IDE, not PIO with the too old version v1.3.0 to be sure your board has no issue with LittleFS. Be sure to update your ESP8266 core to ESP8266 releases v3.0.2https://github.com/esp8266/Arduino/releases/tag/3.0.2.
Only move to PIO, which is still buggy and required more experience and knowledge to use without issue, after everything is OK with Arduino IDE.
I'm closing the issue now, until you finished the test in Arduino IDE with the same environment requested in Prerequisiteshttps://github.com/khoih-prog/ESP_WiFiManager#prerequisites and repost the result to prove this is a bug caused by this library.
Good Luck,
— 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/69#issuecomment-927222117, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHEZ255PPW36WQ55GNMGZATUD2GVPANCNFSM5EYHCT6Q. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
FYI, the meanings of those build_flags
. Check PIO Build options
-Teagle.flash.2m1m.ld
===> using the loader for boards with 2MB Flash chip (1MB Code/1M FS)-Teagle.flash.4m2m.ld
===> using the loader for boards with 4MB Flash chip (2MB Flash/2MB FS)I wanted to tell you that effectively with the Arduino IDE the library works perfectly, apparently the problem is generated within the Platformio IDE. Greetings
Please try in PIO with one of these to know if it's OK
build_flags = -Wl, -Teagle.flash.2m1m.ld
build_flags = -Wl, -Teagle.flash.2m64.ld
build_flags = -Wl, -Teagle.flash.2m128.ld
build_flags = -Wl, -Teagle.flash.2m256.ld
build_flags = -Wl, -Teagle.flash.2m512.ld
Hello, good day, I wanted to warn you that I could not make it work with the WROOM-02 in Platformio but as I had mentioned it works perfectly in ARDUINO IDE, migrate the code to an ESP32 board and it works perfectly even within Platformio.
From what I have been able to detect using the ESP8266 Download Tool, the WROOM02 would be 4MB, the data detected was
flash vendor:68h: N / Aflash devID:4016hQUAD; 32Mbitcrystal:26 Mhz
I have used the
build_flags = -Wl, -Teagle.flash.4m2m.ld
inside the platformio.ini but there was no result, even with other values.
I wanted to send this information in case it is useful to another user, in my case I changed to ESP32 and the problems were solved even within the Platformio.
Again very grateful for the support provided.
José
Software Context
Using the example code ConfigOnSwitchFS.ino over a WROOM02 Everything works normally but when I do a reset the SSID and Password data are lost. I detail the LOG.
First start LOG
AFTER LOAD MY WIFI CREDENTIAL LOG
BUT AFTER A RESTART LOST THE SSID AND PASSWORD ANG PORTAL CAME BACK AGAIN
SUMMARY: I UNDERSTAND THAT WIFI CREDENTIALS MUST BE STORED AFTER A RESET, THE EXAMPLE IS THAT IT IS PUBLISHED. I WANT TO CLARIFY THAT SO THAT THE CONFIGURATION FILE DOES NOT ERROR, I HAVE HAD TO MODIFY THE build_flags = -Wl, -Teagle.flash.4m3m.ld INTO THE PLATFORMIO.INI BUT I DO NOT UNDERSTAND HOW IT WORKS MAYBE THE PROBLEM IS RELATED. VERY PROBABLY I'M DOING SOMETHING WRONG I AND IT IS NOT A PROBLEM OF THE LIBRARY FOR WHICH I WILL BE VERY GRATEFUL FOR ANY COMMENTS. GREETINGS JOSE FROM ARGENTINA
BELOW I ADD THE CORRESPONDING CODE TO THE EXAMPLE SUPPLIED WITH THE LIBRARY