eth.attach() doesn`t work with threads without wait time

Committer:
dimavb
Date:
Fri May 25 22:12:13 2018 +0000
Revision:
0:074e782ef127
init;

Who changed what in which revision?

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