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

    Use I2C on Voxl2 with Px4

    VOXL 2
    3
    6
    434
    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.
    • B
      bcj
      last edited by 12 Sept 2023, 23:50

      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!

      T E 2 Replies Last reply 17 Dec 2023, 07:43 Reply Quote 0
      • T
        tiralonghipol @bcj
        last edited by 17 Dec 2023, 07:43

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

        1 Reply Last reply Reply Quote 0
        • E
          Eric Katzfey ModalAI Team @bcj
          last edited by 17 Dec 2023, 16:01

          @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

          T 1 Reply Last reply 18 Dec 2023, 14:40 Reply Quote 0
          • T
            tiralonghipol @Eric Katzfey
            last edited by tiralonghipol 18 Dec 2023, 14:43 18 Dec 2023, 14:40

            @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

            E 1 Reply Last reply 18 Dec 2023, 16:20 Reply Quote 0
            • E
              Eric Katzfey ModalAI Team @tiralonghipol
              last edited by 18 Dec 2023, 16:20

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

              T 1 Reply Last reply 18 Dec 2023, 16:40 Reply Quote 0
              • T
                tiralonghipol @Eric Katzfey
                last edited by 18 Dec 2023, 16:40

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB | Contributors