Colibri iMX6DL - GPIO issue

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

It seems you’re encountering an issue with the GPIO pin MX6QDL_PAD_EIM_D19__GPIO3_IO19 on your Colibri iMX6DL board, where it is not behaving as expected electrically, despite being controllable via software. Here are a few steps to help troubleshoot and resolve this issue:

  1. Device Tree Configuration: Double-check your device tree configuration to ensure that the pin is correctly set as a GPIO. Make sure there are no conflicting settings that might be overriding your configuration. Since you mentioned disabling UART, ensure that the pin is not being used by any other peripheral or function.

  2. Pin Muxing: Verify that the pin is correctly muxed as a GPIO in the device tree. Incorrect pin muxing can lead to the pin not functioning as expected. Ensure that the pin is not being used by any other function in the system.

  3. Use of libgpiod: Since the sysfs interface is deprecated, consider using the libgpiod tools for GPIO control. This can provide more reliable and modern control over GPIO pins. You can use commands like gpioset to set the pin state and gpioget to read it.

  4. Electrical Connections: While focusing on software, ensure that your device tree and software configurations are correct, as these can affect the pin’s behavior. If possible, measure the voltage directly at the pin to confirm its state.

By following these steps, you should be able to identify and resolve the issue with the GPIO pin. If the problem persists, further investigation into the software configuration may be necessary.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

GPIO configuration on IMX.6.