Mistake on this page?
Report an issue in GitHub or email us

Getting your program on your board

The Arm Mbed Online Compiler builds a file that can run on your board. All you need to do is:

  1. Select the correct board.
  2. Compile the code and download the compiled file.
  3. Copy the file to your board.

Selecting your board

Mbed programs can be built to run on multiple boards. The hard work is done behind the scenes by Arm Mbed OS itself. All you need to do is tell the Mbed Online Compiler which board you're building for.

To select a board as the build target:

  1. The compiler shows the current build board's name on the upper right corner:

    Showing current board. Click the board to open the full list

  2. Click the name of the board you need:

    Click a board to set it as the compilation board

    If the board isn't already on your list, go to the board's page on mbed.com and click the Add to your mbed Compiler button:

    Adding a board to the Mbed Online Compiler list

Compiling and downloading

The Compile menu offers five options:

  1. Compile: builds code that you have modified since your last compile and downloads the resulting binary file.
  2. Compile All: same as compile, but rebuilds all source code, even if it hasn't changed since the last compile.
  3. Build Only: compiles your code but doesn't download the result.
  4. Compile Macros: defines additional macros at compile time.
  5. Update Docs: adds documentation.

Copying the file to the board

Note: If you're working on Windows, you might need to install a driver to allow you to copy to your board. Please see the Windows Serial Driver section.

Your board should appear on your computer as removable storage. To run your program on the board, simply drag and drop the file you downloaded in the previous section.

The device appears as removable storage, under the name MBED

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.