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

How to do pstorage operations in app_timer event handler?

I want to write pstorage functions in app_timer event handler. The reason is that, I want to poll certain events using the app_timer. This things I cannot do in main thread since it has some blocking codes that cannot be avoided. If i execute pstorage operations in app_timer it will freeze. I know I can use the sheduler to take the interrupt context to main context. But then I have to execute app_sched_execute() from the main context. That is not possible in my application since it has some necessary blocking code, so it will delay the process. Can you suggest any solution for my problem. I am using nrf51822 , softedevice 7.3 sdk 6

Related