8
Atmel AVR32931
32162A-AVR-03/11
5 Programming the kit
5.1 Programming via the bootloader
The preprogrammed bootloader on the
Atmel AT32UC3L064
makes it possible to
program the device via the UART interface. Because the default board controller
firmware acts as UART-to-USB bridge, the
AT32UC3L064
can be programmed from
the PC via the USB connector.
The
AT32UC3L064
bootloader is started by pushing the mechanical switch (SW0)
during reset. Programming can be performed by using the BatchISP command-line
tool from the
FLIP
installation.
5.1.1 Prerequisites
To program the device, BatchISP is needed, and it can be found under the
FLIP
installation directory. Install
FLIP
version 3.4.2 or later.
The UART-USB gateway in the board controller must be intact to program the new
firmware into the device using BatchISP.
5.1.2 Step-by-step guide
To program the device, follow these steps:
1. Disconnect the USB cable from the kit.
2. Press and hold the button (SW0) while re-attaching the USB cable.
3. Open the device manager and locate the COM port used by the kit:
Figure 5-1.
Xplained kit COM port.
4. Run the command below with the correct COM port:
Batchisp -device AT32UC3L064
-hardware RS232
-port COM19
-baudrate 115200
–operation onfail abort
memory flash
erase f