Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!
Did you like my answer?

Hello,
Based on the information you’ve provided, it seems you’re encountering issues with RTS not working correctly for RS485 communication on the iMX6ULL when using the Colibri UARTA and UARTB. Given that the same setup works with an iMX8DX, this suggests that the issue might be specific to the iMX6ULL configuration or its handling of RS485.
First, ensure that your device tree modifications for enabling RS485 on the iMX6ULL are correctly applied. The device tree overlay you’ve shown is correctly enabling RTS/CTS for UART1, UART2, and UART5, which is necessary for RS485 operation. However, the iMX6ULL might require additional configuration specific to its UART implementation.
Since you’re using the ioctl method to set the RS485 mode in userspace, your configuration seems correct for enabling RS485 with auto direction control. However, considering the iMX6ULL’s peculiarities, you might want to experiment with the SER_RS485_RX_DURING_TX
flag, given that you mentioned this setup works on an iMX8DX but not on the iMX6ULL. The iMX6ULL might have different default behavior regarding receiver enablement during transmission.
Another aspect to consider is the kernel version you’re using (6.1.80-6.6.0-devel+git.a3eb3a74aa8c). Ensure that this kernel version supports all the RS485 features you’re trying to use, especially since RS485 support can vary between kernel versions. While the documentation you referred to suggests that the kernel supports these features, there might be specific patches or configurations in the Toradex kernel that affect RS485 behavior on the iMX6ULL.
If after checking these aspects the issue persists, it might be beneficial to look into the following:
- Hardware Setup: Double-check the hardware connections and ensure that there’s no physical issue or misconfiguration specific to the iMX6ULL setup.
- Kernel Logs: Review the kernel logs (
dmesg
) for any errors or warnings related to UART or RS485 that might give a clue as to what’s going wrong.
- Software Configuration: Verify that there are no conflicting configurations in your system that might affect RS485 operation. This includes checking for any other system services or applications that might be attempting to control the same UART interfaces.
Given the complexity of RS485 communication and the specific nuances of different iMX processors, these issues can sometimes be challenging to diagnose. Ensuring that your
Please, also check if these links can help you solve your problem:
UART (Linux) | Toradex Developer Center.