Getting a simple C program to compile/run using the voxl_io library
-
Hi, I'm currently starting a project with the VOXL2-Mini, which uses the qrb5165 processor. First time working with anything like this and am totally out of my usual work, so I'm trying to just get a simple C program on it that utilizes the voxl_io library. Have done pretty much all of the setup steps in the Developer Bootcamp on the Documentation and my device is running SDK 1.3.2. I'm using a wired connection with ADB to get into it and was able to push/compile/run a Hello World program. I guess my question is, how can I get compile/run something like one of the examples in the libqrb5165-io repo on the device? Do I need to build this repo and deploy it to the VOXL? My understanding was that this should have already been included with the SDK, but please correct me if I am wrong. Would appreciate any guides, advice, etc. TIA.
-
@voxluser12341 , the examples you mentioned should already part of the SDK, you could test them (see below). Are you trying to use these examples or build your own application that is similar?
voxl2:~$ ls /usr/bin/qrb5165*test /usr/bin/qrb5165io-slpi-uart-test /usr/bin/qrb5165io-spi-test /usr/bin/qrb5165io-uart-test voxl2:~$ voxl-gpio Usage: voxl-gpio <option> Only one option is supported at a time Example: voxl-gpio -w 82 1 Options: -h Show this help menu -r, read [pin#] Read current value from GPIO pin -w, write [pin#] [0, 1] Write value to GPIO pin -m, mode [pin#] [in, out] Set GPIO pin direction
-
@Alex-Kushleyev Thanks for getting back to me. The end goal is that I would like to create an application that will be working with VOXL's serial ports, similar to the examples. I saw here that I will need to make use of the voxl_io library to do so. I am just not sure what the correct process is to actually include this library in my code. Let's say I make a new .c file on my VOXL2. What's the correct process for getting the voxl_io library to be included with this so that I can have it compile and run while using functions from the library? Could you provide me with some steps or a guide on how I can include this library in a program so it can reference it?