In order to access a AON GPIO from the Cortex-R5 SPE/AON for Jetson AGX; the GPIO SCR, GPIO interrupt map and pinmux settings need to be updated as described in below steps.
Update SCR values as below in the file tegra194-mb1-bct-scr-cbb-mini.cfg:
Compile device tree and flash the entire board to ensure that the SCR, gpio interrupt mapping and pinmux settings are flashed on the board.
Short GPIO pins of the 40 pin header J30 pin 16 and pin 32, this should print out “GPIO input irq triggered” message since pin 16 is configured as OUT which drives the pin 32 which is configured as INPUT and also has interrupt enabled.
i have done above config and replace tx19 spe bin device tree and Image but irq enabled message is not coming .
can anyone help me on this
hi i checked 16th gpio and i am getting .05 voltage and while reading memory of the above registers the value is getting changed comparing with sensor value what we need to right
So in sys-FS, when you configured one pin by output, another pin by input, connect two pins, and changed output pin, you can get the correct value in input side?
Let’s confirm this first.
Then we can proceed to SPE firmware.
Add some print code in GPIO loops, and make sure the app runs as expected.
When GPIO output is updated in SPE firmware, check the voltage of output pin, and check whether it toggles as expected.
If the interrupt still does not happen, but 2 is good, re-check the configurations in gpio.md, and confirm everything is updated. especially interrupt mapping. It’s better to re-flash the device to make sure the changes are working.