SEARCH
TOOLBOX
LANGUAGES
modified on 1 June 2015 at 14:00 ••• 52,224 views

Bambino-210 Manual/Getting Started

From Manuals

(Difference between revisions)
Jump to: navigation, search
(Create Program)
Line 45: Line 45:
  }
  }
-
Finally add the mbed-src library to the program.
+
Finally import the mbed-src library to your program. This will allow you to access mbed library functions with source code.
-
[[Image:mbed-new-lib.png|center|alt=mbed New File]]
+
[[Image:mbed-new-lib.png|center|alt=mbed Import Library]]
-
[[Image:mbed-add-lib.png|center|alt=mbed File Name]]
+
[[Image:mbed-add-lib.png|center|alt=mbed Source Library]]
 +
 
===Compile Program===
===Compile Program===
===Download and Run Program===
===Download and Run Program===

Revision as of 00:35, 21 January 2015

Contents

Getting Started

This section explains how to develop programs for the Micromint Bambino using the mbed online compiler. Using an online compiler is a great way to get started with mbed development. No local program installations are required on your system. The editor, compiler and linker are maintained by the mbed team and accessible via any Internet connection. The next chapter will cover offline toolchains for projects that require use of a compiler and debugger installed on your system.

Activate mbed.org Account

To use the online compiler you first need a developer account at mbed.org. If you have not done so, please visit mbed.org, click on "Signup" and follow the steps to create an account. If you already have an account, login using your mbed username.

Add Micromint Bambino Platforms

The Micromint Bambino has two USB ports: USB0 for use by your mbed applications and USB1 for mbed development. When you connect your system to USB1 it will recognize the board as a removable flash drive to copy your programs and a serial port that can be used for program output. To add the board to the online compiler, click on the mbed.htm file in the removable flash drive detected by your system.

mbed HDK Flash Drive

Equivalent links are included below.

Add Micromint Bambino 210E

Add Micromint Bambino 210

Create Program

Enter the online compiler by selecting the "Compiler" button on the development site. Right click on "My Programs" and select "New Program...".

mbed New Program

Select a name for your program. Use "blinky" as our initial program name for a simple application that blinks an LED.

mbed Program Name

Then create your first program file. Right click on "blinky" and select "New File...". Use "main.cpp" as your main program file.

mbed New File


mbed File Name

Paste the following content to your program file.

#include "mbed.h"

DigitalOut myled(LED2);

int main() {
    while(1) {
        myled = 1;
        wait(0.8);
        myled = 0;
        wait(0.8);
    }
}

Finally import the mbed-src library to your program. This will allow you to access mbed library functions with source code.

mbed Import Library


mbed Source Library

Compile Program

Download and Run Program


NEXT: Offline Toolchains

PREVIOUS: Introduction