Serial Connection Tutorial: FTDI 232RL
#1
Purpose

A serial connection is necessary when troubleshooting (or installing) on a headless system (no display/monitor).

Background

I have used a CH340 based USB Serial UART device and have had mixed results. That is why I use USB Serial UART devices based on FTDI's 232RL chip with 3.3v voltage or voltage selector. The version I use is this one:  https://www.microcenter.com/product/4865...controller

This is another model that should have no problems: https://www.amazon.com/DSD-TECH-SH-U09F-...07K76Q2DX/ Notice that it features a "genuine" chip.

You can use cheaper USB Serial UART models but those most likely use imitation chips. This is not an issue if you use linux, but windows machines will brick models with fake FTDI chips. The knockoffs can be unbricked, but that is beyond the scope of this tutorial.

The RockPro64 UART RX/TX pins use 3V by default according to the schematics. ENSURE you set your USB Serial UART device to 3.3V.

Warnings
  1. Do not use a knockoff FT232RL based USB Serial UART with a windows system, it will brick the device.
  2. Set your USB Serial UART device to 3.3V.
  3. You are responsible for all outcomes resulting from the result of this information, including letting the smoke out™.
Physical Connections

You will require a USB extension cable to connect the USB Serial UART to the host desktop/laptop/SBC. The type also depends on the USB connector on your USB Serial UART device. The USB extension cable needed for the devices I have linked to in this tutorial require a type A-Male to Mini-B cable similar to this: https://www.amazon.com/AmazonBasics-USB-...00NH11N5A/ 

You will have to purchase jumper wires to connect the USB Serial UART to the RockPro64. I use MALE to FEMALE jumpers similar to these: https://www.pololu.com/category/65/premium-jumper-wires The gender of your jumper wires will depend on the connectors on your USB Serial UART device.

Only 3 jumper wires are required. Verbally, GND (pin 6) to GND, TX (pin 8) to RX, and RX (pin 10) to TX are the connections made between the RockPro64 and the USB Serial UART device. Visually, it looks like this:

Code:
RockPro64        FT232RL USB Serial UART
=========        =======================

pin 6  *|--------|* GND
pin 8  *|---\    |* CTS
pin 10 *|-\  \   |* 5V
           \-----|* TXD
               \-|* RXD
                 |* DTR

Software Connection

On the linux host, I used picocom. If you are using a windows host, then putty is probably what you will use. This is what I ran on my host:

Code:
$ picocom -b 1500000 /dev/ttyUSB0

Troubleshooting

If you are not successfully communicating with the RockPro64 these are common things to check in order:
  1. Check for a disconnected wire
  2. Check that the wires are correctly connected
  3. Check that you are using the correct device (i.e. /dev/ttyUSB#)
  4. Check that the RockPro64 is plugged in
  5. Check that the RockPro64 has a valid bootloader installed in the appropriate media
Epilogue

I received my RockPro64 in the mail yesterday, and successfully used this process today.


Possibly Related Threads…
Thread Author Replies Views Last Post
Lightbulb HOW TO - Connect the serial console Yoast 23 77,363 03-24-2023, 04:27 PM
Last Post: runyor
  SkiffOS server with Docker ,NAS, Home assistant, Jellyfin, Snikket XMPP (tutorial) GreyLinux 12 12,388 04-04-2022, 05:26 AM
Last Post: GreyLinux
  SimpNas server with docker - home assistant, radicale , jellyfin & esphome (tutorial) GreyLinux 0 4,884 01-17-2021, 11:33 AM
Last Post: GreyLinux
  Tutorial:How to Configure ATS Fan control tuxd3v 26 57,946 11-06-2020, 08:56 PM
Last Post: g_t_j
Wink Tutorial[ Seagate Disks ]: Optimize Life Span/Power Managment tuxd3v 14 26,783 06-19-2019, 04:40 AM
Last Post: Neo2018
Thumbs Up Tutorial[ Seagate Disks ]: Install Seagate OpenSeaChest Utilities tuxd3v 41 84,809 04-08-2019, 10:10 AM
Last Post: Neo2018
  Tutorial[ Multimedia ] : Play DVD movies tuxd3v 0 2,980 02-26-2019, 07:21 PM
Last Post: tuxd3v
  Tutorial[ OpenCL ]: OpenCL 1.2 FULL_PROFILE Working tuxd3v 0 4,242 11-06-2018, 01:03 PM
Last Post: tuxd3v

Forum Jump:


Users browsing this thread: 1 Guest(s)