pvvx / THB2

Custom firmware for Tuya devices on the PHY622x2 chipset
Other
92 stars 13 forks source link

THB1 wrong flash file #52

Closed AlexHighTower closed 1 month ago

AlexHighTower commented 1 month ago

Hello

By mistake I flashed my THB1 device with BTH1 boot file ((( it flashed with no error:

 python3 rdwr_phy62x2.py -p /dev/cu.usbserial  -e -r wh ./bin/BOOT_BTH01_v17.hex
=========================================================
PHY62x2 Utility version 11.03.24
---------------------------------------------------------
Connecting...
PHY62x2 - Reset Ok
Revision: b'001364c8 6222M005'
FlashID: 1364c8, size: 512 kbytes
PHY62x2 - connected Ok
---- Segments Table -------------------------------------
Segment: 11003000 <- Flash addr: 00003000, Size: 00008b64
Segment: 1fff0000 <- Flash addr: 0000bb64, Size: 00000400
Segment: 1fff1838 <- Flash addr: 0000bf64, Size: 00002bca
----------------------------------------------------------
Erase Flash work area... ok
Segment Table[03] <- Flash addr: 00002000, Size: 00000130
Write 0x00000130 bytes to Flash at 0x00002000... ok
Segment: 11003000 <- Flash addr: 00003000, Size: 00008b64
Write 0x00002000 bytes to Flash at 0x00003000... ok
Write 0x00002000 bytes to Flash at 0x00005000... ok
Write 0x00002000 bytes to Flash at 0x00007000... ok
Write 0x00002000 bytes to Flash at 0x00009000... ok
Write 0x00000b64 bytes to Flash at 0x0000b000... ok
Segment: 1fff0000 <- Flash addr: 0000bb64, Size: 00000400
Write 0x00000400 bytes to Flash at 0x0000bb64... ok
Segment: 1fff1838 <- Flash addr: 0000bf64, Size: 00002bca
Write 0x00002000 bytes to Flash at 0x0000bf64... ok
Write 0x00000bca bytes to Flash at 0x0000df64... ok
----------------------------------------------------------
Write Flash from file: ./bin/BOOT_BTH01_v17.hex - ok.
Send command 'reset' - ok

but now device display is flashing every second with all symbols and I fails to flash correct file.

how to be in this situation?

pvvx commented 1 month ago

FW does not affect the reflash process. Chip programming is a function built into the chip. Reflash with the normal version. It is also possible via BLE OTA...