sd temp

Dependencies:   ADXL345 SDBlockDevice

Committer:
cornetlin
Date:
Wed Dec 26 05:22:39 2018 +0000
Revision:
0:405602d5132b
SD

Who changed what in which revision?

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