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.

CC2640R2F: CC2640 as SPI slave. NPI / TL protocol

Part Number: CC2640R2F

I need the working code of CC2640R2F as SPI Slave  for NPI   on TI CC2640R2F  Launchpad Board.

Also Does the SPI slave support  SPI_POL0_PHA0 Frame format or not.

  • Hello lalit,

    The code can be found in the SDK. (C:\ti\simplelink_cc2640r2_sdk_2_20_00_49\source\ti\blestack\npi\src)

    The SPI Peripheral in the device does support SPI_POL0_PHA0, however the code by default is configured to SPI_POL1_PHA1

    you can check this in line 151 of npi_tl_spi.c and change it in your project.

    Regards,
    AB
  • As I am using the MRDY and SRDY signal, Does the CSN should be    UNASSIGNED or it is required to define. 

    on Board MRDY and CSN are shorted 

    /* SPI Board */
    #define CC2640R2DK_5XD_SPI0_MOSI                IOID_0 /* Pin 4 */
    #define CC2640R2DK_5XD_SPI0_MISO                IOID_1 /* Pin 5*/
    #define CC2640R2DK_5XD_SPI0_CLK                  IOID_2 /* Pin 6 */
    #define CC2640R2DK_5XD_SPI0_CSN                 PIN_UNASSIGNED  // IOID_7 /* Pin 14 */ 

  • Hi ,
    Only working in SPI_POL1_PHA1 and SPI_POL0_PHA1 other two modes are not working.
    My requirement is SPI_POL0_PHA0.

    Thanks,
    Lalit
  • Hello Lalit,

    I believe the driver does not support this mode in the current release..

    Sorry for the inconvenience,
    AB