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