How to setup Modbus over RS485 between a RPi and STM32 Blue Pill

Started by dannychris37 3 months ago1 replylatest reply 3 months ago116 views
For RaspberryPi I found this: but I'm trying to understand how I can implement a modbus RTU via U(S)ART for STM32 blue pill. At the moment I have no STM32 programming interface for PC. I'm currently able to program the blue pill via Arduino IDE running on RPi.

RPi should be master and blue pill slave. Ultimately, the RPi should be able to pole the blue pill for certain information gathered from sensors connected to the blue pill.

[ - ]
Reply by jmford94February 10, 2021

There are a number of modbus slave libraries for Arduino on github.  I haven't used them, but I'd start there...