Use I2C on Voxl2 with Px4
-
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 boardconfigto 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 setexample src/drivers/barometer/invensense/icp101xx/Kconfigto 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!
-
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 boardconfigto 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 setexample src/drivers/barometer/invensense/icp101xx/Kconfigto 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!
@bcj did eventually figured out?? I stumbled upon the same problem!
-
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 boardconfigto 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 setexample src/drivers/barometer/invensense/icp101xx/Kconfigto 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!
@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
-
@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
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
-
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
@tiralonghipol UART drivers need patching. If it is an i2c or spi driver then usually not.
-
@tiralonghipol UART drivers need patching. If it is an i2c or spi driver then usually not.
This post is deleted!
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