2023-05-14 08:48 AM
I use STM32L476 MCU I configured SPI1 master full duplex with DMA for Rx .
When I use the HAL function:
HAL_SPI_Receive_DMA(&hspi1, &RawSig[0], SigBufLng));
The IRQ is not called
void DMA1_Channel2_IRQHandler(void)
{
/* USER CODE BEGIN DMA1_Channel2_IRQn 0 */
/* USER CODE END DMA1_Channel2_IRQn 0 */
HAL_DMA_IRQHandler(&hdma_spi1_rx);
/* USER CODE BEGIN DMA1_Channel2_IRQn 1 */
/* USER CODE END DMA1_Channel2_IRQn 1 */
}
Please advise
2023-05-14 12:07 PM
Check in CubeMX if both DMA and SPI interrupts are enabled.