Hello.
This function from Zigbee SDK 4.0.0 changes configuration of already configured input pin by calling nrf_gpio_cfg_default(ERASE_PIN);
The leds_buttons_init()
function in main()
configures the GPIO pin for user button, but a subsequent call to the zigbee_erase_persistent_storage()
function returns the default configuration, so the button does not work as expected.
This behavior is present at least in the zigbee/light_control/light_bulb
example for the pca10059 board, but I have a suspicion that this works the same way in other examples.