demonstrational RFID key reader with TCP/IP connectivity

Dependencies:   HTTPClient MFRC522 WIZnet_Library mbed

Committer:
Vektor
Date:
Wed Aug 08 09:46:41 2018 +0000
Revision:
0:220ded71d645
Init

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Vektor 0:220ded71d645 1 # Getting started with Blinky on mbed OS
Vektor 0:220ded71d645 2
Vektor 0:220ded71d645 3 This guide reviews the steps required to get Blinky working on an mbed OS platform.
Vektor 0:220ded71d645 4
Vektor 0:220ded71d645 5 Please install [mbed CLI](https://github.com/ARMmbed/mbed-cli#installing-mbed-cli).
Vektor 0:220ded71d645 6
Vektor 0:220ded71d645 7 ## Import the example application
Vektor 0:220ded71d645 8
Vektor 0:220ded71d645 9 From the command-line, import the example:
Vektor 0:220ded71d645 10
Vektor 0:220ded71d645 11 ```
Vektor 0:220ded71d645 12 mbed import mbed-os-example-blinky
Vektor 0:220ded71d645 13 cd mbed-os-example-blinky
Vektor 0:220ded71d645 14 ```
Vektor 0:220ded71d645 15
Vektor 0:220ded71d645 16 ### Now compile
Vektor 0:220ded71d645 17
Vektor 0:220ded71d645 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:
Vektor 0:220ded71d645 19
Vektor 0:220ded71d645 20 ```
Vektor 0:220ded71d645 21 mbed compile -m K64F -t ARM
Vektor 0:220ded71d645 22 ```
Vektor 0:220ded71d645 23
Vektor 0:220ded71d645 24 Your PC may take a few minutes to compile your code. At the end, you see the following result:
Vektor 0:220ded71d645 25
Vektor 0:220ded71d645 26 ```
Vektor 0:220ded71d645 27 [snip]
Vektor 0:220ded71d645 28 +----------------------------+-------+-------+------+
Vektor 0:220ded71d645 29 | Module | .text | .data | .bss |
Vektor 0:220ded71d645 30 +----------------------------+-------+-------+------+
Vektor 0:220ded71d645 31 | Misc | 13939 | 24 | 1372 |
Vektor 0:220ded71d645 32 | core/hal | 16993 | 96 | 296 |
Vektor 0:220ded71d645 33 | core/rtos | 7384 | 92 | 4204 |
Vektor 0:220ded71d645 34 | features/FEATURE_IPV4 | 80 | 0 | 176 |
Vektor 0:220ded71d645 35 | frameworks/greentea-client | 1830 | 60 | 44 |
Vektor 0:220ded71d645 36 | frameworks/utest | 2392 | 512 | 292 |
Vektor 0:220ded71d645 37 | Subtotals | 42618 | 784 | 6384 |
Vektor 0:220ded71d645 38 +----------------------------+-------+-------+------+
Vektor 0:220ded71d645 39 Allocated Heap: unknown
Vektor 0:220ded71d645 40 Allocated Stack: unknown
Vektor 0:220ded71d645 41 Total Static RAM memory (data + bss): 7168 bytes
Vektor 0:220ded71d645 42 Total RAM memory (data + bss + heap + stack): 7168 bytes
Vektor 0:220ded71d645 43 Total Flash memory (text + data + misc): 43402 bytes
Vektor 0:220ded71d645 44 Image: .\.build\K64F\ARM\mbed-os-example-blinky.bin
Vektor 0:220ded71d645 45 ```
Vektor 0:220ded71d645 46
Vektor 0:220ded71d645 47 ### Program your board
Vektor 0:220ded71d645 48
Vektor 0:220ded71d645 49 1. Connect your mbed device to the computer over USB.
Vektor 0:220ded71d645 50 1. Copy the binary file to the mbed device.
Vektor 0:220ded71d645 51 1. Press the reset button to start the program.
Vektor 0:220ded71d645 52
Vektor 0:220ded71d645 53 The LED on your platform turns on and off.
Vektor 0:220ded71d645 54
Vektor 0:220ded71d645 55 ## Export the project to Keil MDK, and debug your application
Vektor 0:220ded71d645 56
Vektor 0:220ded71d645 57 From the command-line, run the following command:
Vektor 0:220ded71d645 58
Vektor 0:220ded71d645 59 ```
Vektor 0:220ded71d645 60 mbed export -m K64F -i uvision
Vektor 0:220ded71d645 61 ```
Vektor 0:220ded71d645 62
Vektor 0:220ded71d645 63 To debug the application:
Vektor 0:220ded71d645 64
Vektor 0:220ded71d645 65 1. Start uVision.
Vektor 0:220ded71d645 66 1. Import the uVision project generated earlier.
Vektor 0:220ded71d645 67 1. Compile your application, and generate an `.axf` file.
Vektor 0:220ded71d645 68 1. Make sure uVision is configured to debug over CMSIS-DAP (From the Project menu > Options for Target '...' > Debug tab > Use CMSIS-DAP Debugger).
Vektor 0:220ded71d645 69 1. Set breakpoints, and start a debug session.
Vektor 0:220ded71d645 70
Vektor 0:220ded71d645 71 ![Image of uVision](img/uvision.png)
Vektor 0:220ded71d645 72
Vektor 0:220ded71d645 73 ## Troubleshooting
Vektor 0:220ded71d645 74
Vektor 0:220ded71d645 75 1. Make sure `mbed-cli` is working correctly and its version is `>1.0.0`
Vektor 0:220ded71d645 76
Vektor 0:220ded71d645 77 ```
Vektor 0:220ded71d645 78 mbed --version
Vektor 0:220ded71d645 79 ```
Vektor 0:220ded71d645 80
Vektor 0:220ded71d645 81 If not, you can update it:
Vektor 0:220ded71d645 82
Vektor 0:220ded71d645 83 ```
Vektor 0:220ded71d645 84 pip install mbed-cli --upgrade
Vektor 0:220ded71d645 85 ```
Vektor 0:220ded71d645 86
Vektor 0:220ded71d645 87 2. If using Keil MDK, make sure you have a license installed. [MDK-Lite](http://www.keil.com/arm/mdk.asp) has a 32 KB restriction on code size.