10-23-2020, 11:56 AM
(This post was last modified: 10-23-2020, 12:31 PM by hmuller.
Edit Reason: typo: DTC -> DTR
)
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
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:
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:
Troubleshooting
If you are not successfully communicating with the RockPro64 these are common things to check in order:
I received my RockPro64 in the mail yesterday, and successfully used this process today.
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
- Do not use a knockoff FT232RL based USB Serial UART with a windows system, it will brick the device.
- Set your USB Serial UART device to 3.3V.
- You are responsible for all outcomes resulting from the result of this information, including letting the smoke out.
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:
- Check for a disconnected wire
- Check that the wires are correctly connected
- Check that you are using the correct device (i.e. /dev/ttyUSB#)
- Check that the RockPro64 is plugged in
- Check that the RockPro64 has a valid bootloader installed in the appropriate media
I received my RockPro64 in the mail yesterday, and successfully used this process today.