2023-09-12 09:04 AM
Hey all,
I am attempting to use the CubeMX to enable and generate code for the WolfSSL middleware. When I do, it seems to not generate all the files. One that is missing for example is evp.c.
However, it seems that none of the .C files are generated, just the header files. What setting am I not choosing?
I downloaded the source from https://www.wolfssl.com/ and saw that there are many files missing from the code generation from CubeMX. What do I need to change?
For reference, I am developing on a STM32L476 using the Nucleo-64 development board.
My compiler is GCC-ARM-NONE-EABI and I am using VSCODE and CMAKE. None of that really matters at this point, I am just wondering why the C files are not generated.
Solved! Go to Solution.
2023-09-12 10:13 AM
Hello @vanhorng
If you want all .C files to be generated, I suggest you to use an updated firmware. Than and using CubeMX, choose your board. Configure the freertos and then, configure the WolfSSL like that:
After that and before generating your project, disable the generate under roots option
Then in the code generator choose the option copie all used libraries into the project folder as shown below:
Now generate your project and you will find all .c files:
Best regards.
II
2023-09-12 10:13 AM
Hello @vanhorng
If you want all .C files to be generated, I suggest you to use an updated firmware. Than and using CubeMX, choose your board. Configure the freertos and then, configure the WolfSSL like that:
After that and before generating your project, disable the generate under roots option
Then in the code generator choose the option copie all used libraries into the project folder as shown below:
Now generate your project and you will find all .c files:
Best regards.
II
2023-09-12 11:55 AM
I looked back on my settings in CubeMX based on your images above, and I didn't have the WolfCrypt Core selected. I just had the wolfSSL / Core selected. Thanks for the quick resolution.