Now Supports Seeeduino Xiao M0



  • Seeeduino XIAO still carries the powerful CPU-ARM Cortex-M0+ (SAMD21G18) which is a low-power Arduino microcontroller. On the other hand, this little board has good performance in processing but needs less power. The interfaces of Seeeduino XIAO is rich enough in such a tiny Dev. Seeeduino Xiao VS Arduino Nano.
  • The Seeeduino XIAO Arduino Microcontroller - SAMD21 Cortex M0+ is the smallest member of the Seeeduino family. Seeeduino XIAO is the smallest Arduino compatible board in Seeeduino Family. It is an Arduino microcontroller that is embedded with the SAMD21 microchip. The interfaces of Seeeduino XIAO is rich enough in such a tiny Dev.
editSeeeduinoNow Supports Seeeduino Xiao M0

PlatformIO now supports the Seeeduino XIAO. Some, including myself, prefer PlatformIO to the Arduino IDE. New users of PlatformIO or those that are curious about that programming environment may want to consult a short post on how to program the XIAO in that environment: 'Hello XIAO' in PlatformIO.

This is the Wiki Tutorial of how to use DAP link (OpenOCD) to flash the Arduino Bootloader into Arduino Boards. If your Arduino Board's bootloader is interrupted, you can use this guide to re-flash the bootloader back.

Preparations¶

  1. First thing first, you must follow the How to use Arduino Borads as DAPLink Device first to turn one of your SAMD boards to DAP-Link Device. Once you have configured and uploaded the daplink Arduino ino program, you can come back to this wiki tutorial.

  2. Connect the Target Hardware with the DAP Link Device(SAMD Board) according to the Pin configurations.

    • SWO > SWO
    • CLK > CLK
    • GND > GND

It may look something like this where the Seeeduino XIAO is the DAP Link deivce and Seeeduino Cortex M0+ is the Target.

Get Started¶

In this example, Seeeduino XIAO is acted as a DAPLink device and used to flash the Arduino Bootloader for Seeeduino Lotus Cortex M0+.

  • Navigate to the root location of the Arduino Board Library Path in Terminal and find the OpenOCD path within the path. It may look something like this:
  • Run the OpenOCD with specific scripts:

Note: You may need to change ansonhe to your username or adjust to your correct path.

If everything goes well, you should see something like this as followed:

Now the server it's up and running!

  • Leave the previous terminal and open a new terminal. Also navigate to the root location of Arduino Board path. Then navigate to the arm-gcc path:
  • Under this path, you can run the following:
  • Once within the gdb, connect with target using:
  • Load the Arduino Bootloader from the Arduino Board library root path:
Supports

You may also find the bootloader for Seeed SAMD boards here: https://github.com/Seeed-Studio/ArduinoCore-samd/tree/master/bootloaders

Note: You may need to change ansonhe to your username or adjust to your correct path.

  • Flash the bootloader to the target:
  • Reset the target device by pressing reset buttons and you should see that COM appeared. Now the Arduino Bootloader is flashed to Seeeduino Lotus Cortex M0+ using Seeeduino XIAO as DAPLink Device!
Xiao

Seeeduino Xiao Current Draw

Tech Support¶

Now Supports Seeeduino Xiao M0 Shi

Please submit any technical issue into our forum.