I2C&ThermalSensor

Dependents:   COG4050_blink COG4050_adxl35x_adxrs290 COG4050_adxl355_adxl357-ver2 COG4050_adxrs290_adxrs453 ... more

Committer:
APS_Lab
Date:
Tue May 14 02:00:12 2019 +0000
Revision:
1:0901bc032f82
Parent:
0:74a0756399ff
Latest 2019.05.14

Who changed what in which revision?

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