STR912 comstick and UDP on FreeRTOS

biradarajinkya wrote on Tuesday, March 26, 2013:

Hello Friends,
I was want my board (STR912 comstick it has ethernet port on board) to receive a UDP packet sent by some remote host.
My free rtos version is V5.0.2.

So while looking for the same I found  this link:  

http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/FreeRTOS_UDP_IP_Embedded_Ethernet_Tutorial.shtml

but it asks for following files to add to my project directory:

    FreeRTOS-Plus/FreeRTOS-Plus-UDP/FreeRTOS_UDP_IP.c
    FreeRTOS-Plus/FreeRTOS-Plus-UDP/FreeRTOS_Sockets.c
    FreeRTOS-Plus/FreeRTOS-Plus-UDP/FreeRTOS_DHCP.c
    FreeRTOS-Plus/FreeRTOS-Plus-UDP/FreeRTOS_DNS.c

I have them but the names are not the same (I am worried whether version is the same or not / it doesn’t matter)
I have :
uip.c
sockets.c
dhcp.c
dns.c

and i dont have BufferAllocation_2.c file at all which is for BufferManagement.

So how should i go for setting up UDP on FreeRTOS.

rtel wrote on Tuesday, March 26, 2013:

It sounds like you have the uIP code, not the FreeRTOS+UDP code.

The FreeRTOS+UDP code is contained in the downloadable projects hosted in the FreeRTOS+ site:

http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/Embedded_Ethernet_Examples/RTOS_UDP_CLI_Windows_Simulator.shtml

http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/Embedded_Ethernet_Examples/RTOS_UDP_and_CLI_LPC1830_NGX.shtml

Regards.

biradarajinkya wrote on Wednesday, March 27, 2013:

Hello Sir,
But my target platform is not matching with mine…….the source code is for ** LPC1830 Xplorer board** from NGX Technologies.
mine is** STR912 comstick **by ST Microelectronics. Do we have sample code available for it……
What can be done in this case??

davedoors wrote on Wednesday, March 27, 2013:

There is a porting guide on the website. You have to implement a few functions to pass data between the stack and your Ethernet driver. The best thing to do is first ensure your Ethernet driver is working without the FreeRTOS code, then create interface functions required.

http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/FreeRTOS_UDP_Porting.shtml