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.

RTOS/CC2640: CC2640f128

Part Number: CC2640

Tool/software: TI-RTOS

Hi,

I am working with CC2640 device, with SPI protocol. I am trying to read data from LIS2DS12 accelerometer connected to CC2640F128 through SPI, but I am unable to read Data, every time i am getting 00.

I am using bsp_spi.c function for spi programming. Can anyone suggest the solution for this. I am using CCSv 7.1 and ti_tros_simplelink_2_13_00_06 sdk and BLE_stack 2.1. 

  • Hi Abhijeet,

    Check out the SPI Driver documentation found at: C:/ti/tirtos_cc13xx_cc26xx_2_13_00_06/products/tidrivers_cc13xx_cc26xx_2_13_00_06/docs/doxygen/html/_s_p_i_c_c26_x_x_d_m_a_8h.html

    There is a code example included that details how to open a SPI instance as a master SPI, and issues a transaction. Use this example to properly communicate to the accelerometer.

    -Sy Su
  • Hi Sy su,

    I did the same procedure, but it is sometimes is getting stuck in SPI_transfer function and sometimes it is giving 0x00. Please help me to solve this issue.