Giter VIP home page Giter VIP logo

gl-silabs-dfu's Introduction

gl-silabs-dfu

本工程基于 silicon lab xmodem-uart-bootloader 和 silicon lab bgapi-uart-bootloader 进行固件升级。

Getting Start

$ git clone https://gitlab.com/gl.iot/gl-silicon-dfu.git

Run gl-silabs-dfu:

xmodem

gl-silabs-dfu xmodem [Upgrade file path] [Uart] [Reset IO] [DFU enable IO] [-v] [-c]
  • -v: Printing the Upgrade Progress
  • -c: Thread version checking
  • -cb:BLE version checking

bgapi

gl-silabs-dfu bgapi [dfu mode] [Upgrade file path] [Uart] [Reset IO] [DFU enable IO] [-v]

dfu mode

  • soft: software reboot triggers the dfu mode. In this mode, you don't need input a dfu-enable IO.

Warning: If your device is only software-enabled in DFU mode, any interruption during the upgrade will cause the firmware to mess up and work only by reburning the firmware. So we don't recommend using this mode.

  • hard: hardware triggers the dfu mode. In this mode, you need input a dfu-enable IO.

Example

xmodem

# gl-silabs-dfu xmodem ./gl-efr32mg21f768-thread-rcp-v2021-10-19-1fbf6bb-71e4df982.gbl /dev/ttyUSB0 2 17 -v
file size:80040
start upload...
process:[====================================================================================================>]100% 
upload ok. total size:80128
reset chip now...
dfu success!

bgapi soft mode

# gl-silabs-dfu bgapi soft ./test-high.gbl /dev/ttyS1 5 -v
Get upgrade firmware size: 214332
* System boot evrnt!
* Module firmware version: 2.13.10
* Build number:            423
process:[====================================================================================================>]99% *** DFU END! ***
* System boot evrnt!
* Module firmware version: 3.3.2
* Build number:            406
Module reset finish, please check firmware version.

GBL File Creation

环境部署

找到commander.exe的安装路径,并将该路径添加到系统Path环境变量,如下图:

avatar

生成未加密的GBL文件

打开工程文件,找到生成的 .s37 文件的路径,并在该路径下打开CMD命令行窗口,输入如下命令格式:

$ commander gbl create <gblfile> --app <filename> [--encrypt <keyfile>]

如下图所示,在当前目录下生成了未加密的GBL文件

avatar

gl-silabs-dfu's People

Contributors

gl-chenxiaosheng avatar hefeng1947 avatar lancersky avatar lancersky2017 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cubieb

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.