1
1
# Running Mbed Crypto examples on Mbed OS
2
- This repository contains a set of examples demonstrating the compilation and use
3
- of Mbed Crypto on Mbed OS.
2
+ This repository contains a set of examples demonstrating the compilation and use of Mbed Crypto on Mbed OS.
4
3
5
4
List of examples contained within this repository:
6
5
* Cipher encrypt/decrypt using an AES key in cipher block chain (CBC) mode with no padding using a single block.
@@ -10,18 +9,22 @@ List of examples contained within this repository:
10
9
## Prerequisites
11
10
* Install <a href =' https://github.com/ARMmbed/mbed-cli#installing-mbed-cli ' >Mbed CLI</a >
12
11
13
- ## Deploy
14
- The following are the steps required for deployment :
15
- * Clone this repository: ` git clone git@ github.com: ARMmbed/mbed-os-example-mbed-crypto.git `
12
+ ## Import
13
+ The following are the steps required for install the application :
14
+ * Clone the repository and deploy the Mbed OS project : ` mbed import https:// github.com/ ARMmbed/mbed-os-example-mbed-crypto`
16
15
* Change your current directory: ` cd mbed-os-example-mbed-crypto `
17
- * Fetch Mbed OS: ` mbed deploy `
18
16
19
17
## Compile
20
18
To compile the example program use ` mbed compile ` while specifying the target platform and the compiler.
21
19
For example, in order to compile using the ARM GCC compiler and a K64F target platform use: ` mbed compile -m K64F -t ARM ` .
22
20
23
21
Once the compilation is completed successfully a binary file will be created: ` ./BUILD/K64F/GCC_ARM/mbed-os-example-mbed-crypto.bin `
24
22
23
+ ## Program your board
24
+ 1 . Connect your mbed device to the computer over USB.
25
+ 1 . Copy the binary file to the mbed device.
26
+ 1 . Press the reset button to start the program.
27
+
25
28
## Run
26
29
The following are the steps required to run the example program:
27
30
* Connect the Mbed device to your computer over USB.
@@ -38,3 +41,7 @@ cipher encrypt/decrypt AES CBC PKCS7 multipart:
38
41
cipher encrypt/decrypt AES CTR multipart:
39
42
success!
40
43
```
44
+
45
+ ## Troubleshooting
46
+ 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.
47
+
0 commit comments