Техническая Спецификация для Atmel ATSAM3S-EK2
Atmel AVR2055
35
8348D-AVR-06/12
8.3.2 Running a demo on a PC
To run a ZAppSI demo on a PC:
1. Load the Runner firmware image to the target coprocessor platform (see Chapter
1. Load the Runner firmware image to the target coprocessor platform (see Chapter
the security setting with which Runner was compiled. The security setting of the
ZAppSI host library must match that of the Runner application. Note that the
precompiled Runner binary is compiled with ZigBee high security support (that is,
no Certicom library).
2. To compile the host application, follow the steps below. Otherwise, use the
precompiled binaries for the ZAppSI PC demo application as specified in
a. Open the Smart Energy Meter or the Home Automation demo application
configuration.h
header file located in
./Application/ZAppSi/Demo/SEDevice
or
the
./Application/ZAppSi/Demo/HADevice directory, respectively
b. Select key parameters described in
c. From command line, run:
make clean; make all
, which will produce the
demo’s executable
Demo.exe
in the same folder, ZAppSI host lib will be
built automatically
3. Connect a PC to the target board (where the Runner binary was installed in step
1) using an RS-232 serial cable. Note that different target boards (XMEGA-
STK600 and SAM7X-EK) may have different connector types: male or female.
You must select a serial cable accordingly.
4. From the command line, run:
Demo.exe COM<num>
, where <num> is the COM
port to which the target Runner board is connected.
NOTE
It may be helpful to redirect
Demo.exe
output to a file, as the program also echoes the
commands sent to Runner to the terminal, and those commands include non-
printable characters which may negatively affect the terminal software.
8.3.3 Running a demo on an embedded platform
To run a ZAppSI demo on an embedded host platform:
1. Load the Runner firmware image to the target coprocessor platform (see Chapter
1. Load the Runner firmware image to the target coprocessor platform (see Chapter
the security setting with which Runner was compiled. The security setting of the
ZAppSI host library must match that of the Runner application. Note that the
precompiled Runner binary is compiled with ZigBee high security support (that is,
no Certicom library).
2. Open the IAR Embedded Workbench workspace file located in the
./Application/ZAppSi/Demo/SEDevice/iar_projects
or
the
./Application/ZAppSi/Demo/HADevice/iar_projects
directory.
3. Compile the required configuration, selecting the appropriate configuration and
editing the
configuration.h
file, if necessary.
4. Program the target host board with the resulting ZAppSI demo binary. See
5. Connect the board running the demo to the board running the Runner application
using an RS-232 serial cable.
Table 8-2. ZAppSI host lib and ZAppSI demo application configuration.
Tag format
Description