This is a test code

Committer:
evangeli
Date:
Tue Oct 09 12:03:50 2018 +0000
Revision:
0:63d399cadd6a
This is the initial commit.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
evangeli 0:63d399cadd6a 1 # Getting started with Blinky on mbed OS
evangeli 0:63d399cadd6a 2
evangeli 0:63d399cadd6a 3 This guide reviews the steps required to get Blinky working on an mbed OS platform.
evangeli 0:63d399cadd6a 4
evangeli 0:63d399cadd6a 5 Please install [mbed CLI](https://github.com/ARMmbed/mbed-cli#installing-mbed-cli).
evangeli 0:63d399cadd6a 6
evangeli 0:63d399cadd6a 7 ## Import the example application
evangeli 0:63d399cadd6a 8
evangeli 0:63d399cadd6a 9 From the command-line, import the example:
evangeli 0:63d399cadd6a 10
evangeli 0:63d399cadd6a 11 ```
evangeli 0:63d399cadd6a 12 mbed import mbed-os-example-blinky
evangeli 0:63d399cadd6a 13 cd mbed-os-example-blinky
evangeli 0:63d399cadd6a 14 ```
evangeli 0:63d399cadd6a 15
evangeli 0:63d399cadd6a 16 ### Now compile
evangeli 0:63d399cadd6a 17
evangeli 0:63d399cadd6a 18 Invoke `mbed compile`, and specify the name of your platform and your favorite toolchain (`GCC_ARM`, `ARM`, `IAR`). For example, for the ARM Compiler 5:
evangeli 0:63d399cadd6a 19
evangeli 0:63d399cadd6a 20 ```
evangeli 0:63d399cadd6a 21 mbed compile -m K64F -t ARM
evangeli 0:63d399cadd6a 22 ```
evangeli 0:63d399cadd6a 23
evangeli 0:63d399cadd6a 24 Your PC may take a few minutes to compile your code. At the end, you see the following result:
evangeli 0:63d399cadd6a 25
evangeli 0:63d399cadd6a 26 ```
evangeli 0:63d399cadd6a 27 [snip]
evangeli 0:63d399cadd6a 28 +----------------------------+-------+-------+------+
evangeli 0:63d399cadd6a 29 | Module | .text | .data | .bss |
evangeli 0:63d399cadd6a 30 +----------------------------+-------+-------+------+
evangeli 0:63d399cadd6a 31 | Misc | 13939 | 24 | 1372 |
evangeli 0:63d399cadd6a 32 | core/hal | 16993 | 96 | 296 |
evangeli 0:63d399cadd6a 33 | core/rtos | 7384 | 92 | 4204 |
evangeli 0:63d399cadd6a 34 | features/FEATURE_IPV4 | 80 | 0 | 176 |
evangeli 0:63d399cadd6a 35 | frameworks/greentea-client | 1830 | 60 | 44 |
evangeli 0:63d399cadd6a 36 | frameworks/utest | 2392 | 512 | 292 |
evangeli 0:63d399cadd6a 37 | Subtotals | 42618 | 784 | 6384 |
evangeli 0:63d399cadd6a 38 +----------------------------+-------+-------+------+
evangeli 0:63d399cadd6a 39 Allocated Heap: unknown
evangeli 0:63d399cadd6a 40 Allocated Stack: unknown
evangeli 0:63d399cadd6a 41 Total Static RAM memory (data + bss): 7168 bytes
evangeli 0:63d399cadd6a 42 Total RAM memory (data + bss + heap + stack): 7168 bytes
evangeli 0:63d399cadd6a 43 Total Flash memory (text + data + misc): 43402 bytes
evangeli 0:63d399cadd6a 44 Image: .\.build\K64F\ARM\mbed-os-example-blinky.bin
evangeli 0:63d399cadd6a 45 ```
evangeli 0:63d399cadd6a 46
evangeli 0:63d399cadd6a 47 ### Program your board
evangeli 0:63d399cadd6a 48
evangeli 0:63d399cadd6a 49 1. Connect your mbed device to the computer over USB.
evangeli 0:63d399cadd6a 50 1. Copy the binary file to the mbed device.
evangeli 0:63d399cadd6a 51 1. Press the reset button to start the program.
evangeli 0:63d399cadd6a 52
evangeli 0:63d399cadd6a 53 The LED on your platform turns on and off.
evangeli 0:63d399cadd6a 54
evangeli 0:63d399cadd6a 55 ## Troubleshooting
evangeli 0:63d399cadd6a 56
evangeli 0:63d399cadd6a 57 If you have problems, you can review the [documentation](https://os.mbed.com/docs/latest/tutorials/debugging.html) for suggestions on what could be wrong and how to fix it.