I have updated the RTL8720 firmware to version 20200730-rtl8720d-images-v2.2.0.2. After this update I get an “ESP-AT Lib not initialized!” Message on the monitor. While connecting to the WiFi network, the methods of the WiFi class do not work such as WiFi.localIP () or WiFi.gatewayIP () which return wrong addresses. By restoring the version 20200601-rtl8720d-images-v2.2.0.0 everything goes back to normal. Do you have any suggestions?
If you are getting these messages then it is likely that the update did not work, even if it says it has.
I had hours of fun with this. The WIKI is much better now but needs to be followed exactly.
I kept updating it with the image that had been backed up to disk. I did not realise that you need to flash from the dir you unpacked the NEW bin files from using the -d option.
There are three downloads:
1 copy to WIO
2 unpack the new version bin files to separate dir (dir1) .
3 unpack The programmer to a dir (dir2).
CD to Dir2 run the erase.
CD to Dir2 run the flash with -d Dir1
You also need to upload a sketch that can receive the new sw.
I did it yesterday with a new WIO and it worked OK. I can now connect to the WIFI.
I have now done it on Linux and Windows. The process is basically the same.
Stuart
Hi @stuartdd, I had already followed what you describe but the result is what I described to you. Apparently everything seems to work if if you monitor the bootstrap you will notice that an ESP library initialization failure message arrives and then the WiFi class methods do not work.
Sorry I do not know what the issue is.
The WIFI is not 100%, I think they are going to re-write the API soon.
I have had serious issues. I can connect to WIFI, I can get the time from an NTP server but after a couple of minutes the NTP calls will always fail… I have even tried re-connection to the WIFI but nothing changes.
The RTC is not good enough for a clock so I wanted to call NTP every 24 hours to sync my clock but it just does not work.
Also do not use a screen buffer (Sprite) to update the display. The WIFI process uses FreeRTOS which uses lots of memory. If you use a full screen sprite you will run out of memory and the process crashes! Just importing the library made my process unstable so I stopped using sprites.
There are load of really good things about the WIO and I have great hopes for the 2 I have but they need to deal with these issues.
Hopefully these issues will be dealt with soon.
Stuart