Example for Serial communication and LED Blinky

Fork of mbed-os-example-blinky by mbed-os-examples

Committer:
hyungo
Date:
Mon Oct 08 07:30:27 2018 +0000
Revision:
78:3937fde9c5d0
Parent:
77:9140e10d79ee
README.md Update

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hyungo 78:3937fde9c5d0 1 # SDT-example-blinky
hyungo 78:3937fde9c5d0 2
hyungo 78:3937fde9c5d0 3 ## 1. Getting started with Blinky
hyungo 78:3937fde9c5d0 4
hyungo 78:3937fde9c5d0 5 Blinky example for Mbed OS
hyungo 78:3937fde9c5d0 6
hyungo 78:3937fde9c5d0 7 ### 1-1. Import the example code
hyungo 78:3937fde9c5d0 8
hyungo 78:3937fde9c5d0 9 From the command-line, import the example:
hyungo 78:3937fde9c5d0 10
hyungo 78:3937fde9c5d0 11 ```
hyungo 78:3937fde9c5d0 12 mbed import https://github.com/SigmaDeltaTechnologiesInc/SDT-example-blinky
hyungo 78:3937fde9c5d0 13 cd SDT-example-blinky
hyungo 78:3937fde9c5d0 14 ```
hyungo 78:3937fde9c5d0 15
hyungo 78:3937fde9c5d0 16 ### 1-2. Compile
hyungo 78:3937fde9c5d0 17
hyungo 78:3937fde9c5d0 18 Invoke `mbed compile`, and specify the name of your favorite toolchain (`GCC_ARM`, `ARM`, `IAR`) and your platform.
hyungo 78:3937fde9c5d0 19 For example, for the GCC_ARM and SDT64B:
hyungo 78:3937fde9c5d0 20
hyungo 78:3937fde9c5d0 21 ```
hyungo 78:3937fde9c5d0 22 mbed compile -t GCC_ARM -m SDT64B
hyungo 78:3937fde9c5d0 23 ```
hyungo 78:3937fde9c5d0 24
hyungo 78:3937fde9c5d0 25 Your PC may take a few minutes to compile your code.
hyungo 78:3937fde9c5d0 26 At the end, you see the following result:
hyungo 78:3937fde9c5d0 27
hyungo 78:3937fde9c5d0 28 ```
hyungo 78:3937fde9c5d0 29 [snip]
hyungo 78:3937fde9c5d0 30 +------------------+-------+-------+------+
hyungo 78:3937fde9c5d0 31 | Module | .text | .data | .bss |
hyungo 78:3937fde9c5d0 32 +------------------+-------+-------+------+
hyungo 78:3937fde9c5d0 33 | [fill] | 112 | 4 | 2496 |
hyungo 78:3937fde9c5d0 34 | [lib]\c.a | 31907 | 2472 | 89 |
hyungo 78:3937fde9c5d0 35 | [lib]\gcc.a | 3168 | 0 | 0 |
hyungo 78:3937fde9c5d0 36 | [lib]\misc | 248 | 8 | 28 |
hyungo 78:3937fde9c5d0 37 | [lib]\nosys.a | 32 | 0 | 0 |
hyungo 78:3937fde9c5d0 38 | main.o | 314 | 0 | 372 |
hyungo 78:3937fde9c5d0 39 | mbed-os\drivers | 1197 | 0 | 0 |
hyungo 78:3937fde9c5d0 40 | mbed-os\features | 42 | 0 | 184 |
hyungo 78:3937fde9c5d0 41 | mbed-os\hal | 1669 | 4 | 68 |
hyungo 78:3937fde9c5d0 42 | mbed-os\platform | 4503 | 260 | 217 |
hyungo 78:3937fde9c5d0 43 | mbed-os\rtos | 8946 | 168 | 6073 |
hyungo 78:3937fde9c5d0 44 | mbed-os\targets | 9153 | 12 | 409 |
hyungo 78:3937fde9c5d0 45 | Subtotals | 61291 | 2928 | 9936 |
hyungo 78:3937fde9c5d0 46 +------------------+-------+-------+------+
hyungo 78:3937fde9c5d0 47 Total Static RAM memory (data + bss): 12864 bytes
hyungo 78:3937fde9c5d0 48 Total Flash memory (text + data): 64219 bytes
hyungo 78:3937fde9c5d0 49
hyungo 78:3937fde9c5d0 50 Image: .\BUILD\SDT64B\GCC_ARM\SDT-example-blinky.bin
hyungo 78:3937fde9c5d0 51 ```
hyungo 78:3937fde9c5d0 52
hyungo 78:3937fde9c5d0 53 ### 1-3. Program your board
hyungo 78:3937fde9c5d0 54
hyungo 78:3937fde9c5d0 55 1. Connect your mbed device to the computer over USB.
hyungo 78:3937fde9c5d0 56 1. Copy the binary file(SDT-example-blinky.bin) to the mbed device.
hyungo 78:3937fde9c5d0 57 1. Press the reset button to start the program.
hyungo 78:3937fde9c5d0 58
hyungo 78:3937fde9c5d0 59 The LED on your platform turns on and off.
hyungo 78:3937fde9c5d0 60
hyungo 78:3937fde9c5d0 61 ## 2. Troubleshooting
hyungo 78:3937fde9c5d0 62
hyungo 78:3937fde9c5d0 63 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.