Skip to main content
ConductedForce
Associate II
February 8, 2019
Solved

Interrupts with SPI on STM32F4 (for non-blocking)

  • February 8, 2019
  • 2 replies
  • 1131 views

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?

This topic has been closed for replies.
Best answer by S.Ma

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).

2 replies

S.Ma
S.MaBest answer
Principal
February 8, 2019

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).

ConductedForce
Associate II
February 9, 2019

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.