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