A SCons tool for creating DFU files.
- Add
dfu.py
into your SCons tools (i.e.site_scons/site_tools/
).
or
Add this repo as a submodule to your repo and add its path totoolpath
in your environment. - Include the tool in your environment and configure flags. See the tool files for construction variable names.
env = Environment(tools = ['dfu', ...], DFUSUFFIXFLAGS = "-p <pid> -v <vid>", ...)
- Build a DFU file!
firmware_dfu = env.DfuPrefix("firmware.dfu", "firmware.bin")
# or
firmware_dfu = env.DfuSuffix("firmware.dfu", "firmware.bin")