Hello,
I am working on a Verdin AM62 connected to an Ivy Board. We are using Torizon OS and are configuring it with Torizon Core Builder. Recently our project has required that we add support for RS-485 devices, and we have had some trouble with it. The Ivy Board has support for RS-485 through the J6 Connector which we have wired in. We started by just working with our existing setup, simply connecting the wires and attempting to read Modbus RTU data using the mbpoll cli tool. We started with the port /dev/ttyS2, but also tried port /dev/verdin-uart2. Both of these gave back CRC errors or improper slave address errors for Modbus, which meant we were probably communicating but receiving the wrong packets back. Research led us to look into setting a device tree overlay, so we added this overlay to our Torizon Core Builder project:
/dts-v1/;
/plugin/;
/ {
compatible = "toradex,verdin-am62", "ti,am625";
};
&main_uart2 {
linux,rs485-enabled-at-boot-time;
rs485-rts-active-high;
rs485-rts-delay = <1 1>;
status = "okay";
};
We built that image and loaded it onto a board and the AUX1 light turned on which we have not seen before so we took that as a good sign. Trying mbpoll again both on ttyS2 and verdin-uart2 lead to getting a connection timed out error every time. Looking into this more we noticed that ttyS2 was being used by the console, so we added a kernel argument to have the console use tty1. It still gives the connection timed out error however so we are stuck.
Is there something we are missing to enable RS485? We are not familiar with device trees and haven’t required any changes to kernel args or anything like that for our project up to this point. Any help would be appreciated.
tdx-info summary:
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 6.1.119-6.8.2+git.92dbabd95f8f #1-TorizonCore SMP PREE MPT Wed Feb 5 10:48:17 UTC 2025
Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo v t.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ost ree=/ostree/boot.1/torizon/6a80bb9e1a65ab32aaf04b640a8bea0562d8459fe1645bb6229b8 ae4768f8053/0 console=tty1
Distro name: NAME="TorizonCore"
Distro version: VERSION_ID=6.8.2-build.30
Distro variant: VARIANT="Docker"
Hostname: machinepulse-15387795
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Verdin AM62 WB on Verdin Development Board
Toradex version: 0075 V1.1C
Serial number: 15387795
Processor arch: aarch64
------------------------------------------------------------