XIAO_BLE wakes up from System_ON_Sleep and Writes weather data to on-board Flash

Are you testing with an external flash module? What is the status of WP pin (should be high to disable write protect) when you issue the commands?