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

can I count number of flash access command according to the amount of rquested flash data?

I want to store the max possible data on flash using pstorage, but I noticed that I have to increase the number of Maximum number of flash access commands PSTORAGE_CMD_QUEUE_SIZE to make it work (the following configuration didn't work with PSTORAGE_CMD_QUEUE_SIZE= 10). I noticed from the map file that psorage take 620 byte on RAM with PSTORAGE_CMD_QUEUE_SIZE = 30

param.block_size = 512;
param.block_count = 10;
param.cb = flash_callback_handler;

what's exactly the meaning of Maximum number of flash access commands that can be maintained by the module for all applications (why an access command is stored in RAM), and can I calculate this number according to my configuration above to reduce RAM allocation?