Hi NotBlaine
I tried uploading your code to my XIAO. I don’t know the cause, but my XIAO has become a brick as well.
When I checked this flash memory using ST-Link, the beginning address “0x00-0xff” of bootloader was overwritten with data “0xff”. Unfortunately you have no choice but to rewrite bootloader. Please refer to the following for how to write bootloader. Once rewritten, bootloader area will be protected, so I don’t think same trouble will occur again.