2024-12-09 12:06 AM - last edited on 2024-12-09 01:00 AM by Andrew Neil
This question is about the operation of HAL_SPI_TransmitReceive_DMA.
When HAL_SPI_TransmitReceive_DMA(&hspi1 ...) is being transmitted (assumed SPI communication_A) and HAL_SPI_TransmitReceive_DMA(&hspi1 ...) is called (assumed SPI communication_B) SPI communication_A will be canceled and SPI communication_B will be executed? Or is SPI communication_B executed after SPI communication_A is completed?
Solved! Go to Solution.
2024-12-09 12:58 AM
Hello @pass3master ,
HAL_SPI_TransmitReceive_DMA will wait for the first transmit/receive operation as the second one will be blocked by HAL lock and unlock process and HAL state busy or ready.
Regards
2024-12-09 12:58 AM
Hello @pass3master ,
HAL_SPI_TransmitReceive_DMA will wait for the first transmit/receive operation as the second one will be blocked by HAL lock and unlock process and HAL state busy or ready.
Regards
2024-12-09 01:05 AM
Thank you for your response. I understand how it works, so I will consider it “resolved”.