pvvx / THB2

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

BOOT_TH05D_v17.bin cant be flashed. #58

Closed g6094199 closed 3 days ago

g6094199 commented 3 days ago

i get this error:

`sudo python3 rdwr_phy62x2.py -p /dev/ttyUSB0 -e -r wh ./update_boot/BOOT_TH05D_v17.bin

========================================================= PHY62x2 Utility version 11.03.24

Connecting... PHY62x2 - Reset Ok Revision: b'001364c8 6222M005' FlashID: 1364c8, size: 512 kbytes PHY62x2 - connected Ok Traceback (most recent call last): File "/home/swirthmann/Downloads/THB2-master/rdwr_phy62x2.py", line 738, in main() File "/home/swirthmann/Downloads/THB2-master/rdwr_phy62x2.py", line 663, in main hp = ParseHexFile(args.filename) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/swirthmann/Downloads/THB2-master/rdwr_phy62x2.py", line 43, in ParseHexFile for hexstr in fin.readlines(): ^^^^^^^^^^^^^^^ File "", line 322, in decode UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 10: invalid start byte `

g6094199 commented 3 days ago

sorry. dont mind. wrong file.