Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of statemachineopzet by
README.md@0:64c100cd152a, 2018-10-31 (annotated)
- Committer:
- onnoderkman
- Date:
- Wed Oct 31 10:47:46 2018 +0000
- Revision:
- 0:64c100cd152a
State machine opzet. Overgangen van state naar state zijn nog niet compleet.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
onnoderkman | 0:64c100cd152a | 1 | # Getting started with Blinky on mbed OS |
onnoderkman | 0:64c100cd152a | 2 | |
onnoderkman | 0:64c100cd152a | 3 | This guide reviews the steps required to get Blinky working on an mbed OS platform. |
onnoderkman | 0:64c100cd152a | 4 | |
onnoderkman | 0:64c100cd152a | 5 | Please install [mbed CLI](https://github.com/ARMmbed/mbed-cli#installing-mbed-cli). |
onnoderkman | 0:64c100cd152a | 6 | |
onnoderkman | 0:64c100cd152a | 7 | ## Import the example application |
onnoderkman | 0:64c100cd152a | 8 | |
onnoderkman | 0:64c100cd152a | 9 | From the command-line, import the example: |
onnoderkman | 0:64c100cd152a | 10 | |
onnoderkman | 0:64c100cd152a | 11 | ``` |
onnoderkman | 0:64c100cd152a | 12 | mbed import mbed-os-example-blinky |
onnoderkman | 0:64c100cd152a | 13 | cd mbed-os-example-blinky |
onnoderkman | 0:64c100cd152a | 14 | ``` |
onnoderkman | 0:64c100cd152a | 15 | |
onnoderkman | 0:64c100cd152a | 16 | ### Now compile |
onnoderkman | 0:64c100cd152a | 17 | |
onnoderkman | 0:64c100cd152a | 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: |
onnoderkman | 0:64c100cd152a | 19 | |
onnoderkman | 0:64c100cd152a | 20 | ``` |
onnoderkman | 0:64c100cd152a | 21 | mbed compile -m K64F -t ARM |
onnoderkman | 0:64c100cd152a | 22 | ``` |
onnoderkman | 0:64c100cd152a | 23 | |
onnoderkman | 0:64c100cd152a | 24 | Your PC may take a few minutes to compile your code. At the end, you see the following result: |
onnoderkman | 0:64c100cd152a | 25 | |
onnoderkman | 0:64c100cd152a | 26 | ``` |
onnoderkman | 0:64c100cd152a | 27 | [snip] |
onnoderkman | 0:64c100cd152a | 28 | +----------------------------+-------+-------+------+ |
onnoderkman | 0:64c100cd152a | 29 | | Module | .text | .data | .bss | |
onnoderkman | 0:64c100cd152a | 30 | +----------------------------+-------+-------+------+ |
onnoderkman | 0:64c100cd152a | 31 | | Misc | 13939 | 24 | 1372 | |
onnoderkman | 0:64c100cd152a | 32 | | core/hal | 16993 | 96 | 296 | |
onnoderkman | 0:64c100cd152a | 33 | | core/rtos | 7384 | 92 | 4204 | |
onnoderkman | 0:64c100cd152a | 34 | | features/FEATURE_IPV4 | 80 | 0 | 176 | |
onnoderkman | 0:64c100cd152a | 35 | | frameworks/greentea-client | 1830 | 60 | 44 | |
onnoderkman | 0:64c100cd152a | 36 | | frameworks/utest | 2392 | 512 | 292 | |
onnoderkman | 0:64c100cd152a | 37 | | Subtotals | 42618 | 784 | 6384 | |
onnoderkman | 0:64c100cd152a | 38 | +----------------------------+-------+-------+------+ |
onnoderkman | 0:64c100cd152a | 39 | Allocated Heap: unknown |
onnoderkman | 0:64c100cd152a | 40 | Allocated Stack: unknown |
onnoderkman | 0:64c100cd152a | 41 | Total Static RAM memory (data + bss): 7168 bytes |
onnoderkman | 0:64c100cd152a | 42 | Total RAM memory (data + bss + heap + stack): 7168 bytes |
onnoderkman | 0:64c100cd152a | 43 | Total Flash memory (text + data + misc): 43402 bytes |
onnoderkman | 0:64c100cd152a | 44 | Image: .\.build\K64F\ARM\mbed-os-example-blinky.bin |
onnoderkman | 0:64c100cd152a | 45 | ``` |
onnoderkman | 0:64c100cd152a | 46 | |
onnoderkman | 0:64c100cd152a | 47 | ### Program your board |
onnoderkman | 0:64c100cd152a | 48 | |
onnoderkman | 0:64c100cd152a | 49 | 1. Connect your mbed device to the computer over USB. |
onnoderkman | 0:64c100cd152a | 50 | 1. Copy the binary file to the mbed device. |
onnoderkman | 0:64c100cd152a | 51 | 1. Press the reset button to start the program. |
onnoderkman | 0:64c100cd152a | 52 | |
onnoderkman | 0:64c100cd152a | 53 | The LED on your platform turns on and off. |
onnoderkman | 0:64c100cd152a | 54 | |
onnoderkman | 0:64c100cd152a | 55 | ## Troubleshooting |
onnoderkman | 0:64c100cd152a | 56 | |
onnoderkman | 0:64c100cd152a | 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. |