Can the serial port search XIAO after uploading the program? Did you try short-circuiting, reset XIAO and try again?