Example code
The source code for the DFU Host tool is provided in the installation directory:
- Windows : ~/ModusToolbox/tools_[version]/dfuh-tool/sample_code
- Linux™ : /opt/Tools/ModusToolbox/tools_[version]/dfuh-tool/share/dfuh-tool/sample_code/
- macOS : /Applications/ModusToolbox/tools_[version]/dfuh-tool/dfuh-tool.app/Contents/sample_code/
Use this source code as a reference to build your own tool. Refer to the README.md file for instructions on how to install the required dependencies and build the DFU Host Tool.
note
This example requires CMake 3.21 or later.