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

Change VDDH POF threshold when softdevice is enabled

I would like to measure the VDDH voltage (lithium ion battery) on a nrf52840 with the power fail comparator. If the voltage drops below the threshold, I want to reduce the threshold until I know the voltage.

The SDK says that an NRF_ERROR_INVALID_STATE is returned when the POF is initialized (with nrf_drv_power_pof_init) when SD is enabled.

Is there a way to change the threshold while a softdevice is running? Is there anything else I can do?

Of course I could measure the voltage as described in this thread, but I would like to reduce the amount of components on my board.

Related