Topic: WolfSSL Configuration missing in Cube MX for the NUCLEO-H753ZI board
Hi,
I'm trying to use WolfSSL on my NUCLEO-H753ZI board and ran into some problems...
I've downloaded & installed the latest wolfSSL.I-CUBE-wolfSSL.5.6.4.pack from https://www.wolfssl.com/docs/stm32/
But when I try to add it to my board configuration, Cube MX indicates "Warning: This peripheral has no parameters to be configured." (see attached CubeMXConfig.png) ?
And if I generate the project despite the warning, the compilation of the generated project fails since the wolfSSL.I-CUBE-wolfSSL_conf.h file is missing (see below):
/Henrik
08:59:56 **** Build of configuration Debug for project ssl ****
make -j4 all
arm-none-eabi-gcc "../Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/samples/wolfssl_tls_thread/src/tls_threaded.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32H753xx -DDEBUG -c -I../Core/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Drivers/CMSIS/Include -I../Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/ -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/samples/wolfssl_tls_thread/src/tls_threaded.d" -MT"Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/samples/wolfssl_tls_thread/src/tls_threaded.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/samples/wolfssl_tls_thread/src/tls_threaded.o"
arm-none-eabi-gcc "../Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/samples/wolfssl_tls_sock/src/tls_sock.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32H753xx -DDEBUG -c -I../Core/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Drivers/CMSIS/Include -I../Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/ -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/samples/wolfssl_tls_sock/src/tls_sock.d" -MT"Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/samples/wolfssl_tls_sock/src/tls_sock.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/samples/wolfssl_tls_sock/src/tls_sock.o"
arm-none-eabi-gcc "../Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/zephyr_init.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32H753xx -DDEBUG -c -I../Core/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Drivers/CMSIS/Include -I../Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/ -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/zephyr_init.d" -MT"Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/zephyr_init.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/zephyr_init.o"
arm-none-eabi-gcc "../Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/wrapper/Ada/ada_binding.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32H753xx -DDEBUG -c -I../Core/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc -I../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../Drivers/CMSIS/Include -I../Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/ -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/wrapper/Ada/ada_binding.d" -MT"Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/wrapper/Ada/ada_binding.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/wrapper/Ada/ada_binding.o"
In file included from ../Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/samples/wolfssl_tls_thread/src/tls_threaded.c:25:
../Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/wolfssl/wolfcrypt/settings.h:273:14: fatal error: wolfSSL.I-CUBE-wolfSSL_conf.h: No such file or directory
273 | #include "wolfSSL.I-CUBE-wolfSSL_conf.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/wolfssl/ssl.h:33,
from ../Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/samples/wolfssl_tls_sock/src/tls_sock.c:25:
../Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/wolfssl/wolfcrypt/settings.h:273:14: fatal error: wolfSSL.I-CUBE-wolfSSL_conf.h: No such file or directory
273 | #include "wolfSSL.I-CUBE-wolfSSL_conf.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/samples/wolfssl_tls_thread/src/subdir.mk:19: Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/samples/wolfssl_tls_thread/src/tls_threaded.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/samples/wolfssl_tls_sock/src/subdir.mk:19: Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/zephyr/samples/wolfssl_tls_sock/src/tls_sock.o] Error 1
In file included from ../Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/wrapper/Ada/ada_binding.c:23:
../Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/wolfssl/wolfcrypt/settings.h:273:14: fatal error: wolfSSL.I-CUBE-wolfSSL_conf.h: No such file or directory
273 | #include "wolfSSL.I-CUBE-wolfSSL_conf.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/wrapper/Ada/subdir.mk:19: Middlewares/Third_Party/wolfSSL_wolfSSL_wolfSSL/wolfssl/wrapper/Ada/ada_binding.o] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.
09:00:03 Build Failed. 7 errors, 0 warnings. (took 7s.345ms)