This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TM4C129ENCPDT: Lwip debug messages enable

Part Number: TM4C129ENCPDT


Tool/software: Code Composer Studio

Hello all,

i'm trying to activate the debug messages for lwip. Therefore i predifined LWIP_DEBUG and set for exampe the SOCKETS_DEBUG to to LWIP_DBG_ON, since i want to see all the socket messages.

The program is compiling without any problems. But i can't figure out  why it's not showing any messages. 

Am i missing a step? Or in which console/ terminal are the messeges being printed?

Thank You!

  • Hi,

      In the lwipopts.h can you change to the below. 

    #if 1
    #define U8_F "c"
    #define S8_F "c"
    #define X8_F "x"
    #define U16_F "u"
    #define S16_F "d"
    #define X16_F "x"
    #define U32_F "u"
    #define S32_F "d"
    #define X32_F "x"
    extern void UARTprintf(const char *pcString, ...);
    #define LWIP_PLATFORM_DIAG(msg) UARTprintf msg
    #define LWIP_PLATFORM_ASSERT(msg) \
        UARTprintf("ASSERT_FAIL at line %d of %s:\ %s\n", __LINE__, __FILE__, msg)
    #define LWIP_DEBUG  1
    #endif

    When I did the above change and rebuild the project I can see the debug messages on the virtual COM port as shown below when I run one of the TivaWare Ethernet examples.

    Please reference this thread that provides very good help.