cancel
Showing results for 
Search instead for 
Did you mean: 

program hangs after using SPI_TransmitReceive_DMA

Dvan .8
Associate II

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;

1 ACCEPTED SOLUTION

Accepted Solutions
Dvan .8
Associate II

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

View solution in original post

1 REPLY 1
Dvan .8
Associate II

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