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

saadc sample cant use with sd_power_system_off()

When I use saadc to sample battery's power,the software restart ceaselessly.I use the steps as following:

1.void saadc_init(void).

2.void saadc_callback(nrf_drv_saadc_evt_t const * p_event).read the sample value.

3.use nrf_drv_saadc_sample() in bsp_event_handler function. When button has pushed,saadc sample.

If I comment out saadc,software can go to sleep with sd_power_system_off().If do this ,device cant sample battery.

If I comment out sd_power_system_off(),software can work with saadc,but cant sleep.

So I don't know how to use saadc to sample and device can sleep not restart ceaselessly

Related