iTracker mbed os sample to show how to user the BLE API to expose sensor values (float and ints)

Committer:
knaresh89
Date:
Mon Feb 12 06:41:24 2018 +0000
Revision:
0:e4fe77192b73
iTracker mbed os sample to show how to user the BLE API to expose sensor values (float and ints)

Who changed what in which revision?

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