Test code for Apollo System

Dependencies:   BME280 DS1820

Committer:
wakestrap
Date:
Fri Jun 19 18:54:25 2020 +0000
Revision:
0:632db6388a5d
removed GPS module

Who changed what in which revision?

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