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