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.

MSP432E401Y: ethernet_with_lwip Static Address

Part Number: MSP432E401Y

Hi,

What are the changes needed to configure this project to use a static address?

Thanks,

-Mike

  • Hi Mike,

    Looking at Line 237 in the 'lwiplib.c' file in the "ethernet_with_lwip_MSP_EXP432E401Y_nortos_ccs" project, the default IP mode appears to be static already.

    //*****************************************************************************
    //
    // The default IP address acquisition mode.
    //
    //*****************************************************************************
    static uint32_t g_ui32IPMode = IPADDR_USE_STATIC;
    

    There are three options in 'lwiplib.h'.

    //*****************************************************************************
    //
    // IP Address Acquisition Modes
    //
    //*****************************************************************************
    #define IPADDR_USE_STATIC       0
    #define IPADDR_USE_DHCP         1
    #define IPADDR_USE_AUTOIP       2