SD card test

Dependencies:   SDBlockDevice

Committer:
cornetlin
Date:
Wed Dec 11 03:52:04 2019 +0000
Revision:
0:1f63a5db1425
SD card test

Who changed what in which revision?

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