Hi Phillipp_W,
I am writing to the QSPI Flash using “System_ON_Sleep” and RTC interrupt wakeup instead of “deep sleep”. Maybe the sketch in the following link is helpful.
‘XIAO_BLE wakes up from System_ON_Sleep and Writes weather data to on-board Flash’