VOXL2 GPIO and Serial Interfaces
-
Hi, I am currently using a VOXL2 and have been diving into the documentation and haven't been able to find or at least notice any reference to how to control GPIO pins and specifically UART pins through the DSP chip with my own program running on the VOXL2. I was wondering if I could be pointed to the appropriate documentation in order to set that up.
-Thanks
-
Sorry, it is poorly documented. The only I/O that needs to use the DSP is for flight controller development. The rest of the I/O is accessed through the Linux CPU and behaves like most Linux systems.
This page shows all of the connections https://docs.modalai.com/voxl2-connectors/
You can see references to things like /dev/ttyHS1 which is a UART available through Linux
You can find GPIO access in /sys/class/gpio/gpio
-
I've been meaning to get this into a user guide as well, but for the applications processor GPIO, here's an example of setting IO programmatically, in this case GPIOs 46/159:
https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-bind/-/blob/master/src/voxl-bind.c#L58
https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-bind/-/blob/master/src/voxl-bind.c#L147