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