Topic: Problems with wolfSSL and STM32CubeIDE Integration

I’m trying to integrate wolfSSL into my STM32 project using STM32CubeIDE.
I successfully added the wolfSSL source files to my project, but when I build, I get multiple undefined reference errors related to wolfSSL functions (like wolfSSL_Init, wolfSSL_CTX_new, etc.).

I have already defined WOLFSSL_USER_SETTINGS and pointed it to my custom settings.h file.
Is there any specific configuration or linker settings I need to be aware of when using wolfSSL with STM32CubeIDE?

Share

Re: Problems with wolfSSL and STM32CubeIDE Integration

Hi Ethel Baines,

Did you try using our STM32 Cube MX Pack for wolfSSL?

If you are seeing error regarding missing references to wolfSSL_Init then I would check a couple things:

1) Make sure WOLFCRYPT_ONLY is not defined
2) If you are pulling in sources directly and using your own user_settings.h then:
  a) Make sure you have WOLFSSL_USER_SETTINGS defined as a pre-processor macro
  b) You are building the src/*.c and wolfcrypt/*.c. You may have to exclude any .S files.
3) Make sure you include wolfssl/wolfcrypt/settings.h before any other headers. Note: Including wolfssl/ssl.h does this automatically.

We do have some tips for the STM32 Cube platform here: https://github.com/wolfSSL/wolfssl/tree … /STM32Cube

Please let us know how that goes.

Thanks,
David Garske, wolfSSL

Share

Re: Problems with wolfSSL and STM32CubeIDE Integration

Hi Ethel Baines,

Also can you tell us more about your project? Is this academic or commercial? Where are you located?

Thanks,
David Garske, wolfSSL

Share