Wrong connection etc. If your device becomes invisible on your computer and you see a green LED on your device, it means that your device is bricked.
You need a programmer to recover your device from this situation. however, if you have another xiao or a pi pico, you can use these devices as a programmer.
Check this thread to use another xiao as a daplink device.
How to unbrick a dead XIAO using a XIAO(DAPLink) and OpenOCD
Thx to msfujino for great work.
If you have a pi pico and want to use it as a daplink device follow the steps below.
-
Make sure you have Arduino IDE and Pico Setup installed on your computer.
-
Download the file in the link below and extract it to C:/
XIAO_BootloaderRescueTool_DAPLink
*Everything you need is in this zip
-
Connect Pico to your computer by pressing the bootsel button.Transfer the UF2 file named freedap_DAPlink_rp2040 in the extracted folder to Pico.
Now you can use Pico as a daplink device. -
Connect Xiao’s VCC pin to Pico’s VBUS pin, GND pin to Pico’s GND pin, SWCLK pin to Pico’s GP11 pin, SWDIO pin to Pico’s GP12 pin.
Connect the Pico to your computer.
To see the location of Xiao’s SWCLK and SWDIO pins >> pinouts.png -
If the green LEDs of both devices are on, run the flash.bat file. Script will run and and the bootloader will be written.
*If the command prompt does not detect your username correctly open the flash.bat file in the extracted folder to edit it. Replace “%USERNAME%”’ with your username and save it.
—Everything is OK when you see the screen here >> reco_ok.jpeg
** If your computer doesn’t see both devices when the process is finished, restart your computer and connect Xiao.
** If the same problem persists, delete COM Ports from device manager and reconnect devices.
Have a good day…