I am trying to log data to the flash memory of a Seeed Xiao BLE Sense microcontroller (which uses the nRF52840 processor). The data to be stored will be binary on/off corresponding to the state of a switch at given intervals. I'd prefer to use the onboard flash instead of an SD card to minimize footprint and power consumption.
I've looked at the FS_nano33BLE library, which was created for an Arduino board using the same processor, but I'm not clear on how to implement it, or if it will even work. This library also limits the storage to 512KB, but the XIAO has 2MB onboard memory, plus 1MB on-chip memory.
Any guidance would be greatly appreciated!