I have tried 3 different xiao’s and all three programmed a sketch 2 or 3 times and then BRICKED on the following tries, they are not recognized by the USB any longer. I have tried them on multiple different computers both win7 and win10 and they are not recognized now.
I searched and found this thread and I have tried the steps you list. I have tried this on ST link and raspberrypi 4 the raspberry pi4 would error with different messages which i did not record.
i have followed the above directions for openocd on windows 7 exactly and I cannot get it to work. I am getting an error message when trying to program. please see pic below for error message.
below pic are the two programs i am using.
source [find interface/stlink.cfg]
transport select hla_swd
set CHIPNAME at91samd21g18
source [find target/XIAO_at91samdXX.cfg]
# did not yet manage to make a working setup using srst
#reset_config srst_only
reset_config srst_nogate
#reset_config trst_only
adapter_nsrst_delay 100
adapter_nsrst_assert_width 100
init
targets
reset halt
at91samd bootloader 0
program bootloader-XIAO_m0-v3.7.0-33-g90ff611-dirty.bin verify
at91samd bootloader 8192
reset
shutdown