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.

Can ZStack-CC2530-2.5.1a support SPI znp-interface

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

Hi,

I have ZStack-CC2530-2.5.1a and I want to build a ZNP image to run with MSP430 controlling the ZNP.  In IAR is there a compile flag to enable ZNP Interface.  I tried building a Coordinator and tried loading image on CC2530EM and placed it on the MSP430F5529 White development board and did not work.

Thanks,

Ed

  • You can refer to Chapter 2 CC2530-ZNP physical Interface in CC2530ZNP Interface Specification.pdf. There are details about ZNP SPI interface.

  • Hi YiKai,

    Yes I am familiar with this document and I am using the SPI interface with a stock ZNP image that came with the CC2530ZNP-MK Sensor Network Application.  But I don't see how they built the test image.  So I want to use the ZStack-CC2530-2.5.1a release to rebuild the ZNP image that supports the ZNP (SPI) Interface when have an external MSP430 controlling the ZNP.  I tried to rebuild the End Device with flag set to HAL_SPI but I get errors.  Any help is appreciated for I am not making progress on this front.

    Ed

  • I would suggest you to try ZNP project in Z-Stack home 1.2.0

  • The ZNP firmware supports both UARt and SPI. Selection of which serial interface is used is dynamically done at boot sampling the value of a corresponding pin.

    Please check section 2.1.2 in the CC2530ZNP Interface specification document where more information about this is provided.

    Thanks,

    TheDarkSide

  • Hi,

    Does the ZNP firmware support the SPI in the ZStack-CC2530-2.5.1a?  My IAR version does not allow reading the Z-Stack Home 1.1.0 (I hate that!))

    Thanks

    Ed

  • Yes, it does support that.

    Please also note that all current and previous eval versions of IAR for TI wireless MCUs can be found here

    http://www.iar.com/Products/Wireless-solutions/Tools-for-TI-wireless

    Of course if you have IAR license for 8051 you can pull any desired version from your account product page.

    Thanks,

    TheDarkSide

    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    For more information on TI ZigBee, please visit  http://processors.wiki.ti.com/index.php/Category:Zigbee

  • Hi,

    When I load Zstack-CC2530-2.5.1a end device image on the MSP430 EXP board with CC2530EM the reset callback does not return.  However when I use the CC2530ZNP-MK Sensor Network Application CC2530ZNP-MK-Pro.hex image it works just fine.  

    I read the CC2530ZNP Interface Specification and made sure P7.5 was tied to 1.2 K ohm pull-up resistor (3.3V).  

    What is the magic to build a ZNP image that support SPI interface for the MSP430F5529 to communication to the CC2530 device?  

    Looking at hal_board_cfg.h.  In the GenericApp I don't see any reference to XNV_SPI_TX(x).  Does GenericApp support SPI interface between CC2530 and MSP430?  

    I also checked SimpleApp and SampleApp and no files use XNV_SPI_TX(x).  Also I do not see HAL_SPI defined in the GenericApp source code.  

    As I mentioned in earlier thread when I enabled HAL_SPI I got compiler errors.  Complains it can't find hal_spi.h.  hal_spi.h does not exist in the project.

    Thanks,

    Ed

  • Hi Ed,

    Are you working on ZNP or a SampleApp?

    SPI transport for MT interface is available only with ZNP. Non-ZNP applications support only UART. This should have been documented, so I apologize for that.

    With ZNP, both UART and SPI are supported and one of them is chosen at startup time depending on CFG1 pin status. You don't have to recompile the project.

    Regarding XNV_SPI, it is for accessing external serial flash memory used for OTA upgrade.

    - Cetri

  • Hi Cetri,

    Thanks for clearing up my confusion.  I did not know the ZNP directory was the ZNP Interface over SPI support.  I thought all of them supported ZNP Interface over SPI with using the CFG1.

    I was able to build ZNP image and the MSP430 can now communicate to the CC2530 device.

    Awesome!

    Regards,

    Ed