Hi. I need to use some of the flash on the nRF9160 for non-volatile storage. But I want to do it in a very specific way to save on RAM usage.
Essentially I want to be able to define a character array like;
const char configInformation[32768];
I want to be able to use flash functions to erase and write the data block
flash_erase( device, configInformation);
offset = 0;
loop until configInformation done
flash_write( device, &configInformation[offset], newData, sizeof(newData) );
offset += sizeof(newData)
(please excuse the pseudo code, I'm just trying to get a concept accross)
Then I'd like to be able to access configInformation in a bytewise fashion without using a read function to stuff pieces of it into a RAM buffer.
I'm reading through the flash driver or the non-volatile storage subsystems and they don't seem to provide this functionality. Is there a way to do this?
Thankss