Close

Always erase your chip instead of flashing it first

A project log for IoT framework for Arduino-esp32/8266

Accelerate IoT application development with ksIotFrameworkLib!

h4rdc0derh4rdc0der 07/18/2022 at 07:420 Comments

I've noticed that one of my devices is sometimes losing WiFi connection and is unable to reconnect again. I've updated NONOS core first, but still - same problem. Another ESP8266 based device with same code worked without issues.

Why?

Because of... RF_CAL (RF calibration area). This area isn't cleared automatically with every OTA update or serial flash - by flashing various software (with different SDK version) you might end up with incompatibile SDK in context of RF_CAL contents. That's why it's recommended to erase chip.

Doing full chip erase and then flashing software fixed the problem :)

Discussions