zoukankan      html  css  js  c++  java
  • Updating firmware with dfu-util

    Dfu-util
    Updating firmware with dfu-util

    You will need dfu-util 0.5 or newer to download dfu files to the DSO Nano. Older dfu-util versions will not work. The DSO Nano, and many other devices based on ST Micro's microcontrollers, uses ST Micro's own DFU extensions (DfuSe) which are not compatible with the DFU standard.

    You can find a dfu-util 0.8 package for Ubuntu 10.04 in Tormod's PPA. Just download and install the right .deb package. The same package should install fine in any later Ubuntu version or Debian unstable as well. For other operating systems you may have to build dfu-util yourself as described at the dfu-util home page.

    To download a .dfu firmware file from your computer to your Nano, run this command

    dfu-util -a 0 -D your-firmware-file.dfu

    You might have to rerun it a couple of times until it succeeds. If you get "permission denied" errors, prefix the command line with "sudo ". Do not forget to repeat the command with all needed firmware files (APP and LIB).
    Downloading a non-dfuse file to a dfuse device (advanced)

    A standard DFU device will accept a raw binary file from the computer and load it into the right place in flash memory. On the other hand, with DfuSe, the addresses are given by the .dfu file and the computer has to tell the device where to load it.

    So to download a raw binary file to a DfuSe device you have to know the target address.

    Example, to download a raw binary file (in case you are developing):
    dfu-util -a 0 --dfuse-address 0x08004000 -D your-lib.bin

    dfu-util -a 0 --dfuse-address 0x0800C000 -D your-app.bin

    How to build dfu-util from source

    See the build instructions at the dfu-util home page.
    Links

    Original forum posts and discussion:

        Linux procedure

        Mac OS X specific instructions

    Official home page

        dfu-util homepage

    copyright

    https://wiki.seeedstudio.com/Dfu-util/

  • 相关阅读:
    2017 ACM-ICPC 亚洲区(南宁赛区)网络赛 (B,F,L,M)
    Coderfroces 862 C. Mahmoud and Ehab and the xor
    [CQOI 2015] 任务查询系统
    [POI 2014] Couriers
    [POJ 2104] K-th Number
    [模板] 可持久化数组
    [AHOI 2006] 上学路线
    [SCOI2009] 生日礼物
    [BZOJ 3436] 小K的农场
    [USACO2007 Demo] Cow Acrobats
  • 原文地址:https://www.cnblogs.com/dong1/p/13748454.html
Copyright © 2011-2022 走看看