Why 'pwm_set_dt(xxx, 0)' can not set gpio floating on NCS SDK 3.0.2 ?

For power cost down, use dts config  to set pwm gpio H0D1 as follow:

pwm1_default: pwm1_default {
group1 {
psels = <NRF_PSEL(PWM_OUT1, 0, 26)>;
nordic,drive-mode = <NRF_DRIVE_H0D1>;
};
};

1. When on NCS 2.4.1,  pwm func 'pwm_set_dt(xxx, 0)' can set gpio floating

2. When on NCS 3.0.2, 'pwm_set_dt(xxx, 0)' can NOT set gpio floating, because current get up 50 uA !

How can I use  'pwm_set_dt(xxx, 0)' set pwm gpio floating ?  and get current cost down?

Parents Reply
  • Hi Hakon,

    I 've got the point:  if replace "i2c1" to "i2c0  in overlay file, then the issue dispeared.  I mean that using i2c1 and P0.03/P0.04 may have some bugs in ncs 3.0.2, if you are not sure, you can try i2c1 and P0.03/P0.04 to confirm if it can work, as:

    &pinctrl {
        i2c1_default: i2c1_default {  //use i2c1, and P0.03/P0.04
            group1 {
            psels = <NRF_PSEL(TWIM_SDA, 0, 4)>,
            <NRF_PSEL(TWIM_SCL, 0, 3)>;
            bias-pull-up;
            };
        };
    };

    I want to know why i2c1 and P0.03/P0.04 cannot work together.

Children
Related