SLUUDH5 January 2026
The best test method for testing the UART communications of the AM62L and AM62L-EVSE-DEV-EVM board combination is to connect two AM62L EVMs with respective AM62L-EVSE-DEV-EVM boards together. This method for a test setup will be easiest way to demonstrate communication with a UART link partner. This section is written to comprehend this type of setup. This is the diagram from the recommended setup section provided as a quick reference showing the two-board setup.
Figure 8-1 Two-board SetupFor RS485 Testing:
Take 2 AM62L + AM62L-EVSE-DEV-EVM boards (we will call them Board A & Board B). Wire the connections between the 2 boards as per the table below.
| Board A | Board B | |
|---|---|---|
| RS485 N | ßà | RS485 N |
| RS485 P | ßà | RS485 P |
| RS GND | ßà | RS GND |
See the following diagram for more details.
Figure 8-2 RS485 TestingFor RS232 Testing:
Take 2 AM62L + AM62L-EVSE-DEV-EVM boards (we will call them Board A & Board B). Wire the connections between the 2 boards as per the table below.
| Board A | Board B | |
|---|---|---|
| RS232 TX | ßà | RS232 RX |
| RS232 RX | ßà | RS232 Tx |
| RS GND | ßà | RS GND |
See the following diagram for more details.
Figure 8-3 RS232 TestingAs pointed out earlier in the document, there is a device tree source overlay (dtso) file has that describes the interfaces on the AM62L-EVSE-DEV-EVM board has been provided as device tree binary (dtbo). This dtbo for the AM62L-EVSE-DEV-EVM board has the necessary UART interface configurations. The code assumes that the dtbo has been added to the uEnv.txt file in U-Boot.
Testing:
For RS485 the UART port on Linux is ttyS4
For RS232 the UART port on Linux is ttyS3
Replace the <name-of-the-port> in the commands given below to appropriate UART port as per your tests.
Use stty command to configure the UART interface on each board
stty -F /dev/<name-of-th-port> 9600 cs8 -cstopb -parenb raw -echo
Use the commands below to test
On Board A:
head -c 34 < /dev/<name-of-th-port>; echo -n "0123456789ABCDEFGHIJKMNOPQRSTUVWXZ" > /dev/<name-of-th-port>
On Board B:
echo -n "0123456789ABCDEFGHIJKMNOPQRSTUVWXZ" > /dev/<name-of-th-port>; head -c 34 < /dev/<name-of-th-port>
You should see the data being sent and read on both the boards. See the image below:
Board A:

Board B:

If the data being sent and received is not the same then the test is failed.