I ran in to the same problem, and to me it appears to be baud rate related. I can program at 9600 baud over and over again, but the symptom occurs repeatedly when I try to program the XIAO at a higher baud rate. This occurred on 2 different modules. Now I will try increasing speed slowly instead of jumping immediately to 115200 baud and see how fast I can reliably program the XIAO with my setup.
I ran in to the same problem
-baud rate is 9600
-default drivers from Microsoft in Windows10
-uninstalled all ghost COM ports
-USB Intel ICH9
-Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: âSeeeduino XIAO, Arduino, Offâ
BN: Seeeduino XIAO VID: 2886 PID: 802F SN: 461E97315053574C342E3120FF0C021B
I see a lot of similar serial ports on your computer that might interfere with downloading. @MichaelZP
on another computer this Seeeduino XIAO is programmable
I have two Raspberrypiâs that are 3B and tried this from this page: How to unbrick a dead xiao using raspberry pi [ GUIDE ][openocd]
and it didnât work. When the first one didnât work, thought it might be dead, so I tried it with a known good oneâŚnow I have two bricks. Wondering it the openocd software changed from when did it and broke it?
I actually did and was able to bring one of them back. I still have a dead one. I think it is really dead.
@tannenba Oh. Maybe you could try one last method for the dead XIAO you have, which is to enter the bootloader mode or to reset it.
Best Regards,
Lakshantha
Tried that, no go itâs dead. Thanks for the suggestion.
Just got one of the Seeeduino developemnet boards and it has pogo connectors for the 4 pins on the bottom. Works great with the ST-Link.
Got the same problem, after few days flashing without bigger problems, now is freezed,
Blue and greeb led constant on, amber quick flash 3 times, try to reset it or reloaded number of times.
Still unable to upload any sketch even empty. there is comunication with it, you can check board info, serial etc. but no chance to upload any data.
After numbers of try got it working, with double tap reset, then change com port in arduino and reload sketch
You are likely using Windows
If you are having any of these issues
**Uploads forever then fails *
**Upload bar disappears **
*Wonât compile even though there are no errors
*XIAO does not receive reset signal
*If you have a program that has ran in the past but when you try to upload it now your Seeeduino acts like it dont want to accept that shit and the ide shoots out a weird ass compiling/upload message that you cant understand
*other COM issues
PLEASE TRY THIS PROCEDURE
1. Go to Arduino IDE app settings and this can be done by right clicking the arduino app in start menu or whatever directory it is located on your computer.
2.There will be 3 options, you will use all of them.1 Terminate, 2 Repair, then 3 Reset; none of these will delete your precious data .
3. Restart your computer and then bring the Arduino IDE up if you donât get the common message that your libraries have been updated select manage libraries through the tools tab (this will update your list of libraries automatically) donât expect it to pop up right away, just be patient (you donât really have to do much after this) soon you will see a sluggish loading bar at the bottom of you library manager that will fill to 100%. After that process is finished, you should restart the IDE and try to compile and upload your program assuming you are on the correct COM and you have already did the prerequisites for Seeeduino XIAO setup.
Your program should upload successfully, you are welcome !
I am having more or less the same problem @Seeed. May be a fix of the firmware or so is in order⌠They brick very easy nowâŚ
Firstly let me say I am a firmware engineer of 20+ years. My initial impressions of trying to flash the XIAO are not good, I have no problems flashing other microcontrollers using Arduino Studio. The XIAO came preprogrammed with the 1 second blink sketch (solid green LED and 1Hz flashing yellow LED). I modified the sketch to blink at 5 seconds and tried to upload it, it compiled slowly and then sat there for about 5 minutes saying âuploadingâŚâ and then failed giving me the message
Arduino: 1.8.13 (Windows 10), Board: âSeeeduino XIAO, Arduino, Offâ
Sketch uses 34108 bytes (13%) of program storage space. Maximum is 262144 bytes.
An error occurred while uploading the sketch
I checked my COM ports and all was good. It was shown in Windows 10 to be on COM14. After verifying ports, I swapped COM ports and swapped out cables. An hour later nothing. It really shouldnât be that hard.
I read a post and double tapped the RST and immediately noticed my COM14 port disappear and COM15 appeared. The green LED was still solid but the yellow LED faded in and out. I tried to flash it again and it seemed to have flashed correctly. My COM15 port vanished an COM14 port came back? this is not what I have seen online, people just seem to plug it in and flash it without double resetting and messing with COM ports.
I thought this was bootload mode not download mode?
Just to let people know I fixed my own issue by installing the Circuit Python bootloader.
Does that bootloader handle Arduino type uploads too? Iâm not interested in Python but the uploading problems on this device are absolutely infuriating. Clearly some timing issue as sometimes the 1st upload fails, other times the 3rd sometimes the 4th and then the 1st again. Happens with every single one of the three I purchased. The reset workaround is entirely too tedious for iteratively uploading.
Using Mac OSX Big Sur and PlatformIO with VS Code.
Hi,
Thought I would update on my issues with this from August 2020!! I built a brand new PC. Windows 10 latest patch levels as of today.
I can consistently upload sketches to my XIAO but I have to follow this slightly painful procedure:
- Fresh boot, plug in my XIAO and check Device Manager to see it on COM3.
- Turn on hidden devices in Device Manager.
- Run the IDE (1.8.18) with my sketch and upload and it works fine, I see the XIAO flip to COM4, upload the sketch and then flip back to COM3.
- From that point I cannot upload again - it just hangs although I think it still times out eventually (I donât wait any more).
- If I do any work or test compile BEFORE trying to upload it generally doesnât work. So I get into a loop of upload, testing, fix stuff, reboot, uploadâŚ
So nowâŚ
- Disconnect the XIAO and Uninstall the two hidden COM3/4 devices.
- Close everything else down (IDE and Device Manager) and restart Windows then, most of the time, the above is repeatable.
- Occasionally, and I usually treat this as time to have a break, even a restart doesnât work and I have to shutdown and power off for a few mins.
The USB driver which Device Manager reports is an MS one from 21/6/2006 - 10.0.19041.1202 I have tried upgrading to one from the IDE folders but Windows just tells me that the MS one is the best.
I donât particularly want to stop using the Arduino IDE as Iâm used to it. I did try the new V2 one but canât get it to work at all yet, maybe it needs a fresh install of everything.
If anyone has any more hints then that would be great. One possibility might be to update the bootloader on my XIAO but Iâve yet to find a way (with the kit I have) that allows me to do that.
Thanks
Slight updateâŚ
I can, sometimes, upload without a re-boot. If I disconnect the XIAO and delete the hidden COM devices then reconnect AND COM3 appears then sometimes just re-starting the IDE works OK. Also, if that doesnât work first time then re-starting the IDE a second time (with nothing done to the XIAO) allows it to work.
I know for sure if, after an upload, the XIAO does not re-appear on COM3 - ie COM3 & 4 just remain as hidden - then I have to re-boot.
From this I think the IDE is having some effect on this - some interaction with the device driver which eventually prevents the upload without a re-boot.
Thanks