Renesas RZB-ZMD16C-ZDK User Manual

Applications Engineering
ZigBee Demo Kit (ZDK)
RZB-ZMD16C-ZDK
User’s Manual
Version 1.2 August 2006
www.renesas.com
Table of Contents
1.0 Introduction............................................................................................................................................. 4
2.0 Contents of Product Package................................................................................................................. 5
2.1. RZB-ZMD16C-ZDK ZigBee Demonstration Kit Item List................................................................... 5
2.2. CD-ROM ............................................................................................................................................ 5
3.0 Limited Guarantee and Support ............................................................................................................. 6
4.0 System Connectivity ............................................................................................................................... 7
4.1. Host Computer Requirements ........................................................................................................... 8
4.2. RZB-ZMD16C-ZDK Boards ............................................................................................................... 8
4.3. RF Sniffer Board................................................................................................................................ 8
4.4. RF Sniffer Interface (RFSI)................................................................................................................ 9
4.5. RF Sniffer Software and USB Driver ................................................................................................. 9
4.6. In-Circuit Debugger and Programmer (ICD)...................................................................................... 9
4.7. Software Development Tools ............................................................................................................ 9
4.7.1. HEW (High-performance Embedded Workshop)........................................................................ 9
4.7.2. NC30WA Evaluation Version C Compiler ................................................................................... 9
4.7.3. HEW Debug Interface ................................................................................................................. 9
4.7.4. FoUSB (Flash-over-USB™) Programmer................................................................................. 10
5.0 Hardware .............................................................................................................................................. 11
5.1. ZDK Board (RZB-ZMD16C-ZDK) .................................................................................................... 11
5.2. RZB-ZMD16C-ZDK Board Block Diagram ...................................................................................... 12
5.3. M16C/28 Group of MCUs ................................................................................................................ 12
5.4. RZB-ZMD16C-ZDK Board Jumper Configuration ........................................................................... 12
5.4.1. JP1: MCU (U4) Power............................................................................................................... 12
5.4.2. JP2: Power LED (D4) and RS232 (U7) Transceiver Power...................................................... 13
5.4.3. Default Jumper Settings............................................................................................................ 13
5.5. LCD (Liquid Crystal Display) ........................................................................................................... 13
5.6. ZigBee RF........................................................................................................................................ 13
6.0 Limitations of the ZbRom System......................................................................................................... 13
6.1. Timers.............................................................................................................................................. 13
6.2. System Clock................................................................................................................................... 14
6.3. Interrupts.......................................................................................................................................... 14
6.4. Flash and RAM Usage .................................................................................................................... 14
6.5. Stack RAM Usage ........................................................................................................................... 14
6.6. Global Variable RAM Usage............................................................................................................ 15
6.7. MAC Address Area .......................................................................................................................... 15
6.8. ZbROM Flash Size .......................................................................................................................... 15
6.9. ZbROM RAM Size ........................................................................................................................... 15
6.10. ZigBee Stack Table Sizes ............................................................................................................. 15
6.11. Customization of Demo Program Settings ....................................................................................16
6.12. Other Limitations............................................................................................................................ 16
7.0 System Operation & Limitations ........................................................................................................... 17
7.1. Kernel (ROM Monitor) Introduction.................................................................................................. 17
7.2. Pin and Peripheral Limitations......................................................................................................... 17
7.3. Memory Map.................................................................................................................................... 17
7.4. Register Operation Limitations ........................................................................................................ 18
7.5. Limitations on Interrupts - Vectors that Reside in the Hardware Vector Table ............................... 18
7.6. Stop or Wait Mode Limitations......................................................................................................... 19
7.7. User Program’s Real-Time Capability ............................................................................................. 19
7.8. Performing Debug Using Symbols .................................................................................................. 19
8.0 RZB-ZMD16C-ZDK Board Specifications ............................................................................................ 20
8.1. Hardware Specifications.................................................................................................................. 20
8.2. Power Supply Requirements ........................................................................................................... 20
RZB-ZMD16C-ZDK User’s Manual Rev 1.2 August 2006
8.3. Operating Environment.................................................................................................................... 20
Appendix A. Troubleshooting Guide........................................................................................................... 21
A.1 Manual Installation ........................................................................................................................... 21
A.2 USB Driver Problems ....................................................................................................................... 21
A.3 Debugging Problems........................................................................................................................ 22
A.3.1 Erratic Debug Behavior.............................................................................................................. 22
A.3.2 Cannot Connect to Target.......................................................................................................... 22
A.3.3 Issues that May Arise During Debug Operations ...................................................................... 23
Appendix B. Reference Manuals ................................................................................................................ 25
Appendix C. Expansion Headers................................................................................................................ 26
Appendix D. Board Schematic & BOM....................................................................................................... 28
Appendix E. RZB-ZMD16C-ZDK Printed Circuit Board.............................................................................. 31
Appendix F. Other Resources .................................................................................................................... 33
RZB-ZMD16C-ZDK User’s Manual Rev 1.2 3/ 33 August 2006
1.0 Introduction
The RZB-ZMD16C-ZDK kit is a low-cost ZigBee demonstration kit for evaluating wireless ZigBee connectivity solutions based on the Renesas M16C/28 group of microcontrollers (MCU).
A small ZigBee Personal Area Network (PAN) can be set up, monitored and analyzed with the included hardware and software.
The kit contains one RF Sniffer board that connects to a PC’s USB port via an RTA-FoUSB-MON unit, which comes pre-programmed to function as the RF Sniffer Interface (RFSI). RF Sniffer software installed on the PC allows you to record and analyze ZigBee data packets. The software can also display the network topology of a ZigBee network. For more information on the RF Sniffer software and hardware, see the RF Sniffer User’s Manual, accessible via Start > (All) Programs > Renesas > RF SnifferV.x.xx
A second RTA-FoUSB-MON unit included in the kit comes pre-programmed to function as a Flash Programmer and In-Circuit-Debugger (ICD). Three ZigBee Demonstration Kit (ZDK) boards come pre­programmed with demo software that allows you to quickly set up a small ZigBee PAN comprised of a ZigBee network Coordinator and two ZigBee network Routers.
The kit comes with a complete software development tool chain for Renesas MCUs, including High­performance Embedded Workshop (HEW), which includes Integrated Development Environment (IDE), Graphical User Interface (GUI) and Software Debugger; NC30WA C-compiler, assembler and linker; and Flash-over-USB™ (FoUSB) Programming software.
A real-time, source-level debug environment is implemented using the HEW debugging interface with the RTA-FoUSB-MON Flash Programmer/ICD. The Flash-over-USB combination with the ICD, allows in-system programming of the M16C/28 Flash MCUs on the ZDK and RF Sniffer target boards.
The ICD and firmware provide a convenient Universal Serial Bus (USB) interface between the ZDK boards and the host PC. This interface reduces resource requirements on the M16C/28 MCU and allows faster code downloads. It also can be used with many other Renesas Flash MCUs, starter kits, and your own Renesas MCU-based target boards.
This ZDK provides a ZigBee stack and a real-time operating system (RTOS) for the stack in binary form. Your own application code can interface to the ZigBee stack via documented Application Programming Interface (API) function calls. Two binary files are provided in the directory
C:\Renesas\RZB_ZMD16C_ZDK\ZbRom:
ZbRom_ZMD28_FFD_Vxx.mot contains the ZigBee stack and RTOS for Full Function Devices (FFD), i.e.
ZigBee Routers or Coordinators. The module also contains all necessary MCU initialization routines.
ZbRom_ZMD28_RFD_Vxx.mot contains the ZigBee stack and RTOS for Reduced Function Devices (RFD), i.e. ZigBee End Devices. It has a smaller memory footprint than the FFD binary, leaving more memory available for your own application code. The module also contains all necessary MCU initialization routines.
Sample projects for the Renesas High-performance Embedded Workshop (HEW) allow you to quickly create your own ZigBee coordinator, router or end device.
TM
(FoUSB) Programmer software, in
RZB-ZMD16C-ZDK User’s Manual Rev 1.2 4/ 33 August 2006
2.0 Contents of Product Package
This section describes the contents of the RZB-ZMD16C-ZDK product package. When unpacking your RZB-ZMD16C-ZDK, please check to see that all items listed below are included.
2.1. RZB-ZMD16C-ZDK ZigBee Demonstration Kit Item List
Table 2-1
Table 2-1 RZB-ZMD16C-ZDK Item List
RZB-ZMD16C-ZDK Board 3 ZigBee Demo Kit (ZDK) Boards, pre-programmed with
RF Sniffer Board 1 RF Sniffer Board, pre-programmed with Sniffer
RTA-FoUSB-MON (ICD) 1 In-Circuit Debugger and Flash Programmer Interface RTA-FoUSB-MON (RFSI) 1 RF Sniffer Interface 6” 10-Pin Target Cable 2 Connects ICD and RFSI units to ZDK and RF Sniffer
6’ Mini USB Cable 2 Connects ICD and RFSI units to Host PC Battery Pack with 3 AA batteries 3 Powers the three ZDK boards CD-ROM Auto-install program
lists the items included in the RZB-ZMD16C-ZDK.
Item Name Quantity Remarks
demo software
firmware
boards
RF Sniffer software HEW (IDE & debugger) NC30WA (C-compiler, assembler, and linker) FoUSB Programmer USB drivers Manuals Tutorials Sample programs
2.2. CD-ROM
The CD-ROM contains the electronic manuals and software necessary for developing programs. Your computer must have a web browser — like Mozilla Firefox, Netscape® Browser or Microsoft® Internet Explorer — to view the help files, and Adobe® Acrobat® Reader® to view the manuals.
Insert the enclosed CD into your computer and the installer will auto-start. The installer program will create C:\Renesas and C:\Workspace folders on your machine. NC30WA, FoUSB Programmer, Documentation, sample code, and other ZDK-related files are in the C:\Renesas folder. HEW is installed in the C:\Program Files folder by default.
If the installer program does not start, browse to the CD’s root folder and double-click on ZDK_Installer.exe to start the installation.
RZB-ZMD16C-ZDK User’s Manual Rev 1.2 5/ 33 August 2006
3.0 Limited Guarantee and Support
Renesas Technology America, Inc., warrants the RZB-ZMD16C-ZDK to be free from component or assembly defects for a period of 180 days from the date of purchase. Settlement is limited to repair or replacement of the product only. Renesas Technology America, Inc., does not assume any liability arising out of the application or use of any product, circuit or procedure described herein. No other liability or warranty applies, expressed or implied. Software warranty is limited to replacement of the CD only. While every attempt has been made to ensure accurate documentation, Renesas Technology America, Inc., cannot be held responsible for errors or omissions, and reserves the right to make changes without prior notice.
“Flash-Over-USB” is a trademark of Renesas Technology America, Inc. All other trademarks are the properties of their respective owners.
RZB-ZMD16C-ZDK User’s Manual Rev 1.2 6/ 33 August 2006
4.0 System Connectivity
The following lists the hardware and software products required for using the RZB-ZMD16C-ZDK ZigBee Demonstration Kit.
Host Computer (supplied by user)
Three RZB-ZMD16C-ZDK Boards
Three battery packs with AA batteries
RF Sniffer Board
RF Sniffer Interface (RFSI)
Mini USB cable for RFSI
2×5 header target cable for RFSI
RF Sniffer software and USB driver
RF Sniffer
ZigBee Coordinator ZigBee Router ZigBee Router
Figure 4.1: ZigBee Demo Kit Setup
RZB-ZMD16C-ZDK User’s Manual Rev 1.2 7/ 33 August 2006
Optional (only required if you want to update firmware and/or develop code).
In-Circuit Debugger and Programmer (ICD)
Mini USB cable for ICD
2×5 header target cable for ICD
Software Tools (HEW IDE, NC30 Compiler/Linker, FoUSB Programmer)
Figure 4-2
shows an ICD unit connected to a PC via USB and to a ZDK board via 2×5-pin ribbon cable.
Figure 4-2 ZDK Development System Connectivity
4.1. Host Computer Requirements
The minimum requirement to be able to use the software that comes with the RZB-ZMD16C-ZDK is a PC with a USB port and Microsoft Windows 98, ME, 2000, or XP.
4.2. RZB-ZMD16C-ZDK Boards
The three RZB-ZMD16C-ZDK boards are pre-programmed with ZigBee demo firmware to provide a demo and evaluation environment for wireless ZigBee connectivity based on Renesas MCUs. See section “5.0
” for more details. Hardware
4.3. RF Sniffer Board
The RF Sniffer board is based on the same hardware as the ZDK demo boards, but is pre-programmed with a different firmware to function as a ZigBee RF Sniffer. See section “5.0 ” for more details
RZB-ZMD16C-ZDK User’s Manual Rev 1.2 8/ 33 August 2006
Hardware
on the board hardware, and the RF Sniffer User’s Manual for more information on RF Sniffer usage and features.
4.4. RF Sniffer Interface (RFSI)
The RF Sniffer interface is an RTA-FoUSB-MON unit that comes pre-programmed with firmware to allow the RF Sniffer software running on the Host PC to take control of the RF Sniffer board. The RFSI connects to the PC’s USB port via the included mini USB cable, and to the RF Sniffer board via the included 2×5-header ribbon cable. The USB port also provides power to the RF Sniffer board and RFSI, thereby eliminating the need for an external power supply.
4.5. RF Sniffer Software and USB Driver
The installer program offers you the option to install the ZDK demo software tools and the RF Sniffer software. For details on installation, see the QuickStart Guide or instructions in the Appendix A of this manual.
4.6. In-Circuit Debugger and Programmer (ICD)
The ICD provides a plug-and-play debugging and programming interface to the ZDK board via the host computer’s Universal Serial Bus (USB). The USB port also provides power to the ZDK boards and ICD, thereby eliminating the need for an external power supply. Use of the ICD is required only if you need to update the firmware of the kit’s boards, or if you intend to develop and debug your own software. If not powered by the ICD, the kit’s ZDK boards can be powered by the included battery packs.
4.7. Software Development Tools
The installer program offers you the option to install all the development tools. For details on installation, see the QuickStart Guide or instructions in Appendix A of this manual. A brief description of all the included tools follows. Please refer to the individual tool manuals for detailed information.
4.7.1. HEW (High-performance Embedded Workshop)
HEW provides a Graphical User Interface (GUI) that integrates the software development tools and includes the C-compiler, assembler, linker, debugger and editor.
4.7.2. NC30WA Evaluation Version C Compiler
The evaluation version of the M3T-NC30WA C-compiler is provided with the same functionality as the commercial version except that link size will be restricted to 64 Kbytes after 60 days from when you begin using the compiler. Contact your local sales representative if you wish to purchase a full license.
4.7.3. HEW Debug Interface
HEW communicates with a kernel (i.e. a ROM monitor program) on the target MCU through the ICD. This debug interface provides a highly efficient evaluation environment. Features include:
Source-level debugging for assembly and C language
Single-step command (unlimited breakpoints)
Run command with 6 breakpoints* for the M16C/28
RAM monitor function
C variable “watch” window
RZB-ZMD16C-ZDK User’s Manual Rev 1.2 9/ 33 August 2006
*Note: The number of breakpoints will vary depending on the M16C flash MCU used.
4.7.4. FoUSB (Flash-over-USB) Programmer
The Flash Over USB Programmer application provides In-System Programming capability for the starter kit or any target board using an M16C family flash MCU (e.g. R8C, M16C, M32C). Please see the RTA-FoUSB-MON User’s Manual for more details.
RZB-ZMD16C-ZDK User’s Manual Rev 1.2 10/ 33 August 2006
Loading...
+ 23 hidden pages