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.

SPI between C2000 and CC2520

Other Parts Discussed in Thread: CC2520, TIMAC, CONTROLSUITE, Z-STACK, CC2538

Hi,  I am trying to use a C2000 Launchpad with the EM Adapter BoosterPack and the CC2520 evaluation board to wirelessly connect to another CC2520 that is connected to a Raspberry Pi.  I have read through a lot of the CC2520 reference and seen how one can send instructions over SPI.  I have not found found which Launchpad header pins line up with which pins on the evaluation board.  Will I have to trace every single one through 2 different schematics?  In addition, I see that there is a TIMAC tool that is compatible with CC2520 (http://www.ti.com/tool/timac), and have installed it but do not know how to use the tools or don't yet see how they are relevant.  Can anyone provide any guidance on getting this connection between the C2000 and CC2520?

I have access to a SmartRF05 development board, but that seems to use IAR Workbench rather than Code Composer.  Is it even necessary to use this if I can just send instructions to the CC2520 from the C2000 which is flashed through Code Composer?


Side question: I noticed that the SPI demos for LaunchPad in ControlSuite don't call their error functions even without an evaluation board connected, so is that simply running internal tests then?

  • Hi Edward,

    Edward Lynch said:
    I have access to a SmartRF05 development board, but that seems to use IAR Workbench rather than Code Composer.  Is it even necessary to use this if I can just send instructions to the CC2520 from the C2000 which is flashed through Code Composer?

    Yup, you're pretty much correct. Hence both these device codes have to be built individually in their respective compilers and then interfaced together.

    Check this link: http://e2e.ti.com/support/wireless_connectivity/f/158/t/273439.aspx

    Edward Lynch said:
    Side question: I noticed that the SPI demos for LaunchPad in ControlSuite don't call their error functions even without an evaluation board connected, so is that simply running internal tests then?

    Yes, the error functions are not called in SPI routines for C2000 examples but you create a customized one!

    Regards,

    Gautam

    Regards,

    Gautam

  • Hi Gautam,

    Ok, so I'll need to have code on each device then.  I've seen the software examples for the SmartRF board and will dig more into those.  I wonder what default code is on the CC2520 at time of purchase?  Thanks for the link.  I actually came across that before posting here but what I got out of it is that it is potentially not a good path to go down.  I am interested in simplicity but would like to work with what I already have.  When it says the ZStack has not been implemented on C2000 does it mean I would be coding out each command myself so that it would be difficult, but not impossible?  Would I have to have timers and precisely implement the timing diagram myself and have you every heard of anyone doing this before?

    Thanks,

    Edward

  • Edward Lynch said:
     I actually came across that before posting here but what I got out of it is that it is potentially not a good path to go down.

    Very-very true. Simply, due to lack of support and work on the these interfaces.

    Edward Lynch said:
    When it says the ZStack has not been implemented on C2000 does it mean I would be coding out each command myself so that it would be difficult, but not impossible?

    Yup, pretty much. Not impossible for sure.

    Edward Lynch said:
    Would I have to have timers and precisely implement the timing diagram myself and have you every heard of anyone doing this before?

    Sorry Ed, there were members inquiring for such an interface but there's no work done that can be demonstrated. You don't have to implement timers and timing diagram as such but just have to transfer data from C2000 to the module using serial communication.

    Regards,

    Gautam

  • Gotcha.  So I do have access to an MSP430 though - does that have ZStack available for it?  If so, then I could port the functions I have from the C2000 to the MSP430, which would be much simpler because it is just PWM to turn a motor and listening for button presses.  Then I would be able to add the Zigbee chip SPI to a more supported hardware.

  • Edward Lynch said:
    If so, then I could port the functions I have from the C2000 to the MSP430, which would be much simpler because it is just PWM to turn a motor and listening for button presses.  Then I would be able to add the Zigbee chip SPI to a more supported hardware.

    This would make more sense! Yes, here is what z-stack page says:

    1. Support for and an extensive family of MSP430 microcontrollers coupled with the CC2520 transceiver

    http://www.ti.com/tool/z-stack

    Regards,

    Gautam

  • Actually our SmartRF board is only compatible with CC2538 and not CC2520, so I will plan on using MSP430 and CC2538.  I'll let you know if I hit any snags, but as always, any direction is much appreciated.  Thanks for your help!

  • Edward Lynch said:
    Actually our SmartRF board is only compatible with CC2538 and not CC2520, so I will plan on using MSP430 and CC2538.  I'll let you know if I hit any snags, but as always, any direction is much appreciated.  Thanks for your help!

    Sure, no problem. If you've any issues do check the wireless and msp430 forums too.

    Regards,

    Gautam