This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

When use app_button lib,the button setting using PULL_UP consumes more current (~20uA) than using PULL_NONE

The button is connected to ground directly ,and without external pull up resistor.

I found it consumes too much current when using internal pull up resistor,but when I use an external resistor,it's the same.

When changing the gpio setting to PULL NONE ,the current is ok,but the button can't work.

Really confused.

  • PCB not cleaned after soldering and now there is a parasitic resistance somewhere?

    Otherwise: Schematic required, maybe even layout.

  • Thanks Turbo J.

    I cleaned the board.

    I looks like my code's bug. It worked good before.I don't know what I changed ,

  • I measured the volt of the ,it's about 0.4v lower than the vdd ,the current is flow through the pullup resistor.

  • Looks like the pin has been damaged,Other pins  work good.

    And I another board is OK too.So I wonder to know what happened to this pin.Is ESD broke it.