Skip to main content
Associate
July 29, 2025
Question

Communication between STM32 and Raspberry Pi Ethernet

  • July 29, 2025
  • 1 reply
  • 442 views

Hello

I am working in a project where I'm connecting 2 boards STM32 with FDCAN Bus, one board has all the sensors connected, and the other one receives the data, basically I send floats (measures of the sensors) and It is done!, but now, I would like to transmit from my second STM32 (receiver) to a Raspberry Pi 3 via Ethernet. Honestly, I don't know where to start or what configuratios should I try

 

Thanks

1 reply

Technical Moderator
July 30, 2025

Hello @polram, and welcome to ST Community!

For your case, I recommend starting by downloading one of ST’s LwIP examples, specifically the UDP echo client. You can then adapt it to your use case by creating a UDP protocol control block (PCB), copying your payload to it, and sending it on a port of your choice. On the Raspberry Pi side, you can create a UDP server script that listens on that port, receives the datagrams, and extracts the sent data.

Best regards,

To improve visibility of answered topics, please click 'Accept as Solution' on the reply that resolved your issue or answered your question.
polramAuthor
Associate
July 31, 2025

Great, thank you so much for the information, I will try it :)