Skip to content

Commit f495127

Browse files
add RT1170 CAAM build documentation
1 parent 2a73fdd commit f495127

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

wolfSSL/src/chapter02.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3064,5 +3064,33 @@ TRNG fo0 r seeding the wolfSSL HASH-DRBG makes use of the NXP HSM library. This
30643064
30653065
### IMXRT1170 (FreeRTOS)
30663066
3067-
<Documentation available, not inserted here yet @TODO>
3067+
Example IDE Setup for use with IMXRT1170 can be found in the directory IDE/MCUEXPRESSO/RT1170 \
3068+
\
3069+
3070+
#### Build Steps\
3071+
3072+
- Open MCUEXPRESSO and set the workspace to wolfssl/IDE/MCUEXPRESSO/RT1170
3073+
- File -> Open Projects From File System... -> Directory : and set the browse to wolfssl/IDE/MCUEXPRESSO/RT1170 directory then click "select directory"
3074+
- Select wolfssl_cm7, wolfcrypt_test_cm7, CSR_example, PKCS7_example
3075+
- Right click the projects -> SDK Management -> Refresh SDK Components and click "yes"
3076+
- increase the size of configTOTAL_HEAP_SIZE in FreeRTOSConfig.h to be 60240 for CSR and PKCS7 example and around 100000 for wolfcrypt_test_cm7
3077+
- (note board files need to be recreated .... this can be done by creating a new project that has the same settings and copying over the generated board/* files)
3078+
- Build the projects
3079+
3080+
3081+
#### Expanding RT1170 CAAM Driver\
3082+
3083+
The files RT1170/fsl_caam_h.patch and RT1170/fsl_caam_c.patch include changes to
3084+
the existing NXP CAAM driver for use with creating/opening Blobs and generating
3085+
and using ECC black keys.
3086+
3087+
To apply the patches first create a project that has the caam driver. This will
3088+
generate the base fsl_caam.c and fsl_caam.h in the drivers directory. (i.e PKCS7_example_cm7/drivers/fls_caam.{c,h})
3089+
. Once the base files are generated then 'cd' to the drivers directory and apply
3090+
the patch (cd PKCS7_example_cm7/drivers/ && patch -p1 < ../../fsl_caam_c.patch && patch -p1 < ../../fsl_caam_h.patch)
3091+
3092+
In the patch for fsl_caam.h there are macros defined for both the ECC and Blob
3093+
expansion (CAAM_ECC_EXPANSION and CAAM_BLOB_EXPANSION). When wolfSSL code finds
3094+
that these macros are defined (the patch has been applied) then it tries to
3095+
compile in use of the expanded driver.
30683096

0 commit comments

Comments
 (0)