Communication between stm32 and raspberry pi4 through spi or i2c.
- November 9, 2024
- 3 replies
- 11309 views
Hello, I am doing a project with STM32F411RE NUCLEO board. I have downloaded the zip file from the web builder GRBLHAL. i have attached the file here. And I have successfully imported the zip folder onto the stm32cubeide. So for that project I want to add communication through SPI. and there is a SPI communication can be used for that project.
as in my previous query, i came to know that with UART communication, USB connector which is connected to cn1 of the board and raspberry pi USB connection - i am able to communicate. as i understood that, to communicate between raspberry pi and stm32, i don't need to connect tx of pi -> rx of board, rx of pi -> tx of board, gnd to gnd. but can able to communicate through a connector. will that be possible with spi communication also. if no, then how can be the easy way to communicate between raspberry pi 4b and stm32f411re. and i forgot to mention that, in that file i am not able to find uart communication, i can only see the header files of spi, i2c, usb_device. can you please give me clarity over this ?
