Hello,
I am implementing a BLE application where I am reading an analog sensor using ADC in SCE and writing a stream of data to a SPI FRAM. From the main core I am reading the data from the FRAM and transmit over BLE.
SCE is able to write to FRAM when used through sensor controller studio, but when I am running the task from TI-RTOS context, the SCE is not writing anything to FRAM. I am guessing that once the SPI peripheral is initialized in TI-RTOS the same pins can't be bit-banged by SCE to write to FRAM. Is this correct? If so, how can we share the same pins between SPI peripheral driver in TI-RTOS context and SCE bit-banged SPI driver?
The following is the crude algo of my code
1. RTOS thread initialized
2. SPI_Init()
Loop {
3. Start SCE task
a. read sensor data
b. write to FRAM over SPI
4. SPI_Open()
5. Read data from FRAM
6. SPI_Close()
7. Transmit data over BLE
}
Niraj