LUFA Library  151115
The ATPROGRAM build module

The ATPROGRAM programming utility LUFA build system module, providing targets to reprogram an Atmel processor FLASH and EEPROM memories with a project's compiled binary output files.

To use this module in your application makefile, add the following code:

include $(LUFA_PATH)/Build/lufa_atprogram.mk

Requirements

This module requires the atprogram.exe utility to be available in your system's PATH variable. The atprogram.exe utility is distributed in Atmel AVR Studio 5.x and Atmel Studio 6.x inside the application install folder's "\atbackend" subdirectory.

Targets

atprogram Program the device FLASH memory with the application's executable data.
atprogram-ee Program the device EEPROM memory with the application's EEPROM data.

Mandatory Parameters

MCU Name of the Atmel processor model (e.g. at90usb1287).
TARGET Name of the application output file prefix (e.g. TestApplication).

Optional Parameters

ATPROGRAM_PROGRAMMER Name of the Atmel programmer or debugger tool to communicate with (e.g. jtagice3).
ATPROGRAM_INTERFACE Name of the programming interface to use when programming the target (e.g. spi).
ATPROGRAM_PORT Name of the communication port to use when when programming with a serially connected tool (e.g. COM2).

Module Provided Variables

None

Module Provided Macros

None