cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L476 MCU / SPI1 master full duplex with DMA for Rx . Callback is not being fire

SHayu.2
Associate

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

1 REPLY 1
gbm
Lead III

Check in CubeMX if both DMA and SPI interrupts are enabled.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice