Dear All,
I want to configure NVIDIA Jetson AGX Xavier GPIO pin number 22.
I have taken the code from this link https://github.com/gaosiy/JetsonXavierGPIO
For modifying the GPIO pin number 22 i have modified the .cpp file as below:
jetsonXavierGPIONumber LEDControlPin = gpio417;
gpioExport(LEDControlPin);
gpioSetDirection(LEDControlPin,outputPin);
/* To control pin high or low */
gpioSetValue(LEDControlPin, on); //Pull high
gpioSetValue(LEDControlPin, off); //Pull low
After building when i try to execute the code then i am getting the below error:
gpioSetDirection unable to open gpio417: Permission denied
filedescriptor 3 Setting the LED on
gpioSetValue unable to open gpio417: Permission denied
I am also getting only 1.6 V on pin 22 instead of 3.3V while running this application.
Any kind of help to solve this problem will be highly appreciated.
Best Regards
Md Anayatullah