STM32H750 HAL_SPI driver function HAL_SPI_TransmitReceive(......) is called in my EXTI9_5_IRQHandler() interrupt function , It runs dead loop, and can't return.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-06-04 12:04 AM
If the H7 HAL_SPI driver function HAL_SPI_TransmitReceive(......) is called in my main()
,It runs correctly, I can transmit and receive data correctly. But it is called in my EXTI9_5_IRQHandler() interrupt , It runs dead loop, and can't return.
Labels:
- Labels:
-
SPI
-
STM32Cube MCU Packages
-
STM32H7 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
2021-06-04 8:14 AM
Calling blocking functions in interrupts is not ideal, but you can do it as long as the systick handler priority is higher (numerically lower) than the interrupt you're currently in.
If you feel a post has answered your question, please click "Accept as Solution".
