Memory Addresses of GPIO Pins

Hello, I’ve been trying to learn embedded systems programming with C/C++ on the Jetson Nano. When it comes to communicating with the GPIO pins for the nano, all resources use the Python GPIO library. However, I want to program the GPIO registers directly for learning purposes. Those anyone knows resources that specific how to communicate to the GPIO registers directly through memory map addresses or something similar.

hello greatmanokonkwo,

Nano’s GPIO pin configuration is included in the device tree.
you may disassembler the dtb file into text file for reference,
for example,
$ dtc -I dtb -O dts -o output.txt tegra210.dtb

1 Like

Where is tegra210.dtb

hello greatmanokonkwo,

it just an example, please replace that with your device tree,
for example,
here’s device tree tegra210-p3448-0000-p3449-0000-a02.dtb if you’re having A02 Nano platform.
please refer to flashing messages to have confirmation.

[ 260.8830 ] Writing partition DTB with tegra210-p3448-0000-p3449-0000-a02.dtb.encrypt
[ 260.9492 ] [................................................] 100%
1 Like