2023-09-21 05:26 AM
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.
2023-09-21 05:55 AM - edited 2023-09-21 05:57 AM
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