I have used the uf2 method to update the rtl8720. I dragged rtl8720_update.uf2 to the Arduino drive that is shown in boot mode.
Trying the WiFi Scan sample I get this output.
What might cause “Cannot initialize ESP-AT Lib!”
Thanks
Ted
Hi @Ted_Finch, you need to enter the bootloader mode by sliding the power switch twice quickly and An external drive named Arduino should appear in your PC. Drag the the downloaded rtl8720_update.uf2 files into the Arduino drive and it will reset the Wio Terminal and loaded loaded the sketch!
Thanks.
Perhaps I was tired as I think that is what I had tried last night!
This morning I loaded the rtl8720_update.uf2 then used the flash tool to erase and load - the tool reported success.
The text “it will reset the Wio Terminal and loaded loaded the sketch!” does not really make sense. Should it be something like “it will reset the Wio Terminal and run the rtl8720_update the sketch! The new sketch will work with the flash tool to update the Realtek RTL8720 Wireless core.”
OK - I am not sure what I did differently however now the WiFi Scan sketch sometimes finds two 5GHz SSIDs but not the two 2.4GHz SSIDs that are also broadcast by my router. Is this as expected?
Can I echo the thoughts of stuarddd in his post:
and suggest the text of the update process be reviewed so that someone with very little knowledge of the Wio Terminal ecosystem can follow it. I am not a beginner by any means but still took 6 attempts on a Windows setup to get the update to take.
Hi
Yes I searched the board thoroughly. There seems to be a consensus that the update process is not straightforward and perhaps some clarity in the WiKi may help.
At the moment I am struggling to get the Wio Terminal to actually connect to WiFi. My PC can see 4 SSIDs but Wio Terminal does not seem to find either of them and connect even when placed within a metre of the router.
looks like your update failed.
to connect to your WIFI your SSID should be visible in this sketch output first, looks like wifi(update) is not working at all
I think all is OK.
By moving nearer to the router I found 4 SSIDs OK and now can see one of these from my work desk.
I have the Covid-19 Dashboard example working now!
So the WiFi connection works OK too.
Hurdle 1 - firmware update - load the rtl8720_update.uf2 after a double click shows up the Arduino Drive
Run the flash erase and flash load process but put the 3 bin files in a separate folder.
Hurdle 2 - You need a reasonably strong WiFi signal for the WIO Terninal to make a(n initial) connection.
Thanks for your attention.
Ted
If I understand correctly, rtl8720_update_v2.uf2 is simple serial bridge to RTL chip, so if I open serial connection while rtl8720_update is running, I get direct connection to RTL chip and it has to answer AT commands. But I only receive endless sequence of 0x15 bytes. If any activity from my side occured, that sequence stop to transmit.
So, I’m afraid RTL chip is bricked.
Hello, for me it wasnt even showing the starting when trying your code, but I tried something and it worked…
What I think is that the while (!Serial); // Wait to open Serial Monitor is not working well… and it starts directly after uploading, the reason why it’s so fast it doesn’t even show… and since it is in void setup, it only runs once.
So I tried 2 things:
The first, was to put the rest of the code inside the coid loop:
#include “rpcWiFi.h”
void setup() {
Serial.begin(115200);
}
void loop() {
while(!Serial); // Wait to open Serial Monitor
Serial.println(“Starting…”);
Serial.printf(“RTL8720 Firmware Version: %s”, rpc_system_version());
delay(5000);
}
The other thing that worked for me, was to add a delay after the while(!Serial) instruction… which gives you 5 seconds to open the serial monitor…
#include “rpcWiFi.h”
void setup() {
Serial.begin(115200);
while(!Serial); // Wait to open Serial Monitor
delay(5000);
Serial.println(“Starting…”);
Serial.printf(“RTL8720 Firmware Version: %s”, rpc_system_version());
Serial.println();
}