Saver nodo

Dependencies:   ds3231 sd-driver-master

Committer:
SolManB
Date:
Wed Jul 11 23:46:48 2018 +0000
Revision:
1:dea5f9c332ba
Parent:
0:6c5b9198f119
Attach

Who changed what in which revision?

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