Data Logger v0

Dependencies:   RTC_Reader SDFileSystem DS3231

Committer:
DimasFN
Date:
Wed Dec 12 17:26:47 2018 +0000
Revision:
2:be7912c3fd87
Parent:
0:eb4606c99ae9
First version;

Who changed what in which revision?

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