Skip to main content
Dvan .8
Associate II
May 29, 2023
Solved

program hangs after using SPI_TransmitReceive_DMA

  • May 29, 2023
  • 1 reply
  • 784 views

My program hangs after the return statement.

 pDataDMA = pData->data();
 HAL_StatusTypeDef val = HAL_SPI_TransmitReceive_DMA(&spih, pDataDMA, pDataDMA, pData->size());
 if (val != HAL_OK) {
 Error_Handler();
 }
 return;

This topic has been closed for replies.
Best answer by Dvan .8

Found the problem. Had a while(1) in the callback

1 reply

Dvan .8
Dvan .8AuthorBest answer
Associate II
May 29, 2023

Found the problem. Had a while(1) in the callback