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

5.0.0.34603 pstorage RAM usage

The new pstorage abstraction is almost using 1K RAM, which I'd actually planned to use for something else :-)

Is it possible to limit the RAM used by this module. Can I go back to the old method, or can I use the "RAW" mode of the pstorage module to limit the impact on RAM - are there other options, and would you highly recommend not to go back?

Parents
  • You can consider reducing the queue size. Since the actual operations are done asynchronously, the module will queue them, and do them as soon as possible. If you don't do a lot of operations in a row, you can possibly try to reduce this queue size. This queue size is set in pstorage_pl.h, included by all applications using pstorage.

    If you set it too small, you will most likely start to see NRF_ERROR_NO_MEM errors when doing flash operations.

Reply
  • You can consider reducing the queue size. Since the actual operations are done asynchronously, the module will queue them, and do them as soon as possible. If you don't do a lot of operations in a row, you can possibly try to reduce this queue size. This queue size is set in pstorage_pl.h, included by all applications using pstorage.

    If you set it too small, you will most likely start to see NRF_ERROR_NO_MEM errors when doing flash operations.

Children
No Data
Related