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