Done

Dependencies:   HTU21D Hexi_KW40Z Hexi_OLED_SSD1351 MAX30101

Fork of Hexiwear by Jacob Shebesh

Committer:
Jashebes
Date:
Mon Apr 30 18:06:25 2018 +0000
Revision:
0:b9ba2cb49fbe
For final

Who changed what in which revision?

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