Seeed Grove Temperature sensor v1.2 example code

Dependencies:   Grove_temperature

Committer:
MACRUM
Date:
Tue Aug 07 04:36:25 2018 +0000
Revision:
0:21d86aae6b2a
Initial commit;

Who changed what in which revision?

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