In my application I need to use the whole flash memory available (128 KB of the nRF51422 QFAC). My data is first stored on a 2KB buffer and once the buffer is full, data is compressed to another buffer and then saved to nvram. Depending on my data, compression might work very well of very poor (5 to 50% compression). I will know the size after compression, but then it won't be page aligned anymore and setting a small block-size would make me call the register command a lot.
Is this case, how can I register blocks so I don't lose any space on my flash?
Can I register the whole 128KB space for use and write on offsets? How page alignment applies in this context?
Thanks in advance