testing removal

Committer:
karen801
Date:
Tue May 29 14:53:27 2018 +0000
Revision:
3:685207bb9d83
Parent:
0:c16eb2b17039
comment2

Who changed what in which revision?

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