1 DMBS - Dean's Makefile Build System
2 ===================================
8 The ATPROGRAM module provides build targets for use with the official
9 `ATPROGRAM` back-end utility distributed with the free
10 [Atmel Studio](http://www.atmel.com) software released by Atmel.
12 ## Importing This Module into a Makefile:
14 To use this module in your application makefile, add the following code to your
17 include $(DMBS_PATH)/atprogram.mk
21 This module requires the `atprogram.exe` utility to be available in your
22 system's `PATH` variable. The `atprogram.exe` utility is distributed in Atmel
23 Studio (usually) inside the application install folder's `atbackend`
28 The following targets are supported by this module:
34 <td>Program the device FLASH memory with the application's executable data.</td>
38 <td>Program the device EEPROM memory with the application's EEPROM data.</td>
43 ## Mandatory Variables:
45 The following variables must be defined (with a `NAME = VALUE` syntax, one
46 variable per line) in the user makefile to be able to use this module:
52 <td>Name of the Atmel processor model (e.g. `at90usb1287`).</td>
56 <td>Name of the application output file prefix (e.g. `TestApplication`).</td>
61 ## Optional Variables:
63 The following variables may be defined (with a `NAME = VALUE` syntax, one
64 variable per line) in the user makefile. If not specified, a default value will
70 <td>ATPROGRAM_PROGRAMMER</td>
71 <td>Name of the Atmel programmer or debugger tool to communicate with (e.g. `jtagice3`). Default is `atmelice`.</td>
74 <td>ATPROGRAM_INTERFACE</td>
75 <td>Name of the programming interface to use when programming the target (e.g. `spi`). Default is `jtag`.</td>
78 <td>ATPROGRAM_PORT</td>
79 <td>Name of the communication port to use when when programming with a serially connected tool (e.g. `COM2`). Default is `usb`.</td>
84 ## Provided Variables:
86 The following variables may be referenced in a user makefile (via `$(NAME)`
87 syntax) if desired, as they are provided by this module.
93 <td>This module provides no variables.</td>
100 The following macros may be referenced in a user makefile (via
101 `$(call NAME, ARG1, ARG2, ...)` syntax) if desired, as they are provided by
108 <td>This module provides no macros.</td>