AnsweredAssumed Answered

STMCube and multiple SPI buses

Question asked by page.gavin on Jul 11, 2017

I am using multiple AD7793 ADCs across 2 SPI buses. I have written the software for this for an STM32F205 using the STMCube construct.

I can communicated with the ADCs on either bus but when I try to talk to both buses SPI3 becomes unresponsive, not providing operation compete callbacks.

I am using the HAL commands:

HAL_SPI_TransmitReceive_IT - for recovering data, sending read commands and reading back chars

HAL_SPI_Transmit_IT - for sending commands

I am using the following callbacks:

HAL_SPI_TxRxCpltCallback - Read complete

HAL_SPI_TxCpltCallback - Command complete

I am using SPI2 and SPI3 and they are both setup the same (via STMCube generated code).

Is there a limitation of using 2 SPI ports at the same time?

Outcomes