STM32L476 MCU / SPI1 master full duplex with DMA for Rx .
Callback is not being fire
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-05-14 8: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
Labels:
- Labels:
-
DMA
-
SPI
-
STM32CubeMX
-
STM32L4 series
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-05-14 12:07 PM
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
