Skip to main content
SHayu.2
Visitor II
May 14, 2023
Question

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

  • May 14, 2023
  • 1 reply
  • 874 views

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

This topic has been closed for replies.

1 reply

gbm
Principal
May 14, 2023

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