test

Committer:
himatsumoto
Date:
Thu Aug 02 06:32:15 2018 +0000
Revision:
0:2d4da120f057
?????????1

Who changed what in which revision?

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