sdsf

Committer:
latexinfo
Date:
Fri Apr 06 07:05:50 2018 +0000
Revision:
0:2b5da3767c0a
just a test

Who changed what in which revision?

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