STM32F103 Uart transmission complete callback problem
Posted: Sat Mar 20, 2021 11:37 am
Hello,
I am using Chibios 17.6.4 and STM32F103RBT6. I implemented Freemodbus library into my firmware. I have some problems with RS-485 driver enable signal. I set RS_485_DE signal just before calling uartStartSend() and clear this signal (RS_485_DE) in end of transmission callback. Everything works almost fine and the modbus communication works. Unfortunately, sometimes it happens that TC callback will not be called/fired. Then the RS-485_DE signal remains set so I can't receive anything. What could be the reason why callback TC is not called after using uartStartSend() and transmission is finished?
Thank you in advance for your help!
Franek
I am using Chibios 17.6.4 and STM32F103RBT6. I implemented Freemodbus library into my firmware. I have some problems with RS-485 driver enable signal. I set RS_485_DE signal just before calling uartStartSend() and clear this signal (RS_485_DE) in end of transmission callback. Everything works almost fine and the modbus communication works. Unfortunately, sometimes it happens that TC callback will not be called/fired. Then the RS-485_DE signal remains set so I can't receive anything. What could be the reason why callback TC is not called after using uartStartSend() and transmission is finished?
Thank you in advance for your help!
Franek