Device key example for Mbed OS
This is an example of an application that uses the DeviceKey APIs. The application injects a dummy root of trust (ROT) if true random number generator (TRNG) is not avalable. The application also invoke the derive key API several times in diffrent conditions and print the result.
- An mbed-os supported development board.
- A micro-USB cable.
-
Import the example.
mbed import mbed-os-example-devicekey cd mbed-os-example-devicekey
-
Compile and generate binary.
For example, for
GCC
:mbed compile -t GCC_ARM -m <your device>
-
Open a serial console session with the target platform using the following parameters:
- Baud rate: 115200
- Data bits: 8
- Stop bits: 1
- Parity: None
-
Copy the application
mbed-os-example-devicekey.bin
in the foldermbed-os-example-devicekey/BUILD/<TARGET NAME>/<PLATFORM NAME>
onto the target board. -
Press the RESET button on the board to run the program
-
The serial console should now display a series of results.
If you have problems, you can review the documentation for suggestions on what could be wrong and how to fix it.