Skip to content

riuson/dfutools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DfuTools

This is a tools to manipulate STM32 DFU files.

Using DfuToolCli

  1. Create empty DFU
dfutoolcli dfu-create --set-device 0x1234 --set-product 0x5678 --set-vendor 0x0483 sample.dfu
  1. Change IDs in DFU file
dfutoolcli dfu-change --set-device 0xf132 --set-product 0xf567 --set-vendor 0xf483 sample.dfu
  1. Remove all targets from DFU file
dfutoolcli dfu-clear sample.dfu
  1. Show DFU contents
dfutoolcli dfu-show --data-length 16 sample.dfu
  1. Add new image element to specified target
dfutoolcli element-create --id 0 --set-address 0x08000000 --set-content element.bin sample.dfu
  1. Extract image element from specified target to file
dfutoolcli element-extract --id 0 --index 0 --output-file element.bin sample.dfu
  1. Remove image element from specified target
dfutoolcli element-remove --id 0 --index 0 sample.dfu
  1. Change target's ID and Name
dfutoolcli target-change --id 0 --set-id 2 --set-name "Hello, World!" sample.dfu
  1. Remove all image elements from target
dfutoolcli target-clear --id 0
  1. Create new target
dfutoolcli target-create --set-name "Bootloader" --set-id 0 sample.dfu
  1. Remove existing target
dfutoolcli target-remove --id 0 sample.dfu

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages