Projet de marde tu touche tes gay

Dependencies:   WebSocketClient XBeeLib

Committer:
Spip2401
Date:
Tue Apr 10 17:47:45 2018 +0000
Revision:
0:c775b969ddf9
asdfasdf

Who changed what in which revision?

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