openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601 and BL602
https://openbekeniot.github.io/webapp/devicesList.html
1.39k stars 241 forks source link

OTA update bricks device (BL602) #745

Closed Switch123456789 closed 1 year ago

Switch123456789 commented 1 year ago

Description:

Firmware:

To Reproduce

  1. Launch Web App & go to OTA
  2. Select a image of a recent build & flash it
  3. It will look like this and now the device is bricked image
openshwprojects commented 1 year ago

Sound's like a serious issue, are you able to determine when it started to happen?

Switch123456789 commented 1 year ago

I didn't update the firmware for like 2 month maybe. 2 days ago I tried to OTA-update with the latest build and the device died. Flashed it again the UART-way and it came back alive including my settings. It was the same thing with todays attempt, it died again.

openshwprojects commented 1 year ago

I am gettting my BL602 dev board out and I will test, if you have time you could also help me and tell me which release breaks so I can narrow down the issue. thanks

Switch123456789 commented 1 year ago

Okay, I'll report results soon!

Switch123456789 commented 1 year ago

I downgraded the latest version to 1.15.361, from there I took this update-path without issues: 500 > 531 > 551 > 571 > 581 > 582 > 583 > 584 > 585 > 586 > 587 > 588 > 589 > 590 > 591 > 601 > 602 > 603 > 604 > 605 > 609 Installing 610 or 611 brickes the device at this point. Sidenote 606-608 are offline on Github.

openshwprojects commented 1 year ago

Sadly I have issue with my BL602 dev board, not related to the OTA problem.

@Switch123456789 , thank you for analysis, this is very useful information. Can you check if OTA works for https://github.com/openshwprojects/OpenBK7231T_App/releases/tag/1.15.623 ? I reduced binary size...

Switch123456789 commented 1 year ago

I OTA-updated from 1.15.609 to 1.15.623 and to 1.15.624 no issues :)

openshwprojects commented 1 year ago

So it's a binary size...

Switch123456789 commented 1 year ago

Does that mean the image is to big for the storage of the chip? (noob here) BTW, I just flashed 1.15.637, again no issues anymore. I'll keep a device wired for flashing, let me know if I can help testing and stuff.

Sidenote: The files this selector is referring to are not OTA-flashable, I am not sure if this is supposed to be like this. image