Demo of the IKS01A1 - accelerometers

Dependencies:   X_NUCLEO_IKS01A1-f255a2c75ecb-14ddc33717d5

Committer:
noutram
Date:
Tue Jun 26 16:50:53 2018 +0000
Revision:
0:1882e480b627
Demo of the IKS01A1 - accelerometers;

Who changed what in which revision?

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