Hi all, I have been using Blynk for a few months now and I bought a new MCU (Wemos D1 Mini Pro) which is the same as the other 2 that I am already using with Blynk to control relays around the house.
For some reason I’m having trouble connecting the new MCU to Blynk. I get an exception in the serial monitor when I use the Blynk example: ESP8266_Standalone, it does nothing except connect to my wifi and then runs Blynk.run(). I have added the sketch below.
0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18
0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18
0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18
0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18
On my Android device (Android 9, EMUI: 9.1.0) running the Blynk app 2.27.11 I don’t see that the device is online, I can see the other devices online, but not the new one.
Ok I made a new device in the app and for my project and I have added the token to the code and sent it to the MCU. The MCU restarted and in the serial monitor I unfortunately still see the following:
0x4022ca00: netif_set_addr at glue-esp/lwip-esp.c line 552
0x40203904: String::String(char const*) at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\WString.cpp line 36
0x40203904: String::String(char const*) at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\WString.cpp line 36
0x4020216c: ESP8266WiFiGenericClass::_eventCallback(void*) at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src\ESP8266WiFiGeneric.cpp line 218
0x40202004: ESP8266WiFiGenericClass::ESP8266WiFiGenericClass() at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src\ESP8266WiFiGeneric.cpp line 88
0x402036bd: UpdaterClass::UpdaterClass() at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\Updater.cpp line 45
0x40203add: esp_schedule() at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\core_esp8266_main.cpp line 95
0x40203b3a: init_done() at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\core_esp8266_main.cpp line 184
0x4020535c: malloc(size_t) at C:\Users\Morne\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\umm_malloc\umm_malloc.cpp line 1677
0x4020f391: sys_timeout_abs at core/timeouts.c line 189
0x4020f444: sys_timeout_LWIP2 at core/timeouts.c line 306
0x40216648: sntp_try_next_server at apps/sntp/sntp.c line 401
0x4020dd64: memp_malloc at core/memp.c line 356
0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18
0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18
0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18
0x40205a90: BlynkWidgetRead(BlynkReq&) at C:\Users\Morne\Documents\Arduino\libraries\Blynk\src\utility\BlynkHandlers.cpp line 18
I have not been working on any of my MCU devices for a few months now because everything was working fine and there was no need to work on them, but I had to replace one MCU recently and it might be possible that I have forgotten to do something with regards to setting up Blynk, etc.
Your exception errors are now associated with your ESP core, and I see that you’re running version 2.5.2
The latest version, released yesterday, is 2.6.2
Try updating your ESP core (using boards manager) to 2.6.2 and see if that helps. If it doesn’t then try downgrading to the highest 2.4.x version available.
After a late night, I have figured out that the problem lies with my board. I found out that it is a clone of a Wemos board and not a legit one. The supplier I bought my previous boards from gave me legit Wemos boards that time, but this time I got Wemos clones. That’s why I suspect they are not working like they should. I keep getting that exception from time to time which causes a reset and this disconnects from Blynk and my wifi every time. I went and bought a Adafruit Feather today and it works without any issues. Thanks for the quick assistance I am back in business!
thks for responding. I had this installed. It doesn’t work as expected. At first it showed that the xtensa-lx106-elf-gdb.exe was missing. On looking closely at the msg found that is searching for the file in the ESP32 folder while that board was ESP8266. The file was in the ESP8266 folder. Copied the exe to the ESP32 folder and the complaint vanished. However it displayed only the first two lines , then blank.
Since I found the solution for the original issue , I left it at that. shall investigate it when I get some time. In any case it , thare is some glitch with the utility. Why should it search for the exe in ESP32 folders when the board was ESP8266?
The problem is caused by a change in the ESP32 and ESP8266 core file layout. If you read the issues page in the GitHub repository you’ll see this discussed in detail, along with info on how to fix it.