Interrupts with SPI on STM32F4 (for non-blocking)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-07 4:15 PM
I'm trying to use interrupts for SPI, but am a little lost. I see the Transmit_IT function in the HAL library, but I'm not certain how to use it in a non-blocking state. Is there an example on how to use it?
Solved! Go to Solution.
- Labels:
-
SPI
-
STM32F4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-07 9:51 PM
I guess that by looking at the Nucleo Cube example, SPI folder, you'll find something to help grasping SPI.
As SPI is one of the highest frequency CMOS based signals serial bus, it would be the one to claim DMA resources (with interrupts).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-07 9:51 PM
I guess that by looking at the Nucleo Cube example, SPI folder, you'll find something to help grasping SPI.
As SPI is one of the highest frequency CMOS based signals serial bus, it would be the one to claim DMA resources (with interrupts).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-08 9:27 PM
We opted to follow some of the structure of the pre-written HAL_SPI_TRANSMIT function, as we aren't sending a lot of data to SPI.
