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.

Concurrent access of TI-RTOS drivers (SPI & SDSPI) on SSI0 Port of Tiva TM4C1294NCPDT

MCU: TM4C1294NCPDT

TI-RTOS: v2.01.00.03

CCS: v6.0.1.0040

SPI slave: W25X80AV (serial Flash memory)

SDSPI slave: SD Card (8 GB)

Hello,

    I am going to connect an SD card & a serial Flash memory to a SPI (SSI) port of Tiva MCU. Both these memory devices will be connected using common SPI bus (SCLK, MOSI & MISO); only CS (chip select) pin is different. For CS, MCU's GPIO pins will be used. For, the serial flash, I intend to use SPI driver from TI-RTOS & for SD card I will do so using the SDSPI driver of TI-RTOS.

    Is concurrent access possible on the same SPI port (SSI0 in my case). By concurrent access, I mean, at a time I will access only the serial flash or the SD card, but do I need to call SDSPI_close before I can access the serial flash by calling SPI_open? OR Can I keep both the drivers open by calling SDSPI_open & SPI_open one after the another & access both the memory card & flash memory (but not both at the same time)?

Thanks

Regards

Soumyajit Das

  • Soumyajit,

    I asked about this, and you will *not* be able to simultaneously use those two drivers on the same port.  You can open and use one of the drivers, but must close it before opening the port with the different driver for the different purpose.

    There has been some initial design work to allow sharing the SPI port like you’re asking about, but there isn’t a solid schedule for this enhancement yet.

    Regards,
    Scott