UART not working in Beaglebone black

Hello ,

I have tried to get the console of my beaglebone black via uart using a 6 pin usb to serial( PL2303HXD 6Pin USB TTL RS232) with my beaglebone powered up with 5V adapter , but am unable to get the console .

I suspected that there might be problem with my UART cable . I have checked it if it is working or not by connecting the tx and rx of it and checked the inputs given are displayed or not and it worked as well

I have checked in my board in both GPIO pins(Pin 11 and 13 , GPIO UART tx and rx) as well as in UART pins (UART tx rx and gnd) . Also checked by Vcc to the serial to usb as well . checked with all possible baudrates too , unable to get console

Can anyone help in finding out how if the problem is with the board or am I missing any configuration inorder to get UART communication ?

TIA,
Dharbanesh

PS: I have used the image from beaglebone official site and flashed it using a sd-card

Which version of the PL2303HXD, specifically 3v3 support?

Regards,

Normally, Beaglebone black use USB cable communication between PC and BBB.
You can find detail in book " Exploring Beaglebone"
For my PC it show COM3

Regards,
Richard

Hi @RichSj ,

I have earlier experience with Beaglebone black where it has UART which helps in stopping the console in bootloader and lets us inspect the boot logs . but USB doesn’t help for these . Is there a way to see boot logs via USB cable communication

I don’t know @RobertCNelson , Am using this product https://robu.in/product/pl2303hxd-6pin-usb-ttl-rs232-convert-serial-cable/

Hi, @Dharbanesh,

You are right, for your usage, USB can not do this.
For my understand, after release, software package bootloader outlog no inside detail information, only you got develop version, these logs may give you some information.

Regards,
Richard

That adaptor is 3.3V so should work.

Are you swapping tx and rx when connecting the connector ?

USB TX → BBB RX
USB RX → BBB TX
USB GND → BBB GND

Hi @benedict.hewson , No I didn’t swap the tx rx .

Even if I was wrong I just swapped and checked the tx and rx pin . And that too didn’t work.

just to be clear, this is the BBB uart connector, pin 1 at end closes to 5v power jack
and your setting baudrate to 115200

Yes I did the same .

Are you using linux on the otherwise, is your user part of the ‘dialout’ group?

Regards,

To check the serial console I checked in both windows as well as in linux . In BBB flashed it with debian img from the official site.

Have you tested your USB to serial convertor? Connect RX and TX and running some serial terminal program you should see back what you type. Make sure local echo is disabled though

Yes I tested it , it is working , am able to see whatever I type

a few things you could check
if you have a DVM (digital volt meter) the tx pin should have 3.3 volts the rx pin should have 0 volts, this is without the usb-serial connected and the BBB powered
with the usb-serial connected, both rx and tx should have 3.3 volts
look at your uEnv.txt file, does it contain “console=ttyS0,115200n8”

can you modify you uEnv.txt file
cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet
remove the word “quite”
this will allow all the debug stuff during boot.

As I don’t have the serial console verifying the boot logs with removing the “quiet” didn’t help and console=ttyS0,115200n8 is not present in my uEnv.txt

Regarding the DVM part , I have a multimeter with me , consider me as a 5 yr old and please elaborate how to measure because when I connect the positive of.multimeter to tx pin and negative to gnd , the readings are like 0.02 0.01 and it fluctuates . Or if you have a video reference to measure pleasure share because none of the video helped me as most of them dealt with breadboard circuit.

What is your host running. If you are doing linux in a VM hosted by windows you are on a dead end.
Native linux debian or ubuntu, with gtkterm, if you can do that set up let us know.

1 Like

Ok, i’m a bit concerned with uEnv.txt not having console line
can you post the file name that your using??

from the latest image i just downloaded
am335x-debian-12.2-iot-armhf-2023-10-07-4gb.img.xz
“cat /boot/uEnv.txt” outputs the following towards the end (linux command), this is done from ssh into the BBB. (the quote are not part of the command)
from a mount sdcard, uEnv.txt will be in “rootfs/boot/uEnv.txt” (not sure how widows shows this)

###U-Boot Overlays###

console=ttyS0,115200n8
cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet

next,
as for the DVM, i’m concerned with you not getting 3.3 volts
make sure the DVM is set to measure DC voltage
sorry, no video.
pin 1 for ground
pin 5 for tx

i’m asking for the voltage measurement without the USB-serial adapter attached, trying to determine if the BBB has a electrical issue.
also, measure the tx pin on the USB-serial adapter when not connected to the BBB, but is connected to a USB port.