6.200 Arduino/RP2040 Install Instructions

You are not logged in.

Please Log In for full access to the web site.
Note that this link will take you to an external site (https://shimmer.mit.edu) to authenticate, and then you will be redirected back to this page.

Several assignments in 6.200 (both in the lab and as part of the homeworks) will involve using a microcontroller called a XIAO RP2040, which we'll program using the Arduino IDE. This page will talk through the process of installing the Arduino IDE and using it to flash code to the XIAO RP2040. The steps vary a little bit depending on your particular setup (what operating system you're using, etc), but we'll outline them here.

Regardless of your choice of operating system, there are quite a few steps to follow, so please do them carefully and in order.

  1. Install Arduino (if you already have it from, e.g., 6.310, you can probably skip this step)

  2. Add the RP2040 boards to Arduino

    Open up Arduino, and open the preferences window ("File -> Preferences" from the top menu in Windows or Linux, or "Arduino IDE -> Settings" on MacOS). Find the box labeled "Additional boards manager URLs" and paste the following into that box:

    https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
    

    Then click the "boards manager" icon from the left side (it's one of the little grey icons on the left, hover over them until you find the right one) and search for "XIAO RP2040" in the menu that pops up. You should get a result there with a package made by Earle F. Philhower, III, and a greenish button that says "Install." Click that button and wait for it to finish.

  3. GNU/Linux Only: udev Rules

    If you are on GNU/Linux, you will likely want to set up some udev rules to allow your computer to recognize the RP2040 over USB and grant permissions to write to it. You can download the appropriate udev file here, or the following command should put it in the proper place and set it up:

    (wget -O - http://circuits.mit.edu/software/99-rp2040.rules \
        | sudo tee /etc/udev/rules.d/99-rp2040.rules) \
    && sudo udevadm control --reload-rules \
    && sudo udevadm trigger
    

    Note that you'll also need to unplug and replug the RP2040 after running this command.

  4. Select the board in Arduino Before flashing code to the XIAO RP2040, you need to select the board in the Arduino IDE:

    • Under Tools -> Board -> Raspberry Pi Pico/RP2040/RP2350 select Seed XIAO RP2040.
    • Then under Tools -> Port, select the port where the microcontroller is plugged in.