E(76) wifi: invalid magic number 3f40df10 , using ESP32 with ArduinoIDE


Hi Everyone,
I could not join to my wifi , and get this error message äfter setting the wifi credential and device token, then reboot.

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
mode:DIO, clock div:1
ho 0 tail 12 room 4
entry 0x400806a8
1970-01-01 00:01:24 doinit: SDK version: v3.2.3, log level: 2

E (76) wifi: invalid magic number 3f40df10, call WIFI_INIT_CONFIG_DEFAULT to init config
1970-01-01 00:01:24 init_wifi2: esp_wifi_init(&cfg) failed

I am using minimal.ino from mdash example.using ESP32 and Arduino IDE with mDash Library version 1.0.49.


Apparently the esp32 arduino sdk version changed, let us upgrade, too.
We’ll release an update tomorrow.


Please try to refresh mDash lib - the fix is in the version 1.1.1.
This is the minimal working sketch:


thanks lsm.

I’ve updated mdash library to version 1.1.2, and following the sketch: https://github.com/cesanta/mDash/blob/master/examples/Minimal/Minimal.ino
and also defined my wifi credentials and token.

When try to download to ESP32 device , these error messages found:

Using library mDash at version 1.1.2 in folder: C:\Users\tombi\Documents\Arduino\libraries\mDash
Using library WiFi at version 1.0 in folder: C:\Users\tombi\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\WiFi
exit status 1
‘mDashStart’ was not declared in this scope


Replace mDashStart with mDashBegin and it will compile.

1 Like

thanks nliviu,
It’s successfully online to mdash server.


Thank you.

Pushed 1.1.3 with the fix.

Now, mDash library should work with any SDK.


With 1.1.3 I get lots of dangerous relocation: call8: call target out of range errors. ESP32 for Arduino 1.02 and 1.0.3.

/Users/lsm/src/cesanta.com/alib/mjson.c:526:(.text+0xe1): dangerous relocation: call8: call target out of range: strlen
/Users/lsm/src/cesanta.com/alib/mjson.c:527:(.text+0xf3): dangerous relocation: call8: call target out of range: realloc
/Users/lsm/src/cesanta.com/alib/mjson.c:530:(.text+0x105): dangerous relocation: call8: call target out of range: memcpy

Thanks for the update @nliviu! Wonder what these dangerous relocations mean…


FYI - that has been fixed.