Hexiwear TSL2561 Thanks for Kenji Arai

Dependencies:   TSL2561

Committer:
i_am_kitsune
Date:
Tue Feb 20 05:37:05 2018 +0000
Revision:
0:c9d717ad98fe
Hexiwear TSL2561 101

Who changed what in which revision?

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