[ Pobierz całość w formacie PDF ]
o Routing card for the Atmel AVR ATxmega256A3 and
ATxmega256D3 microcontrollers
o Selected MCU (either ATxmega256A3 or ATxmega256D3)
o Atmel RZ600 radio board
" Atmel AVR JTAGICE mkII (an XMEGA PDI adapter for AVR JTAGICE mkII is
required for the ATxmega256D3 device)
11.1.2 Hardware setup
1. Attach the ATxmega socket card and routing card to the STK600.
2. If RZ600 radio boards are used, attach the board to PORTC on the STK600. Be
sure to note the type of radio stick connected (RF231, RF230, or RF212) to
ensure compatible firmware is chosen in the later steps.
3. Connect LEDs to the ATxmega expansion board. By default, applications
provided with the SDK assume that the LEDs are connected through PORTE
(defined in \BitCloud\Components\BSP\ATML_STK600\include\
bspLeds.h). Connect PORTE on the ATxmega board to the LEDS connector on
the STK600 using a 10-wire cable.
4. Route the ATxmega UART to the RS-232 port on the STK600 board. The current
revision of the SDK uses asynchronous mode without hardware flow control (RXD
and TXD pins only) on PORTF USART 0. Use two-wire cable to connect PORTF pins
2 and 3 with the RS-232 SPARE connector: PF2 to RXD and PF3 to TXD.
5. Before performing any further operations, perform the steps required to get
started with the ATSTK600 [16]. Refer to AVR Studio Help for details on that
subject. At the least, make sure that the STK600 firmware is up to date, and
configure the voltage provided by the STK600 for the ATxmega socket card. For
that, perform the following steps:
a. Attach the STK600 to a PC using a USB cable.
b. In Atmel AVR Studio, open Tools > Program AVR > Connect&
dialogue.
c. Choose the correct Platform = STK600, and press Connect.
d. Update the STK600 firmware, if suggested.
e. Go to the HW Settings tab.
f. Specify the required voltage in the VTarget field, and press Write.
Please note that the voltage should be less than 3.6V (for example,
3.0V).
You need to perform this procedure once for each ATSTK600 board.
48
Atmel AVR2052
8200K-AVR-05/11
Atmel AVR2052
11.1.2.1 OTAU hardware setup
If you wish to demonstrate OTA upgrade functionality, a serial Atmel DataFlash
device (AT45DB041) shall be connected to the Atmel ATxmega256A3/Atmel
ATxmega256D3 pins specified in Table 11-1.
The Atmel STK600 board already has built-in DataFlash, and so to use OTAU on an
STK600, it is sufficient to connect the SI, SO, SCK, and /CS pins under the DataFlash
pin heading to the corresponding MCU pins noted in Table 11-1.
Table 11-1. External flash and MCU pin assignment.
DataFlash pin ATxmega256A3/D3 MCU pin
MOSI PD5
MISO PD6
CLOCK PD7
CS PD4
11.1.3 System requirements
Before using the SDK, please ensure that the following system requirements are met
by your PC and development environment.
Table 11-2. System requirements for ATSTK600.
Parameter Value Note
CPU Intel Pentium III, or higher,
800MHz
RAM 128MB
Free space on hard disk 50MB
JTAG emulator Atmel AVR JTAGICE mkII Required to upload firmware onto
emulator with cable the boards and debug through
JTAG (see Section 11.2.4)
Operating system Windows 2000/XP
IDE Atmel AVR Studio 4.18 Required to upload firmware
Service Pack 2 and images through JTAG and
WinAVR 20100110 (1) develop applications using the
OR API (see Section 5.2)
IAR Embedded Workbench
AVR 5.51
(with IAR C/C++ Compiler
for AVR v5.51.0.50312 (1))
Java virtual machine Java Runtime Environment Required to run the WSNMonitor
(JRE) 6, or later application
Note: 1. Users are strongly encouraged to use the specified versions of WinAVR and
IAR C/C++ Compiler for AVR. Other versions are not supported, and may not
work.
11.1.4 Installing the SDK
Proceed with the following installation instructions.
1. Download the archive to your PC and unpack it into an empty folder. The
following SDK folders and files will be created.
49
8200K-AVR-05/11
Table 11-3. The SDK file structure.
Directory/file Description
\Documentation Documentation for the Atmel BitCloud software
\Evaluation Ready-to-use image files for evaluating
Tools\WSNDemo (Embedded) WSNDemo. Refer to Section 11.3 for a
description of the images
\Evaluation WSNMonitor installer
Tools\WSNDemo (WSN
Monitor)\WSNMonitorSetup.exe
\BitCloud\Components Header files for the BitCloud stack
Root>\BitCloud\Components\BSP\ BSP
\BitCloud\lib Library files for the BitCloud stack
\Applications\ Source files for the sample applications
2. Install the selected IDE.
a. For Atmel AVR Studio and WinAVR:
a. Install AVR Studio [3], if not already installed on your PC.
Install WinAVR development suite [4], if not already installed
on your PC. Be sure to install only the supported version of
WinAVR, as specified in Table 11-2.
b. For IAR Embedded Workbench AVR:
a. Install IAR Embedded Workbench for Atmel AVR [13], if not
already installed on your PC.
Add a Windows environment variable named
IAR_AVR_HOME, and set its value to the IAR Embedded
Workbench installation directory (for a default installation, it is
C:\Program Files\IAR Systems\Embedded
Workbench 5.4_0). To do this, go to Control Panel >
System > Advanced > Environment Variables, click New
below the System variables list, and enter Variable Name
and Variable Value. This step is required if you plan to build
[ Pobierz całość w formacie PDF ]