STM32F4 SPI Circular transfer

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

STM32F4 SPI Circular transfer

Postby CsZoli » Wed Aug 02, 2023 8:05 pm

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: 14458
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32F4 SPI Circular transfer

Postby Giovanni » Thu Aug 03, 2023 6:26 am

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


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: Google [Bot] and 3 guests