cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupts with SPI on STM32F4 (for non-blocking)

ConductedForce
Associate II

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?

1 ACCEPTED SOLUTION

Accepted Solutions
S.Ma
Principal

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

View solution in original post

2 REPLIES 2
S.Ma
Principal

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

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.