# Debug port Uart2 is not working

**URL:** <https://forums.developer.nvidia.com/t/debug-port-uart2-is-not-working/253675>\
**Category:** Jetson TX2\
**Tags:** gpio, kernel, usb\
**Created:** [May 18, 2023, 1:12pm UTC](https://forums.developer.nvidia.com/t/debug-port-uart2-is-not-working/253675 "2023-05-18T13:12:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sateeshargus](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sateeshargus](https://forums.developer.nvidia.com/u/sateeshargus)\
**Post date:** [May 18, 2023, 1:12pm UTC](https://forums.developer.nvidia.com/t/debug-port-uart2-is-not-working/253675/1 "2023-05-18T13:12:48Z")

</div>

I am checking the dts files and trying to understand whether Uart2 enabled or disabled.  
Board details: JETSON TX2I  
Jetpack: 4.6.3

Regards,  
Sateesh

---

<div class="post-metadata">

**Author:** ![KevinFFF](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kevinfff/32/15508_2.png) [@KevinFFF](https://forums.developer.nvidia.com/u/KevinFFF)\
**Post date:** [May 19, 2023, 1:20am UTC](https://forums.developer.nvidia.com/t/debug-port-uart2-is-not-working/253675/3 "2023-05-19T01:20:05Z")

</div>

Hi sateeshargus,

Are you using the devkit or custom board for TX2?

Have you refer to the following instruction for serial console log?  
[Serial Console - NVIDIA Jetson TX2 - JetsonHacks](https://jetsonhacks.com/2017/03/24/serial-console-nvidia-jetson-tx2/)

Please also provide the dtb in use for further check.

---

<div class="post-metadata">

**Author:** ![sateeshargus](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sateeshargus](https://forums.developer.nvidia.com/u/sateeshargus)\
**Post date:** [May 19, 2023, 5:58am UTC](https://forums.developer.nvidia.com/t/debug-port-uart2-is-not-working/253675/4 "2023-05-19T05:58:50Z")

</div>

Thanks@kevinFFF.

I am using jetson TX2i devkit.  
Provided link is not working.  
[tegra186-quill-p3310-1000-a00-00-base.dtb](https://forums.developer.nvidia.com/uploads/short-url/2dPI1ubuyhpwKuMoW9PTmOGmLta.dtb) (365.7 KB)

---

<div class="post-metadata">

**Author:** ![KevinFFF](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kevinfff/32/15508_2.png) [@KevinFFF](https://forums.developer.nvidia.com/u/KevinFFF)\
**Post date:** [May 19, 2023, 8:56am UTC](https://forums.developer.nvidia.com/t/debug-port-uart2-is-not-working/253675/5 "2023-05-19T08:56:48Z")

</div>

> [@sateeshargus](#):
>
> Provided link is not working.

Do you mean the link can not be opened?  
Or it could not work on your devkit? Which step you get any error?

From your dtb, UART2(uartb) has been enabled correctly.

```auto
uartb = "/serial@3110000";

	serial@3110000 {
		compatible = "nvidia,tegra186-hsuart";
		iommus = <0x11 0x20>;
		reg = <0x0 0x3110000 0x0 0x40>;
		reg-shift = <0x2>;
		interrupts = <0x0 0x71 0x4>;
		nvidia,memory-clients = <0xe>;
		dmas = <0x24 0x9 0x24 0x9>;
		dma-names = "rx", "tx";
		clocks = <0x10 0x38 0x10 0x10d>;
		clock-names = "serial", "parent";
		resets = <0x10 0x30>;
		reset-names = "serial";
		status = "okay";
		nvidia,tolerance-low-range = <0x0>;
		nvidia,tolerance-high-range = <0x4>;
		nvidia,adjust-baud-rates = <0x1c200 0x1c200 0x64>;
		linux,phandle = <0x195>;
		phandle = <0x195>;
	};

```

For debug UART, it seems using UART1(uarta) on 40-pin expansion header.

---

<div class="post-metadata">

**Author:** ![sateeshargus](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sateeshargus](https://forums.developer.nvidia.com/u/sateeshargus)\
**Post date:** [May 23, 2023, 6:45am UTC](https://forums.developer.nvidia.com/t/debug-port-uart2-is-not-working/253675/6 "2023-05-23T06:45:55Z")

</div>

Thanks@kevinFFF.

Now the debug port is working fine. Some cabling issue. Cable was not connected properly.

Now I am working on the developing the device drivers. I need to write driver for other UARTs. where I need to implement the source code.

---

<div class="post-metadata">

**Author:** ![KevinFFF](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kevinfff/32/15508_2.png) [@KevinFFF](https://forums.developer.nvidia.com/u/KevinFFF)\
**Post date:** [May 23, 2023, 9:15am UTC](https://forums.developer.nvidia.com/t/debug-port-uart2-is-not-working/253675/7 "2023-05-23T09:15:47Z")

</div>

It’s great to hear this.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [June 14, 2023, 3:23am UTC](https://forums.developer.nvidia.com/t/debug-port-uart2-is-not-working/253675/9 "2023-06-14T03:23:10Z")

</div>

Closed on June 14, 2023, 3:23am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
