Hello dear EEVblog community,
I'm working on a project that requires communication between a Raspberry Pi 4 (master) and an STM32F4 (slave).
The Pi is supposed to send commands to the STM32F4 to start a measurement and then receive a stream of data until the measurement is done.
My first intent was to use USB, since the STM32F4 I'm using has a USB-OTG FS layer on it's silicon and I previously used that to communicate with PCs.
The STM32F4 together with analog, power and motor controller circuits is on a single PCB. This PCB will most likely be larger than the Pi's board. I plan on mounting the Pi onto my measurement board and connect them via the pis header.
As far as I know, the Pi does not provide USB D+/D- over the header. This is a bummer, since it would require a cable and I don't want that.
Does anyone have experience with URAT or SPI communication between the two? I did a lot of SPI communication but never used a Pi for that befor.
Greetings
johofz