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/CC2640R2F: CC2640: Sharing SPI between Sensor Controller and system CPU

Part Number: CC2640R2F

Tool/software: TI-RTOS

We have an external Flash and a NFC frontend IC. I want to use Sensor Controller SPI to communication with the NFC IC every 330ms , and use the system CPU SPI to communication with the external Flash .

If there is a way to reuse the SPI used by the Sensor Controller for use by the system CPU.

  • Hi Andy,

    Yes, but it requires manual management by the application. The Sensor Controller task can safely access the SPI pins, as long as the main application is not accessing it, and vice versa. Since the SC task is dependent on the main application to know when it is safe to access the SPI pins, the management logic has to be implemented in the main application.

    From a software point of view, this means that the main application can open an SPI handle and use it when it know the SC task is not accessing it, and has to close the handle when the SC task is to access them. However, before the main application is to reschedule the SC task, the IO pins must be re-initialized for the Sensor Controller. This is done with the scifReinitIo() API.

    There exists an example of shared IO pins in Sensor Controller Studio, found under launchpad/Shared IO Pins.