# Setting up a serial console for debug

**URL:** <https://forums.developer.nvidia.com/t/setting-up-a-serial-console-for-debug/176716>\
**Category:** Jetson AGX Xavier\
**Tags:** usb\
**Created:** [April 30, 2021, 3:01pm UTC](https://forums.developer.nvidia.com/t/setting-up-a-serial-console-for-debug/176716 "2021-04-30T15:01:01Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdevd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@cdevd](https://forums.developer.nvidia.com/u/cdevd)\
**Post date:** [April 30, 2021, 3:01pm UTC](https://forums.developer.nvidia.com/t/setting-up-a-serial-console-for-debug/176716/1 "2021-04-30T15:01:01Z")

</div>

Can someone point me to a guide open how to set up serial console for debugging of my Xavier agx dev kit

the user guide says that it is possible but doesn’t give any instructions on how to actually do it.

Am I able to use another Xavier dev kit as the host machine?

thanks chris

---

<div class="post-metadata">

**Author:** ![mehmetdeniz](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mehmetdeniz/32/72318_2.png) [@mehmetdeniz](https://forums.developer.nvidia.com/u/mehmetdeniz)\
**Post date:** [April 30, 2021, 3:29pm UTC](https://forums.developer.nvidia.com/t/setting-up-a-serial-console-for-debug/176716/2 "2021-04-30T15:29:10Z")

</div>

Hello Chris,

You need a micro-USB cable to do that.

- Connect your cable’s micro-USB side to your AGX Xavier’s micro-USB pin (J501).
- Connect your cable’s other USB side to your host PC (it requires any serial console application installed).
- Open serial console application into the host PC

Into the Host PC  
These commands are working for Ubuntu (and should work other debian OS’s (also Jetson devices))  
I use GtkTerm as a serial commnication application. If you want to install gtkterm type this:  
`sudo apt install gtkterm`

After USB connected  
As you can see that the FTDI connected with “lsusb” command.

 ![Screenshot from 2021-04-21 17-10-07](https://global.discourse-cdn.com/nvidia/original/3X/c/3/c337c95303bbb346944cb5661c09dd26b77daadb.png)

Then you can connect your AGX Xavier with:  
`sudo gtkterm`

Finally, set the port and baud rate like that:

 ![Screenshot from 2021-04-21 17-17-29](https://global.discourse-cdn.com/nvidia/original/3X/e/3/e354ac130920316a6a19a9ab304eeeffcfa727f3.png)

Set the Port as “/dev/ttyUSB0” (if you plugged multiple USBs, your device can be different (USB1 etc.))

* * *

> [@cdevd](#):
>
> Am I able to use another Xavier dev kit as the host machine?

Yes. To do this, use the same configuration. Your USB cable should plugged in your **host AGX Xavier** ’s any USB-A or USB-C connection.

Regards

---

<div class="post-metadata">

**Author:** ![cdevd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@cdevd](https://forums.developer.nvidia.com/u/cdevd)\
**Post date:** [April 30, 2021, 3:44pm UTC](https://forums.developer.nvidia.com/t/setting-up-a-serial-console-for-debug/176716/3 "2021-04-30T15:44:20Z")

</div>

I think this is the best reply i’ve had to any question on here, genuinely helpful, thanks!

I have it set up, but nothing is happening, just black screen.

My lsusb results was the same as yours Bus 001 Device 008 → that’s ttyUSB0?

do I have to start it some how?

I use dmesg --follow on my Xavier for logging on screen - how to I start it using serial console?

Sorry probably very stupid questions

thanks

---

<div class="post-metadata">

**Author:** ![mehmetdeniz](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mehmetdeniz/32/72318_2.png) [@mehmetdeniz](https://forums.developer.nvidia.com/u/mehmetdeniz)\
**Post date:** [April 30, 2021, 3:47pm UTC](https://forums.developer.nvidia.com/t/setting-up-a-serial-console-for-debug/176716/4 "2021-04-30T15:47:36Z")

</div>

> [@cdevd](#):
>
> I use dmesg --follow on my Xavier for logging on screen - how to I start it using serial console?

Did you typed **dmesg --follow** command at Xavier side right? Not at the host side

---

<div class="post-metadata">

**Author:** ![cdevd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@cdevd](https://forums.developer.nvidia.com/u/cdevd)\
**Post date:** [April 30, 2021, 3:49pm UTC](https://forums.developer.nvidia.com/t/setting-up-a-serial-console-for-debug/176716/5 "2021-04-30T15:49:43Z")

</div>

on the Xavier I’m debugging

I can’t type anything on gtkterm

I do have some warning and errors on terminal where I “sudo gtkterm”

 ![IMG_0091](https://global.discourse-cdn.com/nvidia/original/3X/f/f/ffbacf5080224551027a874b2054bf7df5700d75.jpeg)

---

<div class="post-metadata">

**Author:** ![mehmetdeniz](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mehmetdeniz/32/72318_2.png) [@mehmetdeniz](https://forums.developer.nvidia.com/u/mehmetdeniz)\
**Post date:** [April 30, 2021, 3:58pm UTC](https://forums.developer.nvidia.com/t/setting-up-a-serial-console-for-debug/176716/6 "2021-04-30T15:58:12Z")

</div>

It’s OK.

Can you type Enter at the GtkTerm

It should look like that  
 ![Screenshot from 2021-04-30 18-59-24](https://global.discourse-cdn.com/nvidia/original/3X/8/b/8ba2469c0514117dd6bd24d5c1be03ea730c4225.png)

(I tried to connect AGX Xavier’s debug pin by itself and it worked)

---

<div class="post-metadata">

**Author:** ![cdevd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@cdevd](https://forums.developer.nvidia.com/u/cdevd)\
**Post date:** [April 30, 2021, 4:03pm UTC](https://forums.developer.nvidia.com/t/setting-up-a-serial-console-for-debug/176716/7 "2021-04-30T16:03:39Z")

</div>

no its completely black - no type at all

---

<div class="post-metadata">

**Author:** ![ozguryildiz](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/ozguryildiz/32/72318_2.png) [@ozguryildiz](https://forums.developer.nvidia.com/u/ozguryildiz)\
**Post date:** [April 30, 2021, 4:06pm UTC](https://forums.developer.nvidia.com/t/setting-up-a-serial-console-for-debug/176716/8 "2021-04-30T16:06:51Z")

</div>

Hi @cdevd,

Is there a possibility to select wrong port ? Do you have another USB device on your machine? The port might be different from “/dev/ttyUSB0” as @mehmetdeniz mentioned above.

---

<div class="post-metadata">

**Author:** ![cdevd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@cdevd](https://forums.developer.nvidia.com/u/cdevd)\
**Post date:** [April 30, 2021, 4:12pm UTC](https://forums.developer.nvidia.com/t/setting-up-a-serial-console-for-debug/176716/9 "2021-04-30T16:12:17Z")

</div>

my lsusb says it’s “Bus 001 Device 008” - the same as in @mehmetdeniz’s photo so I picked the same port.

I’ve now tried all the other ports but no type appears on gtkterm for any of them.

my only other USB devices on my host machine are keyboard and mouse

Do I need to remove usb devices from my debug machine? It is set up as I would use it normally at the moment

thanks

---

<div class="post-metadata">

**Author:** ![mehmetdeniz](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mehmetdeniz/32/72318_2.png) [@mehmetdeniz](https://forums.developer.nvidia.com/u/mehmetdeniz)\
**Post date:** [April 30, 2021, 4:36pm UTC](https://forums.developer.nvidia.com/t/setting-up-a-serial-console-for-debug/176716/10 "2021-04-30T16:36:00Z")

</div>

> [@cdevd](#):
>
> Do I need to remove usb devices from my debug machine?

No, keyboard and mouse should not effect this situation.

Maybe you can try another usb cable if you have.  
I could not found anything about this error

---

<div class="post-metadata">

**Author:** ![cdevd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@cdevd](https://forums.developer.nvidia.com/u/cdevd)\
**Post date:** [April 30, 2021, 4:40pm UTC](https://forums.developer.nvidia.com/t/setting-up-a-serial-console-for-debug/176716/11 "2021-04-30T16:40:48Z")

</div>

started again and this time I’m in!

thanks for your help and to @ozguryildiz too

much appreciated!

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 18, 2021, 6:19pm UTC](https://forums.developer.nvidia.com/t/setting-up-a-serial-console-for-debug/176716/12 "2021-10-18T18:19:44Z")

</div>

Closed on October 18, 2021, 6:19pm UTC


