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

Looks like app_uart_close() disables digital input

Hi,

It looks like we're experiencing an issue with uart's and digital inputs on an "S132 SoftDevice". Both an UART and digital inputs are used. The UART is initialized using "app_uart_init(...)" and deinitialized using "app_uart_close()". Initialization is done when the UART is needed and deinit is done at times where power needs to be conserved.

Digital inputs are initialized using  "nrf_gpio_cfg_input(..., GPIO_PIN_CNF_PULL_Disabled)" and read using "nrf_gpio_pin_read(...)".

The problem we're experiencing seems to be that reading digital outputs are also disabled while the UART is disabled. So after running "app_uart_close()" a digital input can not be read using "nrf_gpio_pin_read(...)" any more. When the UART is enabled again using "app_uart_init(...)" it looks like "nrf_gpio_pin_read(...)" works again.

Related