Topic: wolfSSL for NXP S32 Design Studio

Hello I am trying to build a project using OpenSSL compatibility layer that is inside the wolfSSL library now the problem is that I can't find the library libwolfssl for my target MPC5748G can you please guide me how to create that library?

Share

Re: wolfSSL for NXP S32 Design Studio

Hello Ahmed,

You will need to make a project for wolfSSL in your IDE, build it, then link it with your application.  We have some IDE examples here but we don't currently have any for NXP Design Studio: https://github.com/wolfSSL/wolfssl/tree/master/IDE  We do have an MCUEXPRESSO example for NXP.

To configure wolfSSL, you'll need to place a user_settings.h file with your build settings in the root of the wolfSSL directory, then built with WOLFSSL_USER_SETTINGS defined.  I would recommend referring to our examples here, specifically user_settings_template.h: https://github.com/wolfSSL/wolfssl/tree … es/configs
You may also find the "Building wolfSSL" section of our manual helpful: https://www.wolfssl.com/documentation/m … ter02.html

For our OpenSSL compatibility layer, you'll need to define OPENSSL_EXTRA in your user_settings.h, if you need more APIs which are not covered in extra you can also define OPENSSL_ALL, but this is a more resource-intensive operation.

Can you share some information on your project?  Are you working on a personal or commercial project?  If this information is private, you are welcome to email us at support [AT] wolfssl [DOT] com.

Thanks,
Kareem

Share

Re: wolfSSL for NXP S32 Design Studio

Hello Kareem,

I am just implementing a simple ecdsa algorithm using functions of OpenSSL. I have defined all the required in the preprocessor symbols in the compiler not in user settings and there are no errors regarding that the error is that there is undefined ref for all the functions I am using because there is no libwolfssl and I don't know how to build it specifically to my target

Share

Re: wolfSSL for NXP S32 Design Studio

Hello Ahmed,

Thanks for sharing your use case.

You will need to create and use a user_settings.h file to build wolfSSL, defining wolfSSL settings in your preprocessor won't work properly for building wolfSSL and linking it to your application.

You'll need to create a project for wolfSSL, define your desired settings in user_settings.h and build it there, then you can link it to your application.

Thanks,
Kareem

Share

Re: wolfSSL for NXP S32 Design Studio

Hello Kareem,

Thanks for the detailed overview — I’m still a little unclear, though, on exactly how to invoke the cross-compiler and produce the libwolfssl.a for my MPC5748G toolchain. Could you please walk me through the sequence of commands required to cross-compile wolfSSL for MPC5748G? Also, there is no configure file added in the directory of wolfSSL in the SDK directory

Share