Skip to main content
Visitor II
October 22, 2023
Question

STM32F051R8T6 as Modbus rtu Master with RS-485

  • October 22, 2023
  • 1 reply
  • 1228 views

Hi,

I am using Stm32f0 as the modbus rtu MASTER, I have done setting up UART1 Rx and Tx for communication, I am sending the Master query to the Slave device (Simply Modbus Slave application) link https://www.simplymodbus.ca/download.htm. If I connect RX and Tx of mcu to USB to ttl converter then I am getting slave response but when I connect RS-485 to mcu and send a master query to slave then I'm not getting any response from a slave, attaching a code.

 

Please help me. Thanks in advance.

 

    This topic has been closed for replies.

    1 reply

    Visitor II
    March 4, 2025

    Did you solve the problem?