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

sd_power_gpregret_set doesn't work??!!

Hi,

I am trying to set a value in the NRF_POWER->GPREGRET when softdevice is running, but it doesn't work. I don't get any error, but the value is always 3 and not 1 like I would.

Here is my code :

			
uint32_t gprepret_value;			
uint32_t err_code;
			
err_code = sd_power_gpregret_set(1);		
APP_ERROR_CHECK(err_code); 
			
err_code = sd_power_gpregret_get(&gprepret_value); //Always 3
APP_ERROR_CHECK(err_code);

Am I missing something?

Related