Request for How to use SPI (J10 port) in SDK 1.45-VOXL2-mini
-
Hello!
I am using the VOXL2-mini. Since the J10 port is configured as UART, I am unable to use SPI.
To use SPI (J10 Port), I need to use VOXL2 Mini SDK 1.0.0 (voxl2-mini_SDK_1.0.0.tar.gz), but it is a very old version.
Using the above SDK makes it impossible to use upgraded features. Is it possible to support firmware version 1.6 or higher to use SPI (J10 Port)?
Or please let me know if there is a feature in the firmware that allows selective configuration of SPI/UART?
Thank you.
Kim
-
Hi Kim,
There are a couple changes required here that will make this work:
1. Rebuilding Kernel with SPI14 enabled
You're going to have to rebuild and flash the kernel with QUP14 enabled as SPI. There is also a directional level shifter on GPIO67 that needs to be set to high in order for SPI on QUP 14 to work. I created this branch for you that should have the kernel changes that you need:- feature/voxl2-mini-spi-qup14 (link)
In order to actually build and flash the kernel please follow the instructions from our public docs on how to build the kernel
When building the kernel, after syncing but before building, make sure to go to the cloned meta-voxl2-bsp directory and checkout the branch that I created (feature/voxl2-mini-spi-qup14).
Also there is a chance you may need to build a kernel variant depending on your device so also make sure to check this document to see if you have a -2 device which would require building the kernel with the
-v var02flag2. Configuring Trustzone with Correct QUP
I would recommend using the devcfg binary that comes from the `voxl2-mini_SDK_1.0.0.tar.gz. In order to flash devcfg you'll want to run the following commandfastboot flash devcfg <path/to/voxl2-mini_SDK_1.0.0/devcfg>/devcfg.mbnYou should flash the kernel and devcfg (Trustzone) during the same fastboot session to avoid running into any issues with the device booting.
Let me know if you have any additional questions or run into any issues!
Reading along? Create a free ModalAI Forum account to join in.
With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.
Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.
Register Login