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.

CC2564MODA: Need to Implement SPI in SPPLEDEMO Profile

Part Number: CC2564MODA
Other Parts Discussed in Thread: CC2564

Hi,

I am using SPPLEDEMO in my project, I want to send and receive some string using SPI communication or else I want to print some string using SPI communication, can you please tell me how to implement the SPI in SPPLEDEMO.. How to implement the SPI  code in SPPLEDEMO profile. Please anyone help me, how to implement the program. 

Thanks 

  • Hi Jansi,

    Are you trying to incorporate SPI and SPP LE together or will they be independent of each other? Either way the cc2564 does not have a SPI interface as it uses UART to communicate. You will need to use a host MCU that has SPI interfaces (like the MSP432 for example). Once you choose a good host mcu I would recommend reading their user guide or if you use a TI host I would check out the SPI Master and SPI Slave demos.

    Best regards,

    Rogelio

  • Hi RogelioD

    Thanks for the reply.

    Yes I want to implement spi in Sppledemo profile, is it possible to  combine together. Can  you please send me the user guide.

  • Hi,

    I have some queries related to SPPLEDEMO and sample hello world program.

    Is it possible to implement SPPLEDEMO profile in hello world program. If it is possible means could you please tell me how to implement this.

    and next is I want to read some sensor data using SPI communication, From hello world program is it possible to implement the code??

    The above two is my doubt. Can you please help me on this.

    Thanks and I am waiting for your quick response.

  • Hello,

    I see no reason why you wouldnt be able to to sent out something from your spi buffer out through spple. I would look into the sppledemo and see how it uses buffers when you do SendLE or ReadLE. I would also look into how to use spi in your host mcu, for example if you use the MSP432 the spimaster demo is a good place to start ( https://dev.ti.com/tirex/explore/node?node=APaE9KkNh1rTnbq4frdZLg__J4.hfJy__LATEST )

    As to your second query of using SPI in the hello world program, isnt really a question related to the cc2564, but as long as the mcu you are using has SPI capability you should be able to implement it. However, if using a TI mcu I definitely recommend starting with the spimaster demo.

    Regards,

    Rogelio