NOTE: This project is not thoroughly tested yet!
Reliably read, write and erase flash memory for Telink Zigbee boards (eg. 8258) with just a USB-to-serial converter.
Clone or download the repository and execute Telink_Tools.py in a system with Python installed.
1 MB flash
Telink_Tools.py -p COM3 read_flash 0 1048576 dump.bin
512 KB flash
Telink_Tools.py -p COM3 read_flash 0 524288 dump.bin
Telink_Tools.py -p COM3 erase_flash 0 3
Please note that flash must be erased before write. You need to compute the number of minimum sectors to be erased remembering that 1 sector = 4 KB.
Telink_Tools.py -p COM3 erase_flash 0 31
Telink_Tools.py -p COM3 write_flash 0 motionSensor_TS0202.bin
https://github.com/Ai-Thinker-Open/TBXX_Flash_Tool https://github.com/Ai-Thinker-Open/Telink_825X_SDK/tree/master/example/bootloader https://github.com/pvvx/TlsrComProg825x