ZigBee's IAR Environment building

Source: Internet
Author: User

Keygen first to choose:

Why?

Before said CC2530 is to support ZigBee protocol wireless chip, in fact, it is this hardware has a support ZigBee protocol Radio Road, not only the circuit, but also a CPU circuit, it is 8051cpu. Then all these circuits are packaged together, called cc2530 chips.

Then select GetID, copy the license number below, and copy the key from the back to the corresponding place.

Create a project:

Project->create New Project->tool Chain Select 8051-> Select Empty Project->ok, select Save location, Add a. c file below, create a new file, save the command as LESSON1.C, then select Project, right-click, select Add

->add files. So the project has, C file has, the following compile, and will pop up a dialog box, it is to save the work space! There are several projects in a working space, and the work space depends on the project.

Now that the workspace, engineering,. c files are available, what are the files under this space?

The bottom three are project-related documents;. eww files are workspace-related files.

Hardware mainly includes: Three ZigBee module, a USB dungle, an emulator;

Edit. C File: Be sure to add the header file # include "Iocc2530.h"

Light LED1, the following schematic diagram, the negative of LED1 received p1_0.

You need to do some configuration:

Right-click on the project->options->device check the device to find Texas Instruments Enter, find cc2530f256.i51, other do not modify; then just tap linker, click Output-> Select Override default, and select Allow c-spy-specific extra output file.

Choose Debugger-> Driver The following simulator software emulation to Texas Instruments hardware emulation, that is, the program downloaded to the actual hardware above. Then, save and compile, and finally download to the hardware to run. Download requires an emulator, the emulator needs to install a driver, the emulator first connected to the computer via USB, when plugged in, there may be a dialog box, directly press the x off, you can enter the Device Manager to see the yellow Smartrf04eb, the driver is not installed, Then right-select Update Driver, select Install from list or specified location, select drive Path, if popup box, select OK, then select location as drive path. The final installation was successful. The emulator is then connected to the Development Board, and when the green light on the emulator indicates that the emulator does not recognize the cc2530, only the emulator is reset, then the green lights out, the description is recognized, you can download the program to the board.

Header file Cc2530.h There are some mappings for all the hardware,

Output. hex file, configuring

Write the generated. hex file directly to the target board, you need to install the software setup_smartrfprogr_1.9.0, directly double-click on the installation. Finally, click on the installed setup_smartrfprogr_1.9.0, the screen appears

ZigBee's IAR Environment building

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.