WappAutomation 2 : - WITH RESET - WITHOUT Switch Cable Tested on TEL50

Dependencies:   MFRC522

Committer:
cybermars
Date:
Fri Dec 13 14:17:55 2019 +0000
Revision:
12:81209b6a2318
Parent:
0:8814d243dfec
Wapp automation 2 :; - WITH RESET; - WITHOUT Switch Cable

Who changed what in which revision?

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