XIAO MG24 deepSleep wake failure after Serial.begin

I prefer your cycle counter code, thanks.

Does the CMSIS-DAP do anything over SWD when powered up over USB ? This could potentially be a cause of this issue.