Hi, I'm using the BC805M EK (nRF52805). I would like to pull up pin 20. Here is my configuration in pca10040.h. However, pin20 cannot be pulled up. It's always pulled down.
#define BUTTONS_NUMBER 1
#define BUTTON_START 20
#define BUTTON_1 20
#define BUTTON_STOP 20
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP
#define BUTTONS_ACTIVE_STATE 0
#define BUTTONS_LIST { BUTTON_1 }
#define BSP_BUTTON_0 BUTTON_1
If I delete all codes in the main loop, pin 20 is pulled up to 1.65V. Why 1.65V, not 3.3V, please?
If I keep all other codes in the main loop (includes SAADC with PPI interruption, TWI, UART, BLE), pin 20 is always pulled down (0V). So I guess some of my codes force to pull down the pin20 (button). None of SAADC/TWI uses pin20.

If l disabled the reset pin 21, pin 21 can be pulled up successfully.
Does anyone know the issue, please?
Thank you!