You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read the documentation at readthedocs and the issue is not addressed there.
I have tested that the issue is present in current master branch (aka latest git).
I have searched the issue tracker for a similar issue.
If there is a stack dump, I have decoded it.
I have filled out all fields below.
Platform
Hardware: ESP-12
Core Version: 2.7.4
Development Env: Platformio
Operating System: Linux Mint
Settings in IDE
Module: Generic ESP8266 Module
Flash Mode: qio
Flash Size: 4MB
lwip Variant: v2 Higher Bandwidth
Reset Method: nodemcu
Flash Frequency: 40Mhz
CPU Frequency: 80Mhz
Upload Using: OTA
Upload Speed: [115200|other] (serial upload only)
Problem Description
I have been setting a custom MAC address on the ESP8266 using the wifi_set_macaddr and wifi_get_macaddr functions. So far, it has been working as expected. I confirmed this by turning the device off and on again, and the new MAC address remained in effect.
Recently, I conducted a new test to simulate an oscillation in the power source by quickly unplugging and plugging it back in several times. During this test, I noticed an unusual behavior. After the power oscillations, the MAC address read by wifi_get_macaddr was reverted to its original value
To resolve this issue, I read the MAC address from the EEPROM and compared it to the value returned by wifi_get_macaddr. If they didn't match, I executed ESP.restart(), and the correct custom MAC address was restored.
I would like to understand why this issue occurs. Is there any code within user_init that could fail due to power oscillations? I appreciate any insights or suggestions to prevent this issue in the future.
Basic Infos
Platform
Settings in IDE
Problem Description
I have been setting a custom MAC address on the ESP8266 using the wifi_set_macaddr and wifi_get_macaddr functions. So far, it has been working as expected. I confirmed this by turning the device off and on again, and the new MAC address remained in effect.
Recently, I conducted a new test to simulate an oscillation in the power source by quickly unplugging and plugging it back in several times. During this test, I noticed an unusual behavior. After the power oscillations, the MAC address read by wifi_get_macaddr was reverted to its original value
To resolve this issue, I read the MAC address from the EEPROM and compared it to the value returned by wifi_get_macaddr. If they didn't match, I executed ESP.restart(), and the correct custom MAC address was restored.
I would like to understand why this issue occurs. Is there any code within user_init that could fail due to power oscillations? I appreciate any insights or suggestions to prevent this issue in the future.
Thank you
MCVE Sketch
The text was updated successfully, but these errors were encountered: