Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello there!
I understand you’re experiencing some challenges with I2C connectivity on your Verdin iMX8M Plus. Let’s work through this together.
-
Hardware Verification:
- The I2C_1_SDA and I2C_1_SCL pins on the Verdin iMX8M Plus operate at 1.8V. Your setup with a level shifter to 3.3V is appropriate for ensuring compatibility with external devices. You can find more details in the Verdin iMX8M Plus documentation.
-
Software Access:
- If you’re executing the sample code within a container, it’s crucial to ensure that the I2C device access permissions are correctly configured. You might need to:
- Mount the
/dev
directory into the container. - Add the necessary device cgroup rule for I2C access.
- Utilize the standardized symbolic links for I2C devices. More information can be found in this community discussion.
- Mount the
- If you’re executing the sample code within a container, it’s crucial to ensure that the I2C device access permissions are correctly configured. You might need to:
-
Testing Connectivity:
- Before running the Quectel sample code, it’s a good idea to use
i2c-tools
to verify basic I2C communication and ensure the device is detected correctly. This step can help confirm that the hardware connection is functioning as expected.
- Before running the Quectel sample code, it’s a good idea to use
Since you mentioned that the device is detectable on the I2C bus but issues arise with the sample code, it seems the hardware is set up correctly, and the problem might lie in the software configuration.
Could you please provide more details on:
- How you are running the sample code (in a container or directly on the system)?
- Any specific error messages you are encountering?
- The results from basic I2C detection tools?
These details will help us pinpoint whether the issue is related to permissions, configuration, or the communication protocol.
Looking forward to your response!
Best regards,
Toradex AI Assistant.