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-RF2500 and SimpliciTI with CCS

Other Parts Discussed in Thread: SIMPLICITI, CC2500, MSP430F2274

I can't find any documentation on how to use the SimpliciTI functions in code composer, by starting a project from scratch.

 

Can you either explain how to do this, or point me to some documentation/tutorial that can?

 

What I've tried so far:

 

Downloaded SimpliciTI and it's in: C:\Texas Instruments

Added a linked folder to: C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components

Under project properties, under pre-defined symbols added: MRFI_CC2500

Under project properties, under include options I added the paths:

"C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\simpliciti\nwk"

"C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\simpliciti\nwk_applications"

"C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\mrfi"

"C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\bsp"

"C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\bsp\boards\EZ430RF"

"C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\bsp\drivers"

Coded In main.c: 

#include "bsp.h"

#inc lude "mrfi.h"

#include "nwk_types.h"

#include "nwk_api.h"

#include "bsp_leds.h"

#include "bsp_buttons.h"

 

My Results:

It doesn't compile and gives 130 errors.  

 

Obviously I'm missing some key points.  On how to integrate SimpliciTI into a program for the EZ430 using CCS

 

(I am using CCS Version: 4.2.3.00004 )

 

PS:  I've been referred here by the CCS forum: http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/114278.aspx

  • So I figured some things out and I can now compile my code.  But I can't get the code to work as I want it to.  First I'll state for others what I did to get it to compile.  Then I'll ask my question.

     

    First what I did to get it to compile:

    First copied the Configuration folder from: C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Projects\Examples\eZ430RF\Simple_Peer_to_Peer\CCS and pasted it into my project folder (Wireless_Transmitter_Control) which is in my workspace folder.

    In CCS:

    Added a folder to the project titled Components, with sub-folders bsp and mrfi

    With in each sub-folder I linked to files that were installed with simpliciTI.  I installed to the default place so these linked files were:

    for the sub-folder bsp:

    C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\bsp\bsp.c

    C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\bsp\bsp.h

    C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\bsp\bsp_macros.h

    and for the subfolder mrfi:

    C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\mrfi\mrfi.c

    C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\mrfi\mrfi.h

    C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\mrfi\mrfi_defs.h

     

    Then in under Project -> properties -> C/C++ Build -> MSP430Compiler -> Predefined Symbols -> Predefine Name

    I added the MRFI_CC2500 (in addition to the already present _MSP430F2274_

    Then under  Project -> properties -> C/C++ Build -> MSP430Compiler -> Include Options

    I added the following paths:

    C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\mrfi

    C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\bsp

    C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\bsp\boards\EZ430RF

    C:\Texas Instruments\SimpliciTI-CCS-1.1.1\Components\bsp\drivers

    Then under Project -> properties -> C/C++ Build -> MSP430Compiler -> Command files

    I added the command files I copied into my project form the peer to peer example, so for me the paths were:

    "${workspace_loc:/Wireless_Transmitter_Control/Configuration/smpl_nwk_config.dat}"

    "${workspace_loc:/Wireless_Transmitter_Control/Configuration/End_Device/smpl_config.dat}"

     

    Once I did all that I could get my code to compile.  It's very simple code, that I copied from a tutorial from a class taught at UC Berkeley (http://wsn.eecs.berkeley.edu/290Q/)

    Following the tutorial, I can get the code to compile and run correctly in IAR, so I know it's not the algorithm.

    The code is:

    #include "mrfi.h"

    #include "radios/family1/mrfi_spi.h"

    int main(void)

    {

      BSP_Init();

      P1DIR &= ~0x04;

      P1REN |=  0x04;

      P1OUT |=  0x04;

      P1IE  |=  0x04;

      MRFI_Init();

      MRFI_WakeUp();

      MRFI_RxOn();

      mrfiSpiWriteReg(CHANNR,0x10);

      __bis_SR_register(GIE+LPM4_bits);

    }

    void MRFI_RxCompleteISR()

    {

      P1OUT ^= 0x02;

    }

    #pragma vector=PORT1_VECTOR

    __interrupt void Port_1 (void)

    {

      P1IFG &= ~0x04;

      mrfiPacket_t packet;

      packet.frame[0]=8+20;

      MRFI_Transmit(&packet, MRFI_TX_TYPE_FORCED);

      P1OUT ^= 0x01;

    }

     

    The interupt for pushing the button works, and the LED toggels.  However nothing to do with the radio works.  I can verify that because I keep one of the EZ430-RF2500 boards programed by the IAR and the one programmed by CCS neither sends packets nor receives them.

    The only thing I can think of is that I'm not initializing something, or something is wrong in the command files, which I don't understand at all.

  • Hi, 

    Did you finally got your configuration or initialization working? I have the same issue and I don't know what to do.

    Thanks

**Attention** This is a public forum