The mbed Compiler is an online application used to create your own programs for the mbed microcontroller. It translates program source code that you write in to a program binary that the Microcontroller can execute.
The following instructions demonstrate how to generate the Program Binary used in the Microcontroller Getting Started example.
Open the online compiler using the link in the site menu (top-right of the page). This will open the Compiler in a new tab or window, so you can move back and forth to continue to read these instructions.



To create a new program in your personal Program Workspace:
Your new program folder will be created under "My Programs".
Click on the "main.cpp" file in your new program to open it in the file editor window. This is the main source code file in your program, and by default contains a simple program already. The code should look like:
The other item in the program folder is the "mbed" library - this provides all the useful functions to start up and control the mbed Microcontroller, such as the DigitalOut interface used in this example.
To compile the program, click the Compile button in the toolbar. This will compile all the program source code files within the program folder to create a binary program.
If you have any problems, or think this tutorial could be improved, please tell us in the Forum!
Please login to post comments.
Where next Back to handbook link is broken. Points to http://handbook