Dtynin
Dtynin
GPIO Pin Configuration Error for DHT22 on AVR32UC with Zephyr OS
@Dark AI Earlier, I added the pinmux settings and ensured they were included in the board's DTS file. The updated configuration looked like this:
&pio {
pinmux_dht22: pinmux_dht22 {
pins = <AVR32_PIN_PB02 GPIO_FUNC>;
};
};

&gpio0 {
status = "okay";
dht22_pin: dht22_pin {
gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
};
};
&pio {
pinmux_dht22: pinmux_dht22 {
pins = <AVR32_PIN_PB02 GPIO_FUNC>;
};
};

&gpio0 {
status = "okay";
dht22_pin: dht22_pin {
gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
};
};
Despite these changes, I’m still encountering the same error when configuring the GPIO pin.
5 replies