Sample program on how to use the LIS3DH sensor on the RAKWireless iTracker module

Committer:
knaresh89
Date:
Mon Feb 12 05:05:29 2018 +0000
Revision:
0:cd96b05ace6e
Sample program on how to use the LIS3DH sensor on the RAKWireless iTracker module

Who changed what in which revision?

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