Modbus over RS485 with STM32F303K8
I'm looking to make a loop of MCUs as slaves to a PC master so that I can send commands to them. The idea is to use the https://www.maximintegrated.com/en/products/interface/transceivers/MAX22025.html and https://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_USB_RS485_CABLES.pdf to be able to communicate over RS485. Note that the transceiver eliminates the need for DE and \RE. The question is however, how do I set up the MCUs for the Modbus protocol? I'm aware of the protocol implementations found online, but I'm unsure of the STM specific setup. In CubeMX I get this, with no RX pin and no options:
This is what the reference manual RM0316 says:
I'm a little confused as to how the UART should be set up for Modbus communication, so I appreciate any help!
Thanks
