This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

pstorage_update returns error 9

After some pstorage_update calls I start to get error 9. From nrf_error.h it is called NRF_ERROR_INVALID_LENGTH but from SDK doc it looks like pstorage_update does not have that error. My data length is 104 bytes and array what I give to pstorage_update has all the 104 bytes. I use S110 V7 and latest SDK.

  • If you follow the code deep enough when pstorage calls sd_flash_write, that can return an invalid length. I didn't follow the code in detail to see if it would bubble that return all the way back up to your code that called pstorage_update, but I imagine it does.

Related