<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://air.imag.fr/index.php?action=history&amp;feed=atom&amp;title=MBedOS</id>
	<title>MBedOS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://air.imag.fr/index.php?action=history&amp;feed=atom&amp;title=MBedOS"/>
	<link rel="alternate" type="text/html" href="https://air.imag.fr/index.php?title=MBedOS&amp;action=history"/>
	<updated>2026-06-14T07:52:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://air.imag.fr/index.php?title=MBedOS&amp;diff=30698&amp;oldid=prev</id>
		<title>Donsez: Created page with &quot;   &lt;pre&gt; git clone https://github.com/ARMmbed/mbed-cli.git &lt;/pre&gt;    &lt;pre&gt; # Getting started with Blinky on mbed OS  This is a very simple guide, reviewing the steps required ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://air.imag.fr/index.php?title=MBedOS&amp;diff=30698&amp;oldid=prev"/>
		<updated>2016-10-07T16:47:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;   &amp;lt;pre&amp;gt; git clone https://github.com/ARMmbed/mbed-cli.git &amp;lt;/pre&amp;gt;    &amp;lt;pre&amp;gt; # Getting started with Blinky on mbed OS  This is a very simple guide, reviewing the steps required ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone https://github.com/ARMmbed/mbed-cli.git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Getting started with Blinky on mbed OS&lt;br /&gt;
&lt;br /&gt;
This is a very simple guide, reviewing the steps required to get Blinky working on an mbed OS platform.&lt;br /&gt;
&lt;br /&gt;
Please install [mbed CLI](https://github.com/ARMmbed/mbed-cli#installing-mbed-cli).&lt;br /&gt;
&lt;br /&gt;
## Get the example application!&lt;br /&gt;
&lt;br /&gt;
From the command line, import the example:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
mbed import mbed-os-example-blinky&lt;br /&gt;
cd mbed-os-example-blinky&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
### Now compile&lt;br /&gt;
&lt;br /&gt;
Invoke `mbed compile` specifying the name of your platform and your favorite toolchain (`GCC_ARM`, `ARM`, `IAR`). For example, for the ARM Compiler 5:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
mbed compile -m K64F -t ARM&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
Your PC may take a few minutes to compile your code. At the end you should get the following result:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
[snip]&lt;br /&gt;
+----------------------------+-------+-------+------+&lt;br /&gt;
| Module                     | .text | .data | .bss |&lt;br /&gt;
+----------------------------+-------+-------+------+&lt;br /&gt;
| Misc                       | 13939 |    24 | 1372 |&lt;br /&gt;
| core/hal                   | 16993 |    96 |  296 |&lt;br /&gt;
| core/rtos                  |  7384 |    92 | 4204 |&lt;br /&gt;
| features/FEATURE_IPV4      |    80 |     0 |  176 |&lt;br /&gt;
| frameworks/greentea-client |  1830 |    60 |   44 |&lt;br /&gt;
| frameworks/utest           |  2392 |   512 |  292 |&lt;br /&gt;
| Subtotals                  | 42618 |   784 | 6384 |&lt;br /&gt;
+----------------------------+-------+-------+------+&lt;br /&gt;
Allocated Heap: unknown&lt;br /&gt;
Allocated Stack: unknown&lt;br /&gt;
Total Static RAM memory (data + bss): 7168 bytes&lt;br /&gt;
Total RAM memory (data + bss + heap + stack): 7168 bytes&lt;br /&gt;
Total Flash memory (text + data + misc): 43402 bytes&lt;br /&gt;
Image: .\.build\K64F\ARM\mbed-os-example-blinky.bin&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
### Program your board&lt;br /&gt;
&lt;br /&gt;
1. Connect your mbed device to the computer over USB.&lt;br /&gt;
1. Copy the binary file to the mbed device .&lt;br /&gt;
1. Press the reset button to start the program.&lt;br /&gt;
&lt;br /&gt;
You should see the LED of your platform turning on and off.&lt;br /&gt;
&lt;br /&gt;
Congratulations if you managed to complete this test!&lt;br /&gt;
&lt;br /&gt;
## Export the project to Keil MDK and debug your application&lt;br /&gt;
&lt;br /&gt;
From the command line, run the following command:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
mbed export -m K64F -i uvision&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
You should see the following output:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
Successful exports:&lt;br /&gt;
  * K64F::uvision       .\projectfiles\uvision_K64F\Unnamed_Project&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
To debug the application:&lt;br /&gt;
&lt;br /&gt;
1. Start uVision.&lt;br /&gt;
1. Import the uVision project generated earlier.&lt;br /&gt;
1. Compile your application and generate an `.axf` file.&lt;br /&gt;
1. Make sure uVision is configured to debug over CMSIS-DAP (From the Project menu &amp;gt; Options for Target &amp;#039;...&amp;#039; &amp;gt; Debug tab &amp;gt; Use CMSIS-DAP Debugger).&lt;br /&gt;
1. Set breakpoints and start a debug session.&lt;br /&gt;
&lt;br /&gt;
![Image of uVision](img/uvision.png)&lt;br /&gt;
&lt;br /&gt;
## Troubleshooting&lt;br /&gt;
&lt;br /&gt;
1. Make sure `mbed-cli` is working correctly and its version is greater than `0.8.9`&lt;br /&gt;
&lt;br /&gt;
 ```&lt;br /&gt;
 mbed --version&lt;br /&gt;
 ```&lt;br /&gt;
&lt;br /&gt;
 If not, you can update it easily:&lt;br /&gt;
&lt;br /&gt;
 ```&lt;br /&gt;
 pip install mbed-cli --upgrade&lt;br /&gt;
 ```&lt;br /&gt;
&lt;br /&gt;
2. If using Keil MDK, make sure you have a license installed. [MDK-Lite](http://www.keil.com/arm/mdk.asp) has a 32KB restriction on code size.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Donsez</name></author>
	</entry>
</feed>