EasyManua.ls Logo

Phytec i.MX 93 - Rs232;Rs485; Can Fd

Default Icon
85 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
i.MX 93 BSP Manual PD24.1.1 Documentation Rev.: imx8mp-pd22.1.2-51-ga548be7d
7.12 RS232/RS485
The phyBOARD-Nash i.MX 93 SoC provides one RS232/RS485 serial port.
Warning
RS232 with HW ow control and RS485 are not working due to HW bug on the phyBOARD-Nash PCB
revision 1616.0
7.12.1 RS232
Display the current settings of a terminal in a human-readable format:
target:~$ stty -a
Conguration of the UART interface can be done with stty. For example:
target:~$ stty -F /dev/|serial-uart| 115200 crtscts raw -echo
With a simple echo and cat, basic communication can be tested. Example:
target:~$ echo 123 > /dev/|serial-uart|
host:~$ cat /dev/ttyUSB2
The host should print out “123”.
7.12.2 RS485
For easy testing, look at the linux-serial-test. This tool is called the IOCTL for RS485 and sends a constant
stream of data.
target:~$ linux-serial-test -p /dev/|serial-uart| -b 115200 --rs485 0
More information about the linux-serial-test tool and its parameters can be found here: linux-serial-test
Documentation for calling the IOCTL within c-code is described in the Linux kernel documentation: https:
//www.kernel.org/doc/Documentation/serial/serial-rs485.txt
The device tree representation for RS232 and RS485: https://git.phytec.de/linux-imx/tree/arch/arm64/
boot/dts/freescale/imx93-phyboard-nash.dts?h=v6.1.55_2.2.0-phy3#n173
7.13 CAN FD
The phyBOARD-Segin/Nash i.MX 93 has one exCAN interface supporting CAN FD. They are supported
by the Linux standard CAN framework which builds upon the Linux network layer. Using this framework,
the CAN interfaces behave like an ordinary Linux network device, with some additional features special to
CAN. More information can be found in the Linux Kernel documentation: https://www.kernel.org/doc/
html/latest/networking/can.html
Use:
target:~$ ip link
to see the state of the interfaces. The CAN interface should show up as can0.
Accessing Peripherals 64