GPIO input pin leaking current

Hello, 

I have a GPIO button pin that is leaking current, By assumption would be that the internal pull down is set, however it is not. Anything I can look into?

retVal = gpio_pin_configure_dt(&dt_btn, GPIO_INPUT);
        if (0 != retVal) {
            LOG_ERR("failed to configure %s pin %d, err code %d",dt_btn.port->name, dt_btn.pin, retVal);
            break;
        }
        
        
DTS

 buttons
    {
        compatible = "gpio-keys";

        button0: button_0
        {
            gpios = <&gpio0 6 (GPIO_ACTIVE_LOW)>;
            label = "Push button switch 0";
        };
    };       
        

schematic below:

Parents Reply Children
Related