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

POF with s132_nrf52_2.0.0_softdevice ?

Could anyone confirm POF warning working stable on s132_nrf52_2.0.0_softdevice ?

Parents Reply
  • Hi, I am successfully flash S132v2.0.1 and could confirm NRF_EVT_POWER_FAILURE_WARNING is generated well

    err_code = sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);
    APP_ERROR_CHECK(err_code);
    err_code = sd_power_pof_enable(1);
    APP_ERROR_CHECK(err_code);
    err_code = sd_power_pof_threshold_set(NRF_POWER_THRESHOLD_V27);
    APP_ERROR_CHECK(err_code);

    But I have the next problem after few warnings I got next one sequence: 

    pstorage LOAD callback received

    sys_evt 2

    pstorage UPDATE ERROR callback received

    sys_evt = 3 (NRF_EVT_FLASH_OPERATION_ERROR)

    and all my flash content go corrupt with random values, what you can suggest, how to debug this case ?
    I think problem with properly dispatch, my is next

    static void sys_evt_dispatch(uint32_t sys_evt)
    {
    	pstorage_sys_event_handler(sys_evt);
    	ble_advertising_on_sys_evt(sys_evt);
    
    	if (sys_evt == NRF_EVT_POWER_FAILURE_WARNING)
    	{
    		UI_DEBUG_LOG("NRF_EVT_POWER_FAILURE_WARNING\r\n");
    	}
        
    }
     

Children
Related