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.

LAUNCHXL-CC2650: Unresolved SPI api for sensor controller

Part Number: LAUNCHXL-CC2650
Other Parts Discussed in Thread: CC2650

Hello,

I am working on bit-banged SPI interface of CC2650 Sensor Controller.

I have succesfully created Sensor Controller Studio (SCS) project for SPI using SCS sample project and imported this project to CCS.

It gives compilation error on using below SCS spi functions.

spiBegin(SPI_POL0_PHA0, SCIF_SPI_DIO_SPI_CSN_DEV_CSN);
spiTx8bit(SPI_POL0_PHA0, 0x42);
spiEnd(SPI_POL0_PHA0, SCIF_SPI_DIO_SPI_CSN_DEV_CSN);

Error:

unresolved symbol spiBegin, first referenced in ./main_tirtos.obj led_blinker_launchpad_tirtos C/C++ Problem
unresolved symbol spiEnd, first referenced in ./main_tirtos.obj led_blinker_launchpad_tirtos C/C++ Problem
unresolved symbol spiTx8bit, first referenced in ./main_tirtos.obj led_blinker_launchpad_tirtos C/C++ Problem

Please help.

  • Hi Kushal,

    EDIT:

    Also note, those are SCS functions, they are designed to only work in SCS!

    Look at the Sensor Controller Studio in SimpleLink Academy to ramp up on how to use SCS with a project: http://software-dl.ti.com/lprf/simplelink_academy/overview.html

    Regards,
    Rebel

  • Thanks for reply.
    I read all Sensor Controller related docs in software-dl.ti.com/.../
    But no mention of SPI driver. Then I refer Sensor Controller I2C code and it work fine when imported to CCS environment.

    I am still not sure how to integrate SPI drivers.
  • I think you misunderstood me -

    What I meant is look at the docs in software-dl.ti.com/.../overview.html to gain an understanding of SCS is integrated into a project. For example, how to share data between the sensor controller and the main processor of the CC2650.

    This is important, because in order to use the bit banged SPI, you'll need to share information between the sensor controller and the main processor. Those commands you referenced earlier are JUST for Sensor Controller Studio, they aren't meant to be used in your c code.

    Regards,
    Rebel
  • Hey Thanks.
    I was adding SCS function directly to BLE application.

    Correct method is to add SCS SPI functions in "Execution Code" part of SCS project and then generate code. The generate code needs to be carefully imported to BLE application.