cancel
Showing results for 
Search instead for 
Did you mean: 

[STM32F427] SPI with both DMA and classic use

IDe S.1
Associate

Hello Everyone,

I would like to ask you if you have any more information about an issue I'm incurring in.

I am trying to setup a project on a custom board with the forementioned MCU, on which I need to use the first 4 SPI interfaces with DMA for quick communication.

For the initialization of some components, however, I need to use the SPI in a "normal" fashion, because I need to check for the correct transmission of the data. Since it is an initialization, the DMA would not do much good in this case.

Is it possible, then, to use SPI in both ways, or am I forced to use it in a single manner throughout the whole project?

Thanks in advance to anyone who will clarify this for me!

1 REPLY 1

There's no problem with changing the way how you use SPI or any other peripheral, any time you need during runtime.

However, this is not the "usual" thing to do, so it may not be possible to click this simply in CubeMX.

JW