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
  • I added the program to my first post, in which I implemented a similar situation which happened in my original code. I use one time called m_mass_battery_timer_id and it is executed 2500ms after power on. When the timer is executed four bytes are stored in flash but the program does not pass through the while loop where the power_manage() is located. If I replace power_manage() function with app_sched_execute() then the program works fine. the program is located in the pca 10028 file. I will be very pleased with any feedback.

Reply
  • I added the program to my first post, in which I implemented a similar situation which happened in my original code. I use one time called m_mass_battery_timer_id and it is executed 2500ms after power on. When the timer is executed four bytes are stored in flash but the program does not pass through the while loop where the power_manage() is located. If I replace power_manage() function with app_sched_execute() then the program works fine. the program is located in the pca 10028 file. I will be very pleased with any feedback.

Children
No Data
Related