ADT7410 for BLE nano V2

Dependencies:   ADT7410

Committer:
Jun_adi
Date:
Thu Aug 30 03:35:10 2018 +0000
Revision:
0:477ffc11d92b
ADT7410 temp sensing for BLEnano V2

Who changed what in which revision?

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