I am using nrf52832, and used mpu 9250. I want to store the data of mpu 9250 in external and internal flash memory. will you help me how to do this?
the odr of sensor is 100Hz.
I am confuse about available library fstorage ,pstorage ,fds.
I am using nrf52832, and used mpu 9250. I want to store the data of mpu 9250 in external and internal flash memory. will you help me how to do this?
the odr of sensor is 100Hz.
I am confuse about available library fstorage ,pstorage ,fds.
How much data are you planning to store. Running at 100 Hz, I assume it's a quaternion consisting of 4 16 bit signed values, thus 8 bytes, thus 800 bytes per second. FDS is more targeted at storing settings, small amounts of data.
For this, I would suggest collecting up 4096 bytes and write an entire flash page. Something like
NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen; nrf_nvmc_page_erase((uint32_t) addr); nrf_nvmc_write_words((uint32_t) addr, (uint32_t*) data, 4096 / sizeof(uint32_t)); NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren;
Please note the address should be the start of a page.
fds can be used for external flash memory?
yes you are correct i want to store quaternion.
Hi,
FDS is only for the internal flash memory. You could probably use it as a basis for a file system to be used on external flash memory as well, but you might not gain much in this case. If all you need is to store the same data sequentially, then you probably don't need a file-system.
Hi,
FDS is only for the internal flash memory. You could probably use it as a basis for a file system to be used on external flash memory as well, but you might not gain much in this case. If all you need is to store the same data sequentially, then you probably don't need a file-system.