Connecting Serial Console to the NXP i.MX RT1050 EVK Board |
Running Linux (uClinux) on the i.MX RT1050 will require a serial console. U-Boot and Linux make use of the serial console to print messages and provide an interactive user interface. You won't be able to do much unless you have access to the serial console. Both U-Boot and Linux are configured to use LPUART1 for the serial console on the NXP i.MX RT1050 EVK. Connecting Serial Console Using a microUSB Cable On the NXP i.MX RT1050 EVK, LPUART1 interface is available at UART level on the J28 connector on the baseboard if a microUSB cable connected to the development host. Assuming a connection using a microUSB cable on the Linux PC the i.MX RT1050 serial console will be visible as a /dev/ttyACMx device. The U-Boot and Linux software configures the console for 115.2 Kps operation. There are various serial communication tools available for Linux, the most popular perhaps being kermit. kermit is a very powerful tool that can be run in interactive mode or controlled by a script. There is abundant documentation on kermit available in the Internet, if you require details. One possibility is to define on the host a shell script similar to the one below: $ vi console-imxrt.script Change the file mode to make the script an executable file: $ chmod +x console-imxrt.script Then run the script whenever you need to get access to the console (you will need sufficient system privilegies to run this script): $ sudo ./console-imxrt.script> To exit kermit, type Ctrl-\ and then q. Connecting Serial Console Using a USB UART Dongle On the NXP i.MX RT1050 EVK, LPUART1 interface is available at UART level on J30 and J31 connectors. Remove jumpers from J30 and J31 connectors to access the pins. In order to connect the serial console to a PC, you must convert the UART interface either to an RS-232 interface or to a USB interface. This requires connecting an external device ("dongle") to the i.MXRT1050 EVK. There are various such devices available on the market. One specific device we have been using (among others) is the WaveShare FT232 USB UART board:
Assuming a connection using an USB UART board, on the Linux PC the i.MX RT1050 serial console will be visible as a /dev/ttyUSBx device. The U-Boot and Linux software configures the console for 115.2 Kps operation. One possibility is to define on the host a shell script similar to the one below: $ vi console-imxrt1050.script Change the file mode to make the script an executable file: $ chmod +x console-imxrt1050.script Then run the script whenever you need to get access to the console (you will need sufficient system privelegies to run this script): $ sudo ./console-imxrt1050.script To exit kermit, type Ctrl-\ and then q. |