In out project we have a nRF9160 connected through UART to a nRF52840 that's used for low power beaconing.
In order to configure the advertisement data on the nrf52840 we need to power cycle it, so it will listen on the UART for commands before shutting it down to go low power.
The power cycling can't be done reliably without re-configuring as OUTPUT the nRF9160 TX pin that would otherwise back power the nRF52840, which causes the nRF52840 to keep running until a beacon event happens.
The problem we are seeing is that after configuring the UART TX pin on the nRF9160 as OUTPUT the device will no be low power anymore. Setting (again) the UART device to LOW_POWER state doesn't have an effect anymore.
The sequence of events is:
- set UART device to LOW POWER state
- configure TX pin as OUTPUT with PULLDOWN resistor
- drive TX pin LOW
- configure the TX pin as DISCONNECTED
- set again UART device to LOW POWER (doesn't seem to have any effect)
Is there any know issue about configuring the UART pins as GPIOs that wouldn't allow the UART driver to get to the low power state?