ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Request for How to use SPI (J10 port) in SDK 1.45-VOXL2-mini

    VOXL SDK
    2
    2
    38
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jskim
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • Hector NevarezH
        Hector Nevarez
        last edited by Hector Nevarez

        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

        • https://docs.modalai.com/voxl2-kernel-build-guide/

        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 var02 flag

        • https://docs.modalai.com/m0054-versions/#m0054-1-and-m0054-2

        2. 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 command

        fastboot flash devcfg <path/to/voxl2-mini_SDK_1.0.0/devcfg>/devcfg.mbn
        

        You 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!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors