The DFU module provides build targets to program a USB connected target running a DFU class bootloader, via the official Atmel FLIP utility running via the command line, or the open source DFU-Programmer
tool.
To use this module in your application makefile, add the following code to your makefile:
include $(DMBS_PATH)/dfu.mk
This module requires the batchisp
utility to be available in your system's PATH
variable. The batchisp
utility is distributed as part of Atmel's FLIP software which can be downloaded from the official site.
This module requires the dfu-programmer
utility to be available in your system's PATH
variable. The dfu-programmer
utility is distributed from the official project site.
The following targets are supported by this module:
flip
Program the application into the device's flash memory, using Atmel FLIP.
flip-ee
Program the application's EEPROM data into the device's EEPROM memory, using Atmel FLIP.
dfu
Program the application into the device's flash memory, using dfu-programmer
.
dfu-ee
Program the application's EEPROM data into the device's EEPROM memory, using dfu-programmer
. </tbody>
The following variables must be defined (with a NAME = VALUE
syntax, one variable per line) in the user makefile to be able to use this module:
MCU
Name of the Atmel processor model (e.g. at90usb1287
).
TARGET
Name of the application output file prefix (e.g. TestApplication
). </tbody>
The following variables may be defined (with a NAME = VALUE
syntax, one variable per line) in the user makefile. If not specified, a default value will be assumed.
N/A
This module has no optional variables. </tbody>
The following variables may be referenced in a user makefile (via syntax) if desired, as they are provided by this module.
N/A
This module provides no variables. </tbody>
The following macros may be referenced in a user makefile (via $(call NAME, ARG1, ARG2, ...)
syntax) if desired, as they are provided by this module.
N/A
This module provides no macros. </tbody>