I have used pstorage before but when I add scheduler to my project I face an error in update function of pstorage that in debug I found error_code : NRF_ERROR_NO_MEM . any idea of what happened??
I have used pstorage before but when I add scheduler to my project I face an error in update function of pstorage that in debug I found error_code : NRF_ERROR_NO_MEM . any idea of what happened??
Have you made sure you added app_sched_execute() in the main loop ? pstorage_update() return NRF_ERROR_NO_MEM if the pstorage buffer is full. Could you check pstorage_sys_event_handler is called inside sys_evt_dispatch() ?
Could you check what is the value of PSTORAGE_CMD_QUEUE_SIZE in pstorage_platform ?
Hi Hung yes, app_sched_execute() is in main loop. pstorage_sys_event_handler() not called when error occurred but when I comment pstorage functions from my project code works correctly without any error. The value of PSTORAGE_CMD_QUEUE_SIZE is 10.
Hi Hung yes, app_sched_execute() is in main loop. pstorage_sys_event_handler() not called when error occurred but when I comment pstorage functions from my project code works correctly without any error. The value of PSTORAGE_CMD_QUEUE_SIZE is 10.