wolfSSL integration for STM32F207 with CubeMX
I’m managed to compile wolfSSL and am trying to run test.c provided in to make sure that the library works correctly. However I run into Hardfault after RANDOM test is passed and RSA test is being conducted. The options that I am using below:
- define FREERTOS
- define WOLFSSL_LWIP
- define NO_MAIN_DRIVER
- define HAVE_ECC
- define NO_FILESYSTEM
- define NO_INLINE
- define USE_FAST_MATH
- define TFM_TIMING_RESISTANT
- define USE_CERT_BUFFERS_1024
- define NO_OLD_RNGNAME
- define NO_RSA
- define STM32F2_RNG
- define USE_WOLFSSL_MEMORY
- define WOLFSSL_MALLOC_CHECK
- define BENCH_EMBEDDED
- define SIZEOF_LONG_LONG 8
- define SIZEOF_LONG 4
- define NO_DEV_RANDOM
- define NO_WOLFSSL_DIR
- define NO_RABBIT
- define STM32F2_RNG
- define WOLFSSL_SMALL_STACK
- ifdef FREERTOS
- define malloc(size) pvPortMalloc(size)
- define free(ptr) vPortFree(ptr)
- endif
I get at this point and recieve the following from SWV:
MD4 test passed!
SHA test passed!
SHA-256 test passed!
HMAC-MD5 test passed!
HMAC-SHA test passed!
HMAC-SHA256 test passed!
ARC4 test passed!
DES test passed!
DES3 test passed!
AES test passed!
RANDOM test passed!
It gets Hardfault at RSA test and if I exclude that test with #define NO_RSA, it gets stuck at ECC Test with HardFault. Can anyone help me out?