🛠 hex2dfu tool (nanoFramework toolbox)
Перейти к файлу
José Simões ae3106c869
Work CI-CD
- Fix task condition .

***NO_CI***
2023-09-14 15:01:16 +01:00
docs Move Hex2Dfu to fully .NET managed working cross platform (#1) 2021-01-27 08:36:08 +00:00
source Properly handle end of file hex format line (#8) 2023-09-12 13:34:37 +01:00
.gitattributes Initial commit 2019-06-18 18:19:47 +01:00
.gitignore Initial commit 2019-06-18 18:19:47 +01:00
CODE_OF_CONDUCT.md Initial commit 2019-06-18 18:19:47 +01:00
CONTRIBUTING.md Initial commit 2019-06-18 18:19:47 +01:00
Directory.Build.props Work CI-CD 2021-06-01 11:48:54 +01:00
LICENSE.md Work CI-CD 2021-06-01 11:48:54 +01:00
README.md Update command format in readme (#9) 2023-09-12 13:41:18 +01:00
azure-pipelines.yml Work CI-CD 2023-09-14 15:01:16 +01:00
nanoFramework.Tools.Hex2Dfu.sln General update on build and dependencies (#7) 2023-02-13 13:13:11 +00:00
version.json General update on build and dependencies (#7) 2023-02-13 13:13:11 +00:00

README.md

License #yourfirstpr Build Status Discord

nanoFramework logo


Welcome to the nanoFramework HEX2DFU tool repository!

This repo contains the Hex2Dfu tool. It's a .NET 5 console app to convert and/or pack HEX or BIN files in DFU packages (required to update some target boards). It's part of nanoFramework toolbox, along with other various tools that are required in nanoFramework development, usage or repository management. There are prebuilt versions for Win64 and Linux.

Usage

Create a DFU file from a single hex file

To create a DFU package from a single hex file use the following command line:

hex2dfu -h=hex_file_name -o=output_DFU_image_file_name

Create a DFU file from one or more bin files

To create a DFU package from one (or more) bin files use the following command line:

hex2dfu -b=bin_file_name -a=hex_address_to_flash [-b=bin_file_name_N -a=hex_address_to_flash_N] -o=output_DFU_image_file_name

Optional parameters

The following parameters are available and are optional.

Set the VID of target USB device

Allows setting the VID of the USB device. Hexadecimal format. If not specified the STM default will be used. Usually used in conjunction with PID.

hex2dfu -h=hex_file_name -o=output_DFU_image_file_name [-v="0000"]

Set the PID of target USB device

Allows setting the PID of the USB device. Hexadecimal format. If not specified the STM default will be used. Usually used in conjunction with VID.

hex2dfu -h=hex_file_name -o=output_DFU_image_file_name [-p="0000"]

Set the firmware version of the target device

Allows setting the firmware version of the target device. Hexadecimal format. If not specified the STM default will be used. Can be used by the DFU tool to check for a valid device to update.

hex2dfu -h=hex_file_name -o=output_DFU_image_file_name [-f=""0000""]

Feedback and documentation

For documentation, providing feedback, issues and finding out how to contribute please refer to the Home repo.

Join our Discord community here.

Credits

The list of contributors to this project can be found at CONTRIBUTORS.

License

The nanoFramework HEX2DFU tool is licensed under the MIT license.

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.