6
AVR1605
8242A-AVR-05/09
The following command will set up the COM1 in Windows when given in MSDOS
command line:
mode com1 Data=8 Parity=n Baud=9600 DTR=OFF RTS=OFF to=off
3 Communication with the bootloader
This section walks you through the basic steps for communicating with the bootloader
through the hardware setup. The necessary setup and requirements are described
along with relevant information.
3.1 Chip Erase
This section explains how to implement the ‘Chip Erase’ command.
Ensure that the steps to make the device wait in bootloader section are done [Press
both External RESET and SW0 on STK600 and release the RESET first and then the
SW0].
In the current working folder, double-click (run) the batch program called
x128A1_chip_erase.bat
The batch file runs the following command to erase the flash and the EEPROM when
using AVROSP:
AVROSP -dATxmega128A1 -e
Figure 3.1-1
Chip Erase
The command window shown in Figure 3.1-1. Chip Erase should appear: After
connecting to COM1, the device specific file is parsed for the ATxmega128A1 by
AVROSP and the output file is placed in the AVROSP_Test directory. Further, the
signature is matched and a chip erase is performed by the following operations:
1) Given COM port number is scanned