Other Parts Discussed in Thread: CC2530EM, CC2530
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.
Other Parts Discussed in Thread: CC2530EM, CC2530
I also recompiled the project and loaded it, with the same result - D1 is lit green, nothing else happens on any button press.
The example software for CC2530 was written to work with SmartRF05EB revision 1.7 (which is included in the kits). You are using SmartRF05EB rev 1.3. One of the modifications from rev 1.3 to rev 1.7 of SmartRF05EB was that the polarity of button S1 was changed. In addition, the IO signal from the CC2530 that was used to reset the LCD on rev 1.3 is now routed to one of the LEDs on rev 1.7. The SmartRF05EB User's Guide (www.ti.com/lit/pdf/swru210) has all the details.
So - how do you fix it in your software? This is fairly straight forward. Find hal_board.h in the zip file (swrc135) and make sure SRF05EB_VERSION_1_3 is defined. Additionally, go to hal_board.c and remove initialization of LED 2, 3, and 4. Recompile and download the new application to the CC2530EM.
I have attached the Intel HEX file (per_test.hex in the ZIP file) that you can program on the CC2530EM (using SmartRF Flash Programmer) and use with SmartRF05EB rev 1.3.
Hope this helps!
Hello
Whether we can download this to our own Hardware dongle based on CC2530 to test the PER? Whether there is source code for this?
Thanks
Rui
You would probably need to tailor the code slightly to your own board. You can get the source code from the CC2530DK product page or use this link directly: www.ti.com/lit/zip/swrc135.
Thanks, which part I should modify? I assume it should be HAL layer part. But the HAL structure is different from Z stack. should I insert my own target HAL folder?
Rui
When I build this project, I can not find the link file "lnk51ew_cc2530b.xcl", could I replace this one with "lnk51ew_cc2530F128.xcl" or some other xcl file?
thanks
Rui
Yes, use the linker files that you find in <IAR install dir>\8051\devices\Texas Instruments.
The CC2530 software examples were built using an older version of IAR, so I guesss the version you have of IAR will try to update the project files automatically. Then note that you should do the following:
In the project options, general options, target, device, select CC2530F256 (or whichever variant you have). Don't use the plain CC2530 device. Code model can be banked or near, data model should be large and use the XDATA stack. In the Stack/Heap tab, reduce the XDATA stack size to e.g. 0xFF (or smaller).
For the linker configuration, use the default linker file (i.e. remove the tick in the check box where you can override linker file selection). Do the same for the debugger configuration: Use default device description file.
That should be all.
I'm using SmartRf05 (rev1.8.1) , how can i program cc2530 EM with PER_test ??
Thanks in advance
You need SmartRF Flash Programmer. Download the program from www.ti.com/tool/flash-programmer.
The rest should be quite easy. Locate the hex file in the previously posted attachment and use the programmer tool to program the CC2530EM when it is connected to the SmartRF05EB. The required hardware (debugger) required for programming is sitting on the 05EB, so you don't need any other equipment.