Using the Arduino IDE V 2.1.1 to program fairly simple LED blink sketch to the XIAO SAM D21.
Have two units. One, when connected to the laptop via a male USB A to male USB C cable, is immediately recognized by the IDE and displays in the right hand side of the lower status bar “Seeeduino XIAO on COM5” (Different ports COMx appear at different times.)
The other unit, when plugged into the cable and the Sketch > Upload chosen, compiles the sketch and then returns ’ Upload failure. Failed uploading, no port provided.’ Sure enough, the status bar says “Seeeduino XIAO not connected”
So the Tools menu option is chosen to access the Port option to choose the COM port.
But the Port option is greyed out.
Have tried restarting the Arduino IDE, restarting the computer.
At Getting Started with Seeed Studio XIAO SAMD21 | Seeed Studio Wiki
there is a section that talks about
“Sometimes the Seeed Studio XIAO SAMD21 port may disappear when user programming process fails.
We can solve this problem by the following operation:”
The instructions ‘to short the RST pins in the diagram twice’ were followed carefully several times without any change.
The only explanation that comes to mind is that it is a defect unit. But it is brand new so, unless SEEED Studio is selling untested product, I am stumped.
The IDE is the same, the laptop is the same, the cable is the same, but the outcome is a fatal error with one unit and normal operation with the other.
What am I missing?
Hi there,
And welcome here,
So it is not unusual It’s an IDE issue , sort of well known for some BSP devices. Xiao is one,
You need to select device and comport each and EVERY time, in the case of corrupted upload or code the com port can get lost? Putting the XIAO in Bootloader mode overcomes this and is what the Wiki is describing. (the com port number will change ,FYI)
Typically once a successful upload is achieved, it will return to not needing the bootloader mode to be invoked to upload. It’s a quirk between Arduino IDE and the Adafruit bootloader (default for Xiao)
HTH
GL PJ
Pay attention to the BSP you are using for which demo, If an old demo it may only work with older BSP’s