logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dfu-prefix - add, check, or remove special firmware file prefix

Authors

       See AUTHORS file in source.

dfu-util 0.11                                    September 2021                                    DFU-PREFIX(1)

Bugs

       https://sourceforge.net/p/dfu-util/tickets/

Description

       The  program dfu-prefix can be used to add, check or remove a prefix used by certain hardware manufactur‐
       ers.  The Stellaris format from TI and the LPC format from NXP is supported.

       Note that a standard DFU firmware file has no concept of a prefix, and a  DFU  host  tool  like  dfu-util
       passes the prefix on to the device as part of the normal firmware payload.

Examples

dfu-prefix --stellaris-address 0x0100 --add firmware.dfu
              Adds a Stellaris prefix with load address 0x0100

       dfu-prefix --stellaris --check firmware.dfu
              Checks the file firmware.dfu for a Stellaris prefix

       dfu-prefix --lpc-prefix --delete firmware.dfu
              Removes a LPC prefix from the file firmware.dfu

Exit Values

0      Success (also if prefix is missing)

       -64    Usage error

Name

       dfu-prefix - add, check, or remove special firmware file prefix

Options

-s,--stellaris-addressaddress
              (in combination with --add) Add TI Stellaris address prefix to file

       -T,--stellaris
              (in combination with --delete or --check) Act on TI Stellaris address prefix of file

       -L,--lpc-prefix
              (in combination with --add or --delete or --check) Use NXP LPC DFU prefix format

       -h,--help
              Displays a help message.

       -V,--version
              Displays the software version.

See Also

dfu-suffix(1), dfu-util(1)

Synopsis

dfu-prefix [ -saddress | -L ] --addDFU_FILEdfu-prefix [ -T | -L ] --checkDFU_FILEdfu-prefix [ -T | -L ] --deleteDFU_FILEdfu-prefix--helpdfu-prefix--version

See Also