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.

TM4C1294KCPDT: Porting firmware from Stellaris to Tiva that uses upnp.h/.c in Stellariswase

Part Number: TM4C1294KCPDT


I'm working on parting firmware from Stellarisware to Tivaware.  The Stellaris firmware uses the upnp.c/.h files in Stellarisware, but I can't find the equivalent files in Tivaware.

It looks like I could almost use the upnp files from Stellaris in Tiva, except for this function that enables ethernet multicast reception.  I can't find the equivalent setting on the Tiva ethernet controller.

//*****************************************************************************
//
//! Initializes the UPnP session for the Serial to Ethernet Module.
//!
//! This function initializes and configures the UPnP session for the module.
//!
//! \return None.
//
//*****************************************************************************
void
UPnPInit(void)
{
    unsigned long ulTemp;

    //
    // Enable Ethernet Multicast Reception (required for UPnP operation).
    //
    ulTemp = MAP_EthernetConfigGet(ETH_BASE);
    ulTemp |= ETH_CFG_RX_AMULEN;
    MAP_EthernetConfigSet(ETH_BASE, ulTemp);

    //
    // Set up the ports required to listen for discovery and location
    // requests.
    //
    UPnPStart();
}

  • Hi Curtis,

    The Ethernet API is completely changed for the TM4C129x devices from the LM devices. If you are using lwIP for your Ethernet stack, the porting should be easy and just have to include lwIP version 4 in your project. If you do not lwIP, you will need to use the EMACXxxx APIs instead of the EthXxxx APIs in Driver Library.