Charging characteristics of XIAO_nRF52840 and XIAO_ESP32C3

If you can show me your “stuck” sketch, I can try it out on my XIAO.
I have a feeling that Serial.print() has something to do with it. Is there “while(!Serial);”.