Closed FLeXO21 closed 1 year ago
have you tried the full image flash ?
have you tried the full image flash ?
Yes i have flashed v2.4.0 full: esptool.exe --port COM4 --after no_reset write_flash 0x0 fw_v2.4.0_original_full_image.bin
The device gives a HW init problem after unable to read the preferences?
ESP-ROM:esp32s2-rc4-20191025 Build:Oct 25 2019 rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:2 load:0x3ffe6100,len:0x129c load:0x4004c000,len:0xaf4 load:0x40050000,len:0x2f2c entry 0x4004c1b8 [ 353][I][APP ] starting... [ 354][I][APP ] woke up. [ 354][I][APP ] cpu freq: 240 MHz [ 354][I][APP ] SW version: v2.4.0 [ 356][I][HW ] migrating factory params from nvs to efuse [ 811][E][Preferences.cpp:50] begin(): nvs_open failed: NOT_FOUND [ 368][E][HW ] failed to read factory params from nvs [ 372][I][HW ] read efuse factory params: SN=, RID=, M=, HW= [ 378][E][HW ] factory params empty [ 382][E][APP ] HW init failed! Going to sleep. E (388) sleep: Not an RTC IO: GPIO22 [ 392][I][APP ] deep sleep... z z z
If i flash fw_v2.3.0:
esptool.exe --port COM4 --after no_reset write_flash 0x0 fw_v2.3.0_original.bin I get this from the console:
invalid header: 0x746165▒ESP-ROM:esp32s2-rc4-20191025 Build:Oct 25 2019 rst:0x10 (RTCWDT_RTC_RST),boot:0x8 (SPI_FAST_FLASH_BOOT) invalid header: 0x74616572 invalid header: 0x74616572 invalid header: 0x74616572 invalid header: 0x74616572 invalid header: 0x74616572 invalid header: 0x74616572 invalid header: 0x74616572 invalid header: 0x74616572 invalid header: 0x74616572 invalid header: 0x74616572 invalid header: 0x74616572 invalid header: 0x74616572 invalid header: 0x74616572 invalid header: 0x74616572 etc
I think the failure to load prefs is because you flashed 2301-112_v2.0.4_full_image.bin
. That file contains specific info for device number 2301-112, which would make it incompatible with any other device. Flashing that put your device into some kind of factory mode, which isn't accessible to the user.
I suppose that , when @nplan reads this, he will send you the base firmware specific to your device (2301-048). If you have an "old" full backup from device 2301-048, you could try flashing that.
The firmware from 2301-048 was a last resort, and is the only one that booted All the other firmware's reported the invalid header messages prior to flashing the 2301-048 firmware
@FLeXO21 what fw version did you try to update from?
@FLeXO21 what fw version did you try to update from?
i try'd to update: fw_v2.3.0_original.bin, from this version: Firmware: v2.0.3
Versions 2.0.6 and earlier have factory parameters saved to flash. If you overwrite this section of the flash by flashing the firmware image at the wrong offset, the device won't boot. This is fixed in v2.1.0 and later by transferring factory data to hardware eFuses.
Here are the steps to fix your device:
After this procedure, the factory data is transferred to hardware eFuses. Erasing flash will not brick the device anymore, but it has to be programmed with the full image firmware afterwards.
Please send an email with your serial number to support@home-buttons.com, so I can send you the correct NVS bin file. I don't want to upload it here, since I don't want other users flashing it. It's specific to the device serial number.
Wonderful! Thank you for providing such detailed information. I will make sure to follow the procedure you've outlined.
Update: After updating the device with the correct NVS file it's working again
case closed 😝
After updating my HomeButtons the device was unable to boot.
The only firmware that seems to boot is this one: '2301-112_v2.0.4_full_image.bin'' My device S/N is 2301-048 so this firmware is not exactly for my device since the MAC adres is different.
From the debug port i get the following:
ESP-ROM:esp32s2-rc4-20191025 Build:Oct 25 2019 rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:2 load:0x3ffe6100,len:0x11b0 load:0x4004c000,len:0x8b4 load:0x40050000,len:0x2d88 entry 0x4004c198 [ 782][I][main.cpp:959] setup(): [DEVICE] starting... [ 782][I][main.cpp:249] main_task(): [DEVICE] woke up. [ 782][I][main.cpp:250] main_task(): [DEVICE] cpu freq: 240 MHz [ 787][I][main.cpp:251] main_task(): [DEVICE] SW version: v2.0.6 [ 801][I][main.cpp:270] main_task(): [HW] version: 2.3 [ 802][I][hardware.cpp:29] init(): configured for hw version: 2.3 [ 834][I][display.cpp:50] begin(): [DISP] begin [ 837][I][main.cpp:296] main_task(): [DEVICE] batt present: 0, DC connected: 1 [ 838][I][main.cpp:355] main_task(): [DEVICE] usr awake mode: 0, awake mode: 0 [ 842][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=10 scl=11 freq=100000 [ 852][W][Wire.cpp:301] begin(): Bus already started in Master Mode. [ 875][I][main.cpp:384] main_task(): [DEVICE] wakeup cause: RESET [ 7152][I][display.cpp:69] update(): [DISP] ended. [ 7158][I][main.cpp:53] start_esp_sleep(): [DEVICE] deep sleep... z z z ESP-ROM:esp32s2-rc4-20191025 Build:Oct 25 2019 rst:0x5 (DSLEEP),boot:0x8 (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:2 load:0x3ffe6100,len:0x11b0 load:0x4004c000,len:0x8b4 load:0x40050000,len:0x2d88 entry 0x4004c198 [ 513][I][main.cpp:959] setup(): [DEVICE] starting... [ 513][I][main.cpp:249] main_task(): [DEVICE] woke up. [ 513][I][main.cpp:250] main_task(): [DEVICE] cpu freq: 240 MHz [ 518][I][main.cpp:251] main_task(): [DEVICE] SW version: v2.0.6 [ 532][I][main.cpp:270] main_task(): [HW] version: 2.3 [ 533][I][hardware.cpp:29] init(): configured for hw version: 2.3 [ 565][I][display.cpp:50] begin(): [DISP] begin [ 568][I][main.cpp:296] main_task(): [DEVICE] batt present: 0, DC connected: 1 [ 569][I][main.cpp:355] main_task(): [DEVICE] usr awake mode: 0, awake mode: 0 [ 573][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=10 scl=11 freq=100000 [ 583][W][Wire.cpp:301] begin(): Bus already started in Master Mode. [ 606][I][main.cpp:370] main_task(): [DEVICE] wakeup cause: PIN 5 E (6673) phy_init: load_cal_data_from_nvs_handle: calibration data MAC check failed: expected 58:cf:79:b3:94:5c, found 58:cf:79:b3:94:76
How to go from here, i'm unable to flash any other image