Git Product home page Git Product logo

tbxx_flash_tool's Introduction

安信可TB系列模块串口烧录工具 V2.x.x

V2.x.x版本的烧录工具不再使用bootloader,如果您需要使用V 1.5.x 版本的工具,请转到https://github.com/Ai-Thinker-Open/TBXX_Flash_Tool/tree/1.x.x

最新正式版下载:链接

工具原理介绍

此工具使用python语言编写,有命令行和图形界面连个版本。命令行版本效率高,方便集成; 图形界面版本操作简单直观,易于上手。

命令行工具所有代码都在Telink_Tools.py文件中。

图形界面工具的界面逻辑在TBXX_Flash_Tool.py,最终的操作还是要调用Telink_Tools.py文件中的函数。

模块接线说明

USB-TTL                 TB Moudle

                 470 Ω 
             ┌-----▅--------SWS
Tx-----------└-----▅--------Rx
                  470 Ω   
Rx---------------------------Tx
RTS--------------------------RST

图形界面版本操作说明

image

图形界面如上图所示,提供烧录固件,烧录三元组,擦除固件等功能。

烧录固件

首先点击串口选择框选择对应的串口,然后点击···按钮选择要烧录的固件,点击烧录固件按钮即可烧录,烧录成功后Log窗口将变成绿色,烧录失败Log窗口将变成红色。

烧录天猫精灵三元组

在图形界面上烧录三元组那一行有三个输入框,分别对应三元组的ProductID,MAC,Secert,在输入框中输入相应的数据并正确选择串口号,点击烧录三元组按钮即可烧录三元组。同样,烧录成功后Log窗口将变成绿色,烧录失败Log窗口将变成红色。

擦除固件

点击擦除固件按钮,将擦除模块中的固件。

擦除Mesh数据

点击擦除Mesh Key按钮,将擦除模块中的Mesh配网信息,包括Application KeyNetWork Key

整片擦除

点击整片擦除按钮,将擦除模块中出bootloader外的所有Flash区域。

常见问题

串口打开失败

如果提示 打开串口xxxx失败....,可能是串口被其他软件占用,解除暂用后再试一次即可。

连接芯片失败

如果提示 连接芯片失败,可能是接线错误请检查接线。

打包可执行文件

pyinstaller -F -w  -i aithinker.ico Ai-Thinker_TB_Tools.py

命令行版本操作说明

命令行版本的指令格式为:

python Telink_Tools.py [--port PORT] {burn,burn_triad,write_flash,read_flash,erase_flash}

烧录固件

指令示例:

python Telink_Tools.py --port com3 burn at_v1.2.bin

--port指定端口号,burn 为烧录指令,后面的参数为要烧录的固件

烧录三元组

指令示例:

python Telink_Tools.py --port com3 burn_triad 1345 78da07fa44a7 221746e805ac0e6269bd4d3e55f1145c

--port指定端口号,burn_triad 为烧录三元组指令,后面的三个参数依次为三元组的ProductID,MAC,Secert

擦除Flash

指令示例:

python Telink_Tools.py --port com3 erase_flash 0x4000 16

--port指定端口号,erase_flash擦除Flash指令,后面的两个参数依次为要擦除的Flash起始地址和擦除的扇区数。Flash最小擦除单元为一个扇区,TB模块Flash的每个扇区为4096字节。

tbxx_flash_tool's People

Contributors

ospanic avatar xuhongv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tbxx_flash_tool's Issues

English please

Think about ai thinker's fans who speak only English and would like to try BT-02. Pretty please.

1.x.x固件如何刷写升级到2.x.x

前提:说明里写2.x.x已经不使用bootloader

  1. 尝试使用2.x.x烧录,一直提示芯片连接失败
  2. 使用1.5.x烧录,成功

问题:我怎么做才可以使用2.x.x烧录

串口工具无法使用

串口调试工具无法使用,无法从开发板读取串口数据,老版本的v1.5.0可以

Bootloader source code please

Hi, thank you for the great tool!

Is it possible to have the source code for the bootloader binary encoded in the UartBoot.py file?

I think the read flash feature is broken and I would like to fix it.
Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.