...
The driver RAM requirement depends on flash parameters such as block size and run-time configurations such as sector size. For a particular instance, a general formula can give an approximate:
where
secs_per_blk
The number of sectors per block.
...