Any good way to update the program on XIAO module without Aruidno IDE?

I got my XIAO module working well, and wanted to send to my customers, but i don't expect them to be arduino programmers, so i need to find a way to update the firmware on XIAO via USB port.

Thanks for any pointer!

Perhaps you could write a script that uses the command line interface?

Hi @xc2947

One way is to use the Bossa application that allows a binary file to be uploaded directly over native USB using the board's bootloader. However, his requires the user to download and run the Bossa application, which also means providing detailed step-by-step instructions.

However, a really nice way of getting your customers to upload new updates to their SAMD21 boards is to use the Adafruit UF2 bootloader. This bootloader appears as an additional drive on your host computer, just like a memory stick.

If you convert your compiled binary (.bin) file over to UF2 (.uf2) format (using a conversion executable file), it's possible to simply drag and drop the UF2 file on to the board's drive and the code automatically gets uploaded. In this case, all you have to do is distribute the UF2 file and tell your customer to plug in their board's USB cable and drag and drop the file.

The downside is that you'd need to reprogram your Xiao boards' bootloader via microcontroller's SWD port using a suitable programmer such as the Atmel-ICE (cheaper alternatives are available). On the Xiao it looks like the SWD data and lock lines are broken out on to four tiny test pads, which are quite awkward use.

thank you both!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.