Data over internett

Dependencies:   C12832

Fork of Riggen_internett by Mustafa Kazaale

Committer:
mosti89
Date:
Fri Apr 13 12:04:36 2018 +0000
Revision:
2:417d4b54f717
Parent:
0:d8cc0114a13e
Update 13.04.18

Who changed what in which revision?

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