Hi guys,
I am using Zephyr with a Seeed Studio Xiao BLE Sense board to log data to the onboard QSPI flash with the help of FAT filesystem. I am using the USB Mass Storage Class to then transfer those logs to my computer.
When it is powered with a USB cable hooked to my computer everything works fine, however when it is powered through the pads on the bottom of the board (either with a battery or with a stable 3.6V supply), data sometimes gets corrupted: some blocks of 256 bytes of data (aka the size of a flash page) are written as 0xFF instead of my own data. Corrupted blocks happen a little randomly, but they seem to always be page-aligned.
Do you have an idea of what could be causing this ?
Thanks in advance for your help