Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Compute & Autopilot
  3. VOXL 2
  4. Use I2C on Voxl2 with Px4

Use I2C on Voxl2 with Px4

Scheduled Pinned Locked Moved VOXL 2
6 Posts 3 Posters 935 Views 1 Watching
  • 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.
  • B Offline
    B Offline
    bcj
    wrote on last edited by
    #1

    I'm trying to use one of the I2C connections on J19 of the VOXL2 to control an external device. I cannot seem to get the Px4 code to build for I2C devices. I can build and deploy code to my voxl2 on the bench. I'm using https://gitlab.com/voxl-public/voxl-sdk/services/voxl-px4. I tried using make modalai-voxl2 boardconfig to enable drivers of example applications and that didn't have any effect. I was trying to just get some I2C driver to start to make sure I could configure thins, so I set example src/drivers/barometer/invensense/icp101xx/Kconfig to have a default of 'y'. Then I get a build error, it can't find the I2C class. I suspect I'm missing something simple somewhere to configure it for I2C, but I"m not sure what.

    Any suggestions appreciated!

    tiralonghipolT Eric KatzfeyE 2 Replies Last reply
    0
    • B bcj

      I'm trying to use one of the I2C connections on J19 of the VOXL2 to control an external device. I cannot seem to get the Px4 code to build for I2C devices. I can build and deploy code to my voxl2 on the bench. I'm using https://gitlab.com/voxl-public/voxl-sdk/services/voxl-px4. I tried using make modalai-voxl2 boardconfig to enable drivers of example applications and that didn't have any effect. I was trying to just get some I2C driver to start to make sure I could configure thins, so I set example src/drivers/barometer/invensense/icp101xx/Kconfig to have a default of 'y'. Then I get a build error, it can't find the I2C class. I suspect I'm missing something simple somewhere to configure it for I2C, but I"m not sure what.

      Any suggestions appreciated!

      tiralonghipolT Offline
      tiralonghipolT Offline
      tiralonghipol
      wrote on last edited by
      #2

      @bcj did eventually figured out?? I stumbled upon the same problem!

      1 Reply Last reply
      0
      • B bcj

        I'm trying to use one of the I2C connections on J19 of the VOXL2 to control an external device. I cannot seem to get the Px4 code to build for I2C devices. I can build and deploy code to my voxl2 on the bench. I'm using https://gitlab.com/voxl-public/voxl-sdk/services/voxl-px4. I tried using make modalai-voxl2 boardconfig to enable drivers of example applications and that didn't have any effect. I was trying to just get some I2C driver to start to make sure I could configure thins, so I set example src/drivers/barometer/invensense/icp101xx/Kconfig to have a default of 'y'. Then I get a build error, it can't find the I2C class. I suspect I'm missing something simple somewhere to configure it for I2C, but I"m not sure what.

        Any suggestions appreciated!

        Eric KatzfeyE Offline
        Eric KatzfeyE Offline
        Eric Katzfey
        ModalAI Team
        wrote on last edited by
        #3

        @bcj The I2C connections on J19 are routed to the DSP, not the applications processor. So you need to look at the PX4 DSP build files, not the applications processor build files. For example, here is where the icp101xx driver is brought in: https://github.com/modalai/px4-firmware/blob/8334ca832958db1a4f50f702b0975fb584cf4653/boards/modalai/voxl2-slpi/default.px4board#L11

        tiralonghipolT 1 Reply Last reply
        0
        • Eric KatzfeyE Eric Katzfey

          @bcj The I2C connections on J19 are routed to the DSP, not the applications processor. So you need to look at the PX4 DSP build files, not the applications processor build files. For example, here is where the icp101xx driver is brought in: https://github.com/modalai/px4-firmware/blob/8334ca832958db1a4f50f702b0975fb584cf4653/boards/modalai/voxl2-slpi/default.px4board#L11

          tiralonghipolT Offline
          tiralonghipolT Offline
          tiralonghipol
          wrote on last edited by tiralonghipol
          #4

          @Eric-Katzfey

          can you please confirm that in order to communicate with a sensor on the DSP, even if the driver already exists in px4, one need to patch the driver as you guys did for voxl2-slpi/src/drivers ?

          for example, read an MPU6050 over i2c on J19

          Eric KatzfeyE 1 Reply Last reply
          0
          • tiralonghipolT tiralonghipol

            @Eric-Katzfey

            can you please confirm that in order to communicate with a sensor on the DSP, even if the driver already exists in px4, one need to patch the driver as you guys did for voxl2-slpi/src/drivers ?

            for example, read an MPU6050 over i2c on J19

            Eric KatzfeyE Offline
            Eric KatzfeyE Offline
            Eric Katzfey
            ModalAI Team
            wrote on last edited by
            #5

            @tiralonghipol UART drivers need patching. If it is an i2c or spi driver then usually not.

            tiralonghipolT 1 Reply Last reply
            0
            • Eric KatzfeyE Eric Katzfey

              @tiralonghipol UART drivers need patching. If it is an i2c or spi driver then usually not.

              tiralonghipolT Offline
              tiralonghipolT Offline
              tiralonghipol
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              ModalAI
              Categories Recent Tags ModalAI.com Docs
              © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups