Skip to main content
AKhot.1
Associate III
September 21, 2023
Question

Send adc buffer data from STM32 to Raspberry Pi via SPI

  • September 21, 2023
  • 1 reply
  • 1031 views

I want to send adc buffer data to Raspberry Pi via SPI. Is there any sample code or any reference? 

Please help me with this.

This topic has been closed for replies.

1 reply

Issamos
Super User
September 21, 2023

Hello @AKhot.1 

I suggest you to start from an ADC exemple (you can find it in the firmware STM32Cubexx ) then configure your spi using CubeMX and modify your code so when the conversation in the ADC is done (end of conversion). The SPI send the data converted via SPI to the slave  board (you can also refer to an exemple of spi configuration in same firmware).

Np: xx you have to replace it by your board family (h7, h5,l0,...).

Best regards.

II