STM32F4 SPI Circular transfer

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
Post Reply
CsZoli
Posts: 3
Joined: Thu Nov 10, 2022 11:42 am
Has thanked: 1 time
Been thanked: 2 times

STM32F4 SPI Circular transfer

Post by CsZoli »

Dear All,

I'm stuck with the following task:
Would like to send 3 fixed byte value to the SPI bus but ~1000 times sequence (without for loop or large buffer if possible).
Is it possible somehow with circular DMA or any other clever / efficient way?
Please advise.

Many thanks
Zoltan
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F4 SPI Circular transfer

Post by Giovanni »

Hi,

The SPI driver has a circular mode, see the configuration structure, however it is not possible to send an accurate amount of data, it goes until explicitly stopped.

Giovanni
Post Reply