Seeed / Mbed OS Wio_3G-example-blinky

Dependencies:   WS2812 PixelArray

Fork of Wio_3G-example-blinky by Toyomasa Watarai

Committer:
MACRUM
Date:
Thu Aug 09 06:44:01 2018 +0000
Revision:
0:1f050f0c9bec
Initial commit

Who changed what in which revision?

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