Add I2CSlave to ov580 master.

Dependencies:   MorseGenerator2

Committer:
jasoncha
Date:
Thu May 02 21:55:46 2019 +0000
Revision:
26:9ad740976a72
Parent:
0:605fe136b7ea
Publish it for Clayton to test.

Who changed what in which revision?

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