Skip to main content
Visitor II
February 13, 2025
Question

build issue : undefined reference to `altcp_tls_wrap'

  • February 13, 2025
  • 5 replies
  • 790 views

Hello,
I have STM32H747I board. using Ethernet, I have connect MQTT on 1883 port successfully. Now I want to connect 8883 port but after configuration, this kind of error occurs also I have included path for the same. can you please check and give me step to resolve this.
Thank you.include pathinclude patherrorerror

    This topic has been closed for replies.

    5 replies

    Technical Moderator
    February 14, 2025

    Hello @Himanshuparmar 

    Could you please provide a test case to reproduce the issue on our side? This will help us assist you more effectively

    Visitor II
    February 14, 2025

    hey, 

    I have configure FreeRTOS V2, Ethernet and LWIP stack in STM32H747I in M7 core .ioc file.

    In Ethernet : use RMII mode, set tx,rx memory map

    In FreeRTOS : use stack size and thread

    In LWIP : static IP for the ethernet

    after code generation.
    I have added mqtt code for 1883 port broker connect and it will connect properly and publish data.

    for broker on port 8883, I have changed in file name "lwipopts.h"

    #define LWIP_ALTCP 1

    #define LWIP_ALTCP_TLS 1 

     

    after changes in "lwipopts.h" file, I getting erros as mentioned earlier. 
    ERROR: >> undefined reference to altcp_tls_wrap

    for resolve I have manually add path in project build file but the result was same.
    please give me how can I use broker on 8883 port for mqtt connection using LWIP stack and what are the configuration.


    Thank you,
    Himashu Parmar.

    Visitor II
    February 24, 2025

    Any Update on my question? Anyone? @Saket_Om 

    ST Employee
    February 24, 2025

    Hello @Himanshuparmar,

    This issue is under inverstigation. We will get back to you as soon as possible.

     

    Thank you for your understanding.

    With Regards,

    Visitor II
    September 18, 2025

    I'm having the same problem. It's because the altcp_tls_mbedtls.c is not included in the Middlewares/Third_Party/LwIP/src/apps directory. altcp_tls_mbedtls.c is where altcp_tls_wrap is defined. I don't see a configuration option in the GUI to include this file, and if I manually add it, then the file will get blown away by code regeneration if I reconfigure my project. @Himanshuparmar did you find a workaround to this issue?