1 DMBS - Dean's Makefile Build System
2 ===================================
8 The AVRDUDE module provides build targets for use with the official
9 open source `AVRDUDE` programmer utility, for the reprogramming of Atmel devices
10 using a wide variety of official and non-official programming devices and
13 ## Importing This Module into a Makefile:
15 To use this module in your application makefile, add the following code to your
18 include $(DMBS_PATH)/avrdude.mk
22 This module requires the `avrdude` utility to be available in your
23 system's `PATH` variable. The `avrdude` utility is distributed on the project's
24 [official site](https://savannah.nongnu.org/projects/avrdude) but is also
25 made available in many *nix operating system's package managers.
29 The following targets are supported by this module:
35 <td>Program the device FLASH memory with the application's executable data.</td>
39 <td>Program the device EEPROM memory with the application's EEPROM data.</td>
44 ## Mandatory Variables:
46 The following variables must be defined (with a `NAME = VALUE` syntax, one
47 variable per line) in the user makefile to be able to use this module:
53 <td>Name of the Atmel processor model (e.g. `at90usb1287`).</td>
57 <td>Name of the application output file prefix (e.g. `TestApplication`).</td>
62 ## Optional Variables:
64 The following variables may be defined (with a `NAME = VALUE` syntax, one
65 variable per line) in the user makefile. If not specified, a default value will
71 <td>AVRDUDE_PROGRAMMER</td>
72 <td>Name of the programmer/debugger tool or bootloader to communicate with (e.g. `jtagicemkii`). Default is `jtagicemkii`.</td>
76 <td>Name of the communication port to use when when programming with a serially connected tool (e.g. `COM2`). Default is `usb`.</td>
79 <td>AVRDUDE_FLAGS</td>
80 <td>Additional flags to pass to `avrdude` when invoking the tool. Default is empty (no additional flags).</td>
83 <td>AVRDUDE_MEMORY</td>
84 <td>Memory space to program when executing the `avrdude` target (e.g. 'application` for an XMEGA device). Default is `flash`.</td>
89 ## Provided Variables:
91 The following variables may be referenced in a user makefile (via `$(NAME)`
92 syntax) if desired, as they are provided by this module.
98 <td>This module provides no variables.</td>
105 The following macros may be referenced in a user makefile (via
106 `$(call NAME, ARG1, ARG2, ...)` syntax) if desired, as they are provided by
113 <td>This module provides no macros.</td>
120 The changes to this module since its initial release are listed below, as of the
121 DMBS version where the change was made.