This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

using a cc2530 rf module

Other Parts Discussed in Thread: CC2530, Z-STACK, CC2530EM

Hi first of all,

I'm very new at this cc2530 and try to learn something to accomplish my project. 

I have only cc2530 rf modules and cc debuger and not any other thing  like a development kit.

I want to build a home security system with zigbee protocol, that s why I use cc2530. I have 5 RF modules and sensors like gas, acceleration and motion sensor.

At the beginnig I have lots of problem;

* I understand that I should use Z-stack, IAR workbench and SmartRF flash programmer. Am I right? I also have the programs SmartRF studio and Packet Sniffer on my computer.

* I made the connection between the RF module and the debugger due to flash programmer user guide but I cant get something when I open Z-stack. It says no device found.  I'm also not sure at which step and how I should use Z-stack, please give me tips.

* To my understanding I should use IAR workbench to programe cc2530. But because I m a rookie, I want to load some programs like led blinking and see my cc2530 rf module works. Where can I find some example codes? 

* Is the Flash programmer the right program to load my codes in RF module?

I read lots of documents and I m confused.

Please give me tips to start my project properly.

Any help will be apreciated.

Thanks!

 

  • Hi emin,

      I understand that I should use Z-stack, IAR workbench and SmartRF flash programmer. Am I right? I also have the programs SmartRF studio and Packet Sniffer on my computer

      Yes, you should use zstack. Download Zstack, you will find example Application and it's documents. Start with the Generic App. That you can compile with IAR EWB. Packet sniffer is log,where will see a transmissions of Zigbee device. 

     I made the connection between the RF module and the debugger due to flash programmer user guide but I cant get something when I open Z-stack. It says no device found.  I'm also not sure at which step and how I should use Z-stack, please give me tips.

     Do u integrate cc2530 in your own customized board? If so, Connect your board to cc debugger, Power On your board and press reset in the cc debugger. If green LED glows in the cc debugger, Your hardware is found and you will find ccdebugger in smartRF flash programmer. You can flash your program either in flash programmer or you can do it in iar EWB itself. 

             

  • Thank you for reply Sharma. I have rf moduls as the same as CC2530EM. 

    I downloaded Z-stack Home 1.2.0 . At the adress C /texas instruments/z-stackhome/projects/z-stack/ home automation I have samples like doorlock, switch, ligth. But I can't find generic app. 

    I read some documents and understand that I should open .eww file with IAR and acces the code, settings and everything. 

    To make a start, what should be the next step. For example, I want to blink a led with my cc2530 module, and further do it with two cc2530 modules, what should I do. I think going through the sample codes is recomended. 

  • 1. There is no Generic app in Z-Stack Home example. Z-Stack Home only provide HA profile examples but Generic APP is not.

    2. You can start from reading Z-Stack Home Sample Application User's Guide.pdf in the documents folder. If you want to blink LED, you can use API HalLedBlink in hal_led.c. It is pretty easy. All of driver APIs are detailed in HAL Driver API.pdf.

  • Thank you for your answer Chen. 

    I just downloaded Z-satck HA because just Z-stack is not available at TI site.

    I' m going to read the documents you said. 

    One more question, you said you can use hal_led.c, this is a C code I suppose, and I should convert it to .hex then burn it to cc2530 with cc debugger, am I right? I' m asking this because when I open a project with .eww there are lots of things but no C codes, I can find C codes only in ZNP,ZAP and Zmain folders.

  • If you download FW with IAR, it does not have to be hex format. Open the example project (SampleLight for example), build, and you can download binary directly to cc2530 via CC debugger.