Indoor positioning. Peripheral unit.

Dependencies:   aconno_SEGGER_RTT

Committer:
jurica238814
Date:
Tue Mar 06 09:53:36 2018 +0000
Revision:
0:ad937152493a
Publish commit.

Who changed what in which revision?

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