First revision of tactile mouse code

Committer:
JPB515
Date:
Mon Apr 08 16:57:36 2019 +0000
Revision:
0:f254a3cfe0f6
First publish of tactile mouse code;

Who changed what in which revision?

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