Simple F411 bootloader.

Dependencies:   sd-driver

Committer:
stema
Date:
Tue Apr 10 08:52:17 2018 +0000
Revision:
0:cd3dd72a93f5
Simple F411 SD bootloader.

Who changed what in which revision?

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