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.

EZ430-RF2560 red and blue leds blinking (error condition)

Other Parts Discussed in Thread: CC2560

Hi,

I repost my question in this section of the blog.

I've received the  EZ430-RF2560 kit few days ago and I tried to recompile the original project (accelerator) using IAR MSP430 30 days demo edition (v.5.20). I successfully compiled and downloaded the project (GA 1.0) using the USB stick.


Tue Jun 21 23:31:36 2011: Interface dll version 2.4.8.2
Tue Jun 21 23:31:36 2011: Device : MSP430F5438A
Tue Jun 21 23:31:36 2011: External voltage : 0.0 V
Tue Jun 21 23:31:36 2011: VCC voltage : 3.5 V
Tue Jun 21 23:32:19 2011: Download complete.
Tue Jun 21 23:32:19 2011: Loaded debugee: C:\Texas Instruments\EZ430-RF256x SDK\GA 1.0\MSP430-CC2560_Applications\Source\bluetooth\build\msp430\spp\ez430-accl\iar\release\Debug\Exe\
ez430-accl.d43
Tue Jun 21 23:32:19 2011: Target reset

When I tried to debug the application (Debugger->go) as result I obtaind an "error condition" with the red and blue leds blinking at the same time while the green led is ON.

When I "break" the debugger I can see an averflow stack error in the routine sdk_error_handler() (inside the while(1) neverending loop).

The same result connecting the re-programmed board to the 3V battery pack. I tried to download the recompiled firmware using a different downloader (Elprotronic FETPro430 Lite) without errors but the "error condition" was still present.

Using the same downloader (FETPro430) I read the firmware from the second  bluetooth board (the working one) and I saved it in .hex format. Using FETPro430 I reprogrammed the first board using the .hex file and now it is working.

I think that the problem is in the code generated by Iar compiler . Is it possible to solve the problem? Or alternatively try to compile the project with CCE?

Thank you for your attention,

Pier Andrea.

  • Pier Andrea,

    The LEDs are blinking because you'r downloading code whose service pack doesn't apply to the specific hardware you're using.

    If you open the code workspace in IAR, there is a BT_Stack_Lib group underneath the project. In there there are usually two files:

    libTI_init_script_BT_CC2560.r43

    and

    libTI_init_script_BT_CC256x.r43

     

    Look at your EZ430-RF2560. In the back there is a serial number. If your white serial has 2 lines, you need to include the CC256x version.

    If you have just one line, you need to include the CC2560 version.

    Only one of these files can be included. The other file is excluded (its icon appears as white with an X inside). Right click on one of the files and

    then select Options. A dialog box opens. Select "Exclude from build" if this file should be excluded. For the other file, untick the "Exclude from build" checkbox.

     

    Gustavo

  • Thank you very much Gustavo.

    After your post I solved my problem in five minutes.

     Kindest regards,

    Pier Andrea.