I am planning to record some information in the flash of the nRF51822. This will occupy a large circular buffer (quite a few kb), and new data (in chunks of around a dozen bytes) will eventually overwrite old (when the buffer is full).
Since I am using firmware with the pstorage module, how should I use pstorage in this implementation?
Should I use several application handles for the one buffer and make each of them 1024 bytes so that I can erase a single page when circling round rather than the whole buffer, or is there a simpler way?
Would it be safe to just call sd_flash_page_erase and sd_flash_write directly from my code? (I assume these functions wait for a gap in radio transmission and only return after completion)