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

SOFTDEVICE_HANDLER_APPSH_INIT + pstorage

ble_senso4s_v_0_7_poenostavljena4_1 power_manager.rarHi

I read a lot about p_storage library and I tested it and works great if I use SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL). On the other hand, If SOFTDEVICE_HANDLER_APPSH_INIT function is used for starting softdevice then the program stucks in while loop where the power_manage() function is located. I will be appreciated for any kind of information why this event happened and what is the reason for this.

best regards

Mike

Parents
  • Hi,

    1. What kind of timers are you using? The app_timer library? With scheduler?
    2. Can you confirm that your code is actually looping in this standard power_manage function

    :

    static void power_manage(void)
    {
        uint32_t err_code = sd_app_evt_wait();
        APP_ERROR_CHECK(err_code);
    }
    

    And that no other code is executed? If this is an issue with interrupt priorities and the softdevice it seems strange that you don't get hard faults.

Reply
  • Hi,

    1. What kind of timers are you using? The app_timer library? With scheduler?
    2. Can you confirm that your code is actually looping in this standard power_manage function

    :

    static void power_manage(void)
    {
        uint32_t err_code = sd_app_evt_wait();
        APP_ERROR_CHECK(err_code);
    }
    

    And that no other code is executed? If this is an issue with interrupt priorities and the softdevice it seems strange that you don't get hard faults.

Children
No Data
Related