About the hardware debug UART port

I would like to ask if the main pins 236 and 238 of the Jetson_Xavier_NX module are debug ports. Can they be used as GPIO PIN or RS232? How to do it?

That’s debug UART and do not use it for other function.

So it cannot be set to other functions through FW.

No, it should not be set to other function.

But I use chatGDP it replies me with the following approach
Step 1: Modify Device Tree
To make these pins GPIO pins or RS232 (UART) pins, you need to modify the Device Tree configuration.

  1. Download and unzip NVIDIA’s L4T source code.
  2. Find the Device Tree file related to Jetson Xavier NX, usually located at hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-p3668-all-p3509-0000.dts.
  3. Modify the file to set pins 236 and 238 as GPIO or RS232.

Step 2: Compile and apply Device Tree

  1. Compile the modified Device Tree.
  2. Copy the compiled Device Tree file to Jetson Xavier NX.
  3. Update the bootloader to use the new Device Tree.

Step 3: Using the Pins
Once the pins are configured, you can use them as UART (RS232) or GPIO.

as UART (RS232)
The UART can be accessed using standard Linux serial port tools such as minicom or screen.

as GPIO
These pins can be controlled using the Jetson.GPIO library. Here is sample code:

As said, it is debug port, should not be set to other function.

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