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.

Help with Simple UDP Send LwIP OMAPL137

I have lwip working on the omapl137 arm. With some help with the Savanah website and their test project for Code Composer. The test code host a simple http web server and works as expected. My next goal is to understand a little better the layers of lwip with a simple udp sender example.

So far the only way I have been able to get it working is by following the same structure of the test program where:

/* Initialize LwIP */
sys_sem_t init_sem;
err_t err = sys_sem_new(&init_sem, 0);
tcpip_init(udpecho_init, &init_sem);
sys_sem_wait(&init_sem);
sys_sem_free(&init_sem);

once I do that the code is succesfully able to send a data-gram. I can see it with a python receiver I created.

I would expect a udp example to be simpler than that and be able to run it with just a call to:

/* Initialize LwIP */

lwip_init();

but as soon as I do that the udpreceiver stops getting expected datagram.

I have been trying to figure this out for a few days. Any suggestion or help would be greatly appreciated. I will try on the lwip forums too and see if I can collect some more information.

  • Which example are you referring ?
    TI released package or 3rd party or your own code ?
    We have some NDK examples for UDP and TCP sending/receiving.
    C:\ti\nsp_1_10_00_03\packages\ti\ndk\examples\ndk_evmOMAPL138_arm9_helloWorld
  • Hi Titus,

    Please mark is as Answered. I'm not using the NDK but LWIP. There is examples code in the sitara Starteware and a port for the C6747 in the Lwip latest version. I adapted the code and have Lwip running on the ARM of the omapl137. After talking to the lwip user mail I found that the port needs tcp_init to initialize key components of the driver. It was done as part of the support for the target. I was trying to figure out I needed for a simple udpsender.

    Thanks for you reply.

  • Hi,

    Thanks for your update.

    Hereby, we are closing this thread as per your request.

    Thanks & regards,
    Sivaraj K