Hi,
I use nRF52805 chip for BLE tag.
FACTOR_MODE pin will be used for production stage.
At F/W start point, F/W reads FACTORY_MODE pin, if the pin is high, F/W will enter factory setting mode,
If zero, F/W works service application.
I read this FACTORY_MODE pint as follows:
int check_factory_mode (void) { nrf_gpio_cfg_input (FACTORY_MODE_PORT, NRF_GPIO_PIN_NOPULL); if (nrf_gpio_pin_read (FACTORY_MODE_PORT) == 1) { return 1; } return 0; }
H/W design is as picture bellow. Normally, J13 is open. When J13 is closed, F/W will enter factory settng mode.
P0.18 is set pull-down by 10K.
But, While J13 is open, J13:1 pin is measure 'high' by multi-meter.
I set this pin(P0.18) input pin with NOPULL.
But, high is measure on P0.18.
F/W reads this pin as high also.
What is the problem?
BR
Paul