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,
To enable RS485 serial communication on UART_B with the Aster carrier board and iMX6ULL Colibri module, you’ll need to modify the device tree. Here are the general steps and necessary configurations:
Locate the Device Tree Source (DTS) File: First, identify the DTS file for your specific hardware configuration. For the iMX6ULL Colibri with an Aster carrier board, the file is likely named something similar to imx6ull-colibri-aster.dts.
Modify the Device Tree: You need to add or modify the node for UART_B to include RS485 configuration parameters. Below is an example snippet that you might add to the UART_B node:
In this example, &uart2 should correspond to the alias of UART_B in the device tree. The rs485-rts-delay property sets the RTS delay before and after transmission. The linux,rs485-enabled-at-boot-time property ensures RS485 mode is enabled from boot.
Configure Pin Multiplexing: Ensure the pins are correctly configured for UART_B and RS485. This might involve setting up the correct pin functions in the pinctrl_uart2 node:
Adjust the pin configurations according to your specific needs and the Aster carrier board’s schematic.
Recompile the Device Tree: After making the necessary modifications, recompile the device tree blob (DTB) using the appropriate cross-compilation tools for your development environment.
Deploy the New Device Tree Blob: Replace
Please, also check if these links can help you solve your problem:
Have you checked this article with specific instructions and configurations to use RS485 on the UART?
If you have a colibri evaluation board,
it’s recommended that you firstly validade your device tree in a known hardware setup before moving to with a custom setup, you can verify the RS-485 wiring schematics of the colibri evaluation board in the technical details page.
You can also check other posts with a similar problem