Jetson-io.py

Hello,

I want to configure the GPIO pins on a JetsonNano, but I cannot start program jetson-io.py.

I am running:
sudo /opt/nvidia/jetson-io/jetson-io.py

strace of the program seems to be an error with curses:

10:49:05.285312 write(2, “Traceback (most recent call last”…, 477Traceback (most recent call last):
File “/usr/lib/python3.6/curses/init.py”, line 78, in wrapper
cbreak()
_curses.error: cbreak() returned ERR

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/opt/nvidia/jetson-io/jetson-io.py”, line 594, in
curses.wrapper(JetsonIO)
File “/usr/lib/python3.6/curses/init.py”, line 100, in wrapper
nocbreak()
_curses.error: nocbreak() returned ERR
) = 477

Hi tony.karlsson,

Are you using the devkit or custom board for Jetson Nano?
What’s your Jetpack version in use?

May I know what’s your use case for Jetson IO?
It is the tool to enable some functions like I2C/SPI…etc.
If you just want to use the pins as GPIO, then you don’t need this tool.

I am using OKDO Jetson Nano

cat /etc/nv_tegra_release

R32 (release), REVISION: 7.5, GCID: 36557527, BOARD: t210ref, EABI: aarch64, DATE: Tue Jun 11 23:12:44 UTC 2024

We have the Jetson Nano connected to an Inverter which we will communicate with using RS-485 and Modbus.
We have one such device connected to another inverter which works but for the other Jetson Nano it does not work.

Another guy made the connection for the working inverter connection but he did not document all steps. Hence I think I have to use the jetson-io tool to set perhaps UART and RTS.

Probably because I use OKDO Jetson Nano DevKit the dtb file could not be found. So I hardcoded a filepath in the python code with one of the dtb files and now I could run the program.

Tho I thought I could also set the pin, but turns out it only reads the pin configuration.

Okay, it seems you are using the custom carrier board for Jetson Nano so that you have to use custom BSP package to flash your board.
Please note that Jetson-IO tool is only available for the devkit.

I would suggest you configure them from the pinmux spreadsheet.

You can also share the block diagram of your connection for further check.