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.

CC2650: SPI slave driver

Part Number: CC2650
Other Parts Discussed in Thread: CC2630

Hi,

 

In host_test sample code, zero padding is inserted before actual data when data is sent to master SPI.

 

But I can’t find any instruction in “SPI.h and SPICC26xxDMA.h”.

 

Is this due to the SPI driver bug  ? if yes,  is there any way to transmit the data without zero padding ?

 

uint16 NPITLSPI_writeTransport(uint16 len)

{

/ Add header (including a zero padding byte required by the SPI driver)

    TransportTxBuf[SPI_TX_ZERO_PAD_INDEX] = 0x00;

  • Hi Albert,

    I'm don't know if the SPI driver currently requires this, I'll forward this question to one of our driver experts for more information,

    Regards,
    Rebel
  • Hi Rebel,

    any updagte on this?

  • Hello Albert,

    Unfortunately, no update at this time but we do have an inquiry. Can you advise the nature of your inquiry? Is this just a question or do you observe non-conforming behaviour? Regardless of the answer we receive, the implementation is part of our supported offering so making changes to the NPI implementation is not recommended.

    Best wishes
  • Update: I did receive feedback that the change as implemented as a defensive measure to the published ARM SPI erratum. As noted above, it is part of our supported NPI offering and thus is not recommended to be modified by the developer.

    Best wishes
  • Hi,
    Acutally , a customer wants to add a spi slave driver into CC2630. CC2630 need to communicate with external MCU by SPI. So they reference the spi slave code wrriten in BLE host_test sample code. A communication protocol they are using is TI-MAC. so it is nothing to do with NPI.

    Question > Does a custoemer need to add a zero padding when they use a SPI slave driver regardless of NPI?