UART Protocol Communication

Hello! i have 2 UARTS enable in my zedboard one is USB UART and 2nd one is through MIO pins. I have to transfer data through UARTS in yocto how to do ? is there anyone who can guide me? but i have only one zedboard and i write sudo picocom /dev/ttyACM0 -b 115200

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


To transfer data through the two UART interfaces on your Zedboard using Yocto, you can follow these steps:

  1. Enable UART Drivers in Yocto Build: Ensure that the appropriate drivers for both USB UART and MIO UART are enabled in your Yocto build. This may involve modifying your device tree to include the UART configurations and ensuring that the necessary kernel modules are included in your image.

  2. Modify Device Tree: Modify your device tree to include the UART nodes for both the USB UART and the MIO pins. Set the correct parameters such as baud rate, data bits, stop bits, and parity for each UART interface.

  3. Install Terminal Emulation Software: Install terminal emulation software such as minicom or screen in your Yocto image. This will allow you to test the UART communication by sending and receiving data. Use commands like screen /dev/ttyUSB0 for USB UART and screen /dev/ttyMIO0 for MIO UART to open a terminal session on the respective UART devices.

  4. Use Standard Linux Commands: Use standard Linux commands to send and receive data over the UART interfaces. For example, use echo to send data and cat to read data from the UART device files located in /dev.

  5. Testing Communication: Test the UART communication by sending simple data packets and checking for correct reception on the other end. You can use loopback tests or connect the USB UART to a PC and use terminal software to send and receive data.

  6. Check Permissions: Ensure that you have the necessary permissions to access the UART devices in your Yocto environment. You may need to use sudo to access these devices if you encounter permission issues.

  7. Consult Documentation: For detailed information regarding the connections and configurations, consult the Zedboard documentation and the datasheet of the UART components you are using.

By following these steps, you should be able to set up and transfer data through the UART interfaces on your Zedboard using Yocto.

Please, also check if these links can help you solve your problem:

Enable UART4 on the verdin.

Hi @uroosa

As I explained before, we don’t work with the zedboard so we can’t really help you.

Where did you acquired your zedboard? Can you try contacting the company that sold it to you?