# Jetson AGX XAVIER Pin Configuration
## Pin Out

Generally the pinmux should be configured after jetpack installation, but by any chance if the pins are not configured properly, here are the steps to follow.
In my case PWM Pins [13, 15, 18] are not configured.
### Requirements:
The [Jetson.GPIO](https://github.com/NVIDIA/jetson-gpio) package must be installed.
- Download the package in your home directory (Preferably)
```
git clone https://github.com/NVIDIA/jetson-gpio.git
```
- Manually install the package
```
sudo python3 setup.py install
```
- Set the permissions
```
sudo groupadd -f -r gpio
sudo usermod -a -G gpio your_user_name
```
Find the username of your system by running `whoami` in the terminal.
- Copy the rules
```
sudo cp lib/python/Jetson/GPIO/99-gpio.rules /etc/udev/rules.d/
```
- Reboot the system for the changes to be effective.
```
sudo udevadm control --reload-rules && sudo udevadm trigger
```
OR
```
sudo reboot
```
## Modifying the pin configuration
Now that the Jetsion.GPIO package is installed properly.
- Run the following command to configure the pins
```
sudo /opt/nvidia/hetsion-io/jetsion-io.py
```
- Select the first option. "Configure Jetson 40pin Header"
- Select "Configure headerpins manually" option.
- Now press enter on the pins you want to configure.
- Save the Changes and exit.
- Reboot the system again`sudo reboot`.
Click on this reference [link](https://forums.developer.nvidia.com/t/pinmux-configuration-for-pwm-input-signals-jetson-agx-with-jetpack4-6/195947/4) for other methods in the forum if the above is not working.