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.

RTOS/DK-TM4C129X: Is it possible to assign more than one IP address in RTOS ?

Part Number: DK-TM4C129X

Tool/software: TI-RTOS

Hi,

In my project I use DK-TM4C129X and want to assign two IP addresses to my board the former is for UDP communication and the latter is for logging mechanism I do not want to use UART for this purpose and want to do it with networking. However, I can not find any information about if it's possible or not. Could you please help me about these? Thanks in advance for your answers.

Best Regards.

  • Hi,

    We do not have an example illustrating multiple IP addresses on the same interface. However, some community members have achieved a similar goal with the CfgAddEntry() API (see NDK API Section G.2.2). The limitation is that each IP address must be on a separate subnet.

    Please refer to the following post (look for the CfgAddEntry() example):

    https://e2e.ti.com/support/embedded/tirtos/f/355/p/237302/836816#836816

    CI_IPNET NA;
    NA.IPAddr = htonl(0xc0a802c0); // example IP address (192.168.2.192)
    NA.IPMask = htonl(0xFFFFFE00); // example mask (255.255.254.0)
    CfgAddEntry(hCfg, CFGTAG_IPNET, 1, 0, sizeof(CI_IPNET), (UINT8 *)&NA, 0);

    Another suggestion for your situation is to use one IP address and two different port numbers: one for UDP communication and one for logging.

    ~Ramsey