title: Logging Data to Onboard Flash Memory of Seeed XIAO BLE Sense
body: <p>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.</p>
  <p>I've looked at the <a href="https://github.com/khoih-prog/FS_Nano33BLE#why-do-we-need-this-FS_Nano33BLE-library" rel="nofollow noreferrer">FS_nano33BLE library</a>, 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.</p>
  <p>Any guidance would be greatly appreciated!</p>