Detect I2C devices

Committer:
MACRUM
Date:
Fri Dec 04 11:02:57 2020 +0900
Revision:
3:0ca27c666888
Parent:
0:81685bb49271
Add mbed_app.json file

Who changed what in which revision?

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