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 ?
If it happens every time you call pstorage_update() then you just need to put a breakpoint there and then step into the code. If you don't know when it happens, you can try adding UART log inside the codefor example.
Most likely the error was thrown from cmd_queue_enqueue(). We need to findout why the queue was full.
If it happens every time you call pstorage_update() then you just need to put a breakpoint there and then step into the code. If you don't know when it happens, you can try adding UART log inside the codefor example.
Most likely the error was thrown from cmd_queue_enqueue(). We need to findout why the queue was full.