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.

SIMPLELINK-MSP432-SDK: Is it possible to communicate with two slaves with different bitRate and SPI frameFormat in the same SPI bus using TI-RTOS SPI Driver?

Part Number: SIMPLELINK-MSP432-SDK

General SPI protocol allows the use of different bitrates and modes for each slave in the same bus, but it seems TI driver forces to close and reopen the bus if one wants to change these parameters.

I'm using MSP432P4111 and SimpleLink MSP432P4 SDK 3.40.01.02 TI Drivers, in Code Composer Studio 10.1.0.00010.

Is there any way to use the SPI TI Driver to have different bus settings for each slave in the same bus? Each slave should be able to have different SPI frameFormat and bitRate but these settigns are only passed to SPI_open() function through SPI_params struct when you get the handle, I see no way to change them before a transfer.

One solution could be to open and close the bus with specific settings in every transfer operation and get a new handle for each transaction, but I would like to check if there is some other way to achieve this.

Many thanks in advance, 

Álvaro

  • Hi,

    I think you can put the TI drivers and driverlib code(which one you want to customized) into your own project. Then you can customized it.

    When compile the project, complier will call the code in the project first.

    Eason