for cycle testing

Dependencies:   HCSR04 PinDetect Stepper

Committer:
rschimpf78
Date:
Sat Oct 13 02:26:02 2018 +0000
Revision:
0:5848e605bae5
no change;

Who changed what in which revision?

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