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