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 ?
I think you need to step into the code to check why it return NO_MEM, where exactly the code returned. Do you have that on the first time you call pstorage_update() or it's after a while ?
I think you need to step into the code to check why it return NO_MEM, where exactly the code returned. Do you have that on the first time you call pstorage_update() or it's after a while ?