How to write program to TB-03F-KIT or TB-04-KIT.
- Connect the SWS pin to pin 2 of CH340.
- Execute the command, correcting the com port name.
Как записать программу в TB-03F-KIT или TB-04-KIT.
- Временно подключите вывод SWS к выводу 2 CH340.
- Выполните команду, исправив имя com-порта.
Sampling log:
>TlsrComProg.py -p COM7 -t5000 we 0 ../fw/tb3f_b2z.bin
================================================
TLSR825x Floader version 27.12.23
------------------------------------------------
Open COM7, 230400 baud...
Reset module (RTS low)...
Activate (5000 ms)...
Warning: Wrong RX-TX connection?
Connection...
Load <floader.bin> to 0x40000...
Bin bytes writen: 1896
CPU go Start...
------------------------------------------------
ChipID: 0x5562 (TLSR8253), Floader ver: 1.0
Flash JEDEC ID: c86013, Size: 512 kbytes
------------------------------------------------
Inputfile: ../fw/tb3f_b2z.bin
Write Flash data 0x00000000 to 0x00026393...
------------------------------------------------
(1) Warning
Another option:
Connect the TX output from the USB-UART adapter to the SWS module and use USBCOMFlashTx.html
Description can be found here: https://github.com/pvvx/ATC_MiThermometer?tab=readme-ov-file#the-usb-com-adapter-writes-the-firmware-in-explorer-web-version
If the module has a standard program, then TelinkOTA may work.
Firmware from Ai-Thinker usually has its own program for the programmer: https://github.com/Ai-Thinker-Open/TBXX_Flash_Tool
This is made from https://github.com/pvvx/TlsrComSwireWriter .