Hi,
There is a charging schematic for the XIAO BLE that you may find helpful in post #2 of the link below.
“Charging characteristics of XIAO_nRF52840 and XIAO_ESP32C3”
If you can organize what you want to do and ask specific questions, we may be able to offer some advice.