|
|
||
|---|---|---|
| .. | ||
| README.md | ||
| default_conf.ftl | ||
| include.am | ||
| wolftpm_test.c | ||
| wolftpm_test.h | ||
README.md
wolfTPM for STM32 Cube IDE
The wolfTPM Cube Pack can be found here and has an optional (and recommended) dependency on the wolfCrypt library.
-
The first step is to set up the wolfCrypt library in your ST project following the guide here https://github.com/wolfSSL/wolfssl/blob/master/IDE/STM32Cube/README.md. To run the wolfTPM unit tests, name the entry function
wolfTPMTestinstead ofwolfCryptDemo. -
Then install the wolfTPM Cube Pack in the same manner as the wolfSSL pack with CUBEMX.
-
Open the project
.iocfile and click theSoftware Packsdrop down menu and thenSelect Components. Expand thewolfTPMpack and check all the components. -
In the
Software Packsconfiguration category of the.iocfile, click on the wolfTPM pack and enable the library by checking the box. -
In the
Connectivitycategory, find and enable SPI for you project. -
In the
Software Packsconfiguration category, open the wolfTPM pack and setEnable wolfCryptparameter to True. -
Save your changes and select yes to the prompt asking about generating code.
-
Build the project and run the unit tests.
Notes
- Make sure to make these changes to redirect the printf's to the UART.