Test of DS18B20 Digital temperature sensor using k22f board.

Dependencies:   DS1820

Committer:
javibenjas
Date:
Thu Apr 19 04:10:42 2018 +0000
Revision:
0:6367a3d990f2
initial version

Who changed what in which revision?

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