HRV -> Mood

Dependencies:   MAX30101 Hexi_KW40Z Hexi_OLED_SSD1351

Committer:
jeannie9809
Date:
Sat Mar 16 02:20:01 2019 +0000
Revision:
0:338c50c9c8cd
very beginning + var

Who changed what in which revision?

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