cancel
Showing results for 
Search instead for 
Did you mean: 

Compilation error when enabling "NET_MBEDTLS_WIFI_MODULE_SUPPORT"

ZHaid.1
Associate II

Hi 

I enabled the following macro in my STWIN code 

"NET_MBEDTLS_WIFI_MODULE_SUPPORT"

arm-none-eabi-gcc "C:/en.fp-ind-predmnt1/STM32CubeFunctionPack_PREDMNT1_V2.2.0/Middlewares/ST/STM32_Connect_Library/netif/wifi_if/es_wifi/net_es_wifi.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DSTM32L4R9xx -DNET_MBEDTLS_WIFI_MODULE_SUPPORT -DARM_MATH_CM4 -DUSE_HAL_DRIVER '-DMBEDTLS_CONFIG_FILE=<mbedtls_config.h>' -DENABLE_IOT_INFO -DENABLE_IOT_ERROR -DENABLE_IOT_WARNING -DUSE_MBED_TLS -DAWS -DJSMN_PARENT_LINKS -DUSE_WIFI -DNET_USE_RTOS -DWIFI_USE_CMSIS_OS -c -I../../../../../../../../Drivers/CMSIS/Device/ST/STM32L4xx/Include -I../../../../../../../../Middlewares/Third_Party/parson -I../../../../../../../../Drivers/CMSIS/Include -I../../../../../../../../Drivers/CMSIS/DSP/Include -I../../../../../../../../Drivers/STM32L4xx_HAL_Driver/Inc -I../../../../../../../../Drivers/BSP/STWIN -I../../../Inc -I../../../../../../../../Middlewares/ST/STM32_Connect_Library/Includes -I../../../../../../../Misc_Utils/Inc -I../../../../../../../../Utilities/Time -I../../../../../../../../Middlewares/Third_Party/AWS/platform/STM32Cube -I../../../../../../../../Middlewares/Third_Party/AWS/include -I../../../../../../../../Middlewares/Third_Party/mbedTLS/include -I../../../../../../../../Middlewares/Third_Party/jsmn -I../../../../../../../../Drivers/BSP/Components/es_wifi -I../../../../../../../../Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -I../../../../../../../../Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I../../../../../../../../Drivers/BSP/Components/Common -I../../../../../../../../Drivers/BSP/Components/hts221 -I../../../../../../../../Drivers/BSP/Components/ism330dhcx -I../../../../../../../../Drivers/BSP/Components/lps22hh -I../../../../../../../../Middlewares/Third_Party/FreeRTOS/Source/include -I../../../../../../../../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../../../../../../../../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../../../../../../../../Middlewares/ST/STM32_MotionSP_Library/Inc -I../../../../../../../../Drivers/BSP/Components/iis3dwb -O3 -ffunction-sections -Wall -fstack-usage -MMD -MP -MF"Middlewares/ST/STM32_Connect_Library/netif/net_es_wifi.d" -MT"Middlewares/ST/STM32_Connect_Library/netif/net_es_wifi.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Middlewares/ST/STM32_Connect_Library/netif/net_es_wifi.o"

C:/en.fp-ind-predmnt1/STM32CubeFunctionPack_PREDMNT1_V2.2.0/Middlewares/ST/STM32_Connect_Library/netif/wifi_if/es_wifi/net_es_wifi.c: In function 'es_wifi_connect':

C:/en.fp-ind-predmnt1/STM32CubeFunctionPack_PREDMNT1_V2.2.0/Middlewares/ST/STM32_Connect_Library/netif/wifi_if/es_wifi/net_es_wifi.c:515:11: error: 'tlsData' undeclared (first use in this function); did you mean 'tlsdata'?

 515 |      tlsData = &WifiChannel[sock].tlsData;

   |      ^~~~~~~

   |      tlsdata

C:/en.fp-ind-predmnt1/STM32CubeFunctionPack_PREDMNT1_V2.2.0/Middlewares/ST/STM32_Connect_Library/netif/wifi_if/es_wifi/net_es_wifi.c:515:11: note: each undeclared identifier is reported only once for each function it appears in

C:/en.fp-ind-predmnt1/STM32CubeFunctionPack_PREDMNT1_V2.2.0/Middlewares/ST/STM32_Connect_Library/netif/wifi_if/es_wifi/net_es_wifi.c:523:61: error: 'net_if_handle_t' {aka 'struct net_if_handle_s'} has no member named 'll_drv_obj'

 523 |      ret = ES_WIFI_StoreCreds( WifiChannel[sock].pnetif->ll_drv_obj, ES_WIFI_FUNCTION_TLS , ES_WIFI_TLS_MULTIPLE_WRITE_SLOT,

   |                               ^~

make: *** [Middlewares/ST/STM32_Connect_Library/netif/subdir.mk:19: Middlewares/ST/STM32_Connect_Library/netif/net_es_wifi.o] Error 1

"make all" terminated with exit code 2. Build might be incomplete.

Any help in this regard.

0 REPLIES 0