cancel
Showing results for 
Search instead for 
Did you mean: 

Send adc buffer data from STM32 to Raspberry Pi via SPI

AKhot.1
Senior

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.

1 REPLY 1
Issamos
Lead II

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