Mixiaoxiao / Arduino-HomeKit-ESP8266

Native Apple HomeKit accessory implementation for the ESP8266 Arduino core.
MIT License
1.53k stars 280 forks source link

ESP-01S Failed read HomeKit storage magic #206

Open michalgorka opened 1 year ago

michalgorka commented 1 year ago

Hi, i moved my program from decelop board into eps-01s (1MB Flash) after that i'm not able to connect with device i got an issues:

After wifi connect

>>> [   7216] HomeKit: Starting server
!!! [   7219] HomeKit: Failed to read HomeKit storage magic
>>> [   7224] HomeKit: Formatting HomeKit storage at 0x3fb000
!!! [   7230] HomeKit: Failed to erase HomeKit storage
>>> [   7235] HomeKit: Resetting HomeKit storage
!!! [   7239] HomeKit: Failed to reset HomeKit storage

And when trying connect

After wifi connect

>>> [  61556] HomeKit: [Client xxxxxxx] Pair Setup Step 3/3
>>> [  61599] HomeKit: Call ge_double_scalarmult_vartime_lowmem in ge_low_mem.c
!!! [  63023] HomeKit: Failed to compact HomeKit storage: sector data read error
!!! [  63030] HomeKit: Failed to write pairing info to HomeKit storage: max number of pairings
!!! [  63038] HomeKit: [Client 1073684356] Failed to store pairing (code -2)

Do you have some idea how i can solve this issue?

PimV5755 commented 1 year ago

Two things to check: 1- settings in Arduino are correct for the ESP01 1MB Flash? 2- It could be a broken or damaged eprom; Try another ESP01.