Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

Using LWIP in FreeRTOS

Posted by ajinkya on April 2, 2013
Hi,
I am using freeRTOS v 5.0.2. Target hardware is STR912 comstick.
Earlier I was using uip demo project available on freeRTOS site .
Now I want to use lwip demo project . So that I can send a UDP packet to STR912 in network.

And one more thing I want to ask here is can we send UDP packet using uip.
If yes the what things need to be taken care of.

Because the socket.c and socket.h files are not a part of uip directory.
These(socket.c and socket.h) files are located in " \Demo\Common\ethernet\lwIP_130\src\include\lwip".

And also on google groups i found a reply saying - An lwIP demo is also available upon request .
So how can I get the lwip demo for STR912 .

http://groups.google.com/group/osdeve_mirror_rtos_freertos-discussion/browse_frm/month/2007-08?pli=1
https://sourceforge.net/projects/freertos/forums/forum/382005/topic/1812192?message=4490998

--
Thanks,
Ajinkya

RE: Using LWIP in FreeRTOS

Posted by Richard on April 2, 2013
The FreeRTOS code you are using is *very* old, and the lwIP code is moderately old.

You can find a FreeRTOS/lwIP 1.4.0 integration that runs in the FreeRTOS windows simulator here [note the CLI code in this example is pre-release code and not official FreeRTOS+CLI code]:
http://interactive.freertos.org/entries/20290712-FreeRTOS-Win32-project-with-lwIP-web-server

lwIP has three APIs, each of which has greater abstraction. The Raw API is the lowest, and the Sockets is the highest. The sockets file are therefore not part of the core lwIP functionality, but use the core functionality to provide a familiar sockets like API.

Regards.

RE: Using LWIP in FreeRTOS

Posted by ajinkya on April 2, 2013
Thankyou sir for your reply,

What I want to do is receive a UDP packet and take a action depending on the "command/code" received in packet.
For this purpose i need "lwip_recvfrom" function as I came to know from
http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/FreeRTOS_UDP_IP_Embedded_Ethernet_Tutorial.shtml

What you meant is use the lowest abstraction (RAW API) and have the required functionality (sockets)? Right?

Can you please guide how to upgrade to current version for a target platform (STR91x in this case) and using this "FreeRTOS Win32 project with lwIP web server" for a target platform.

and lastly can we have socket functionality using "uip" stack, which has been provided in uip webserver demo.

RE: Using LWIP in FreeRTOS

Posted by Richard on April 2, 2013
The page you link to is not lwIP but a propriatory UDP stack developed by Real Time Engineers Ltd directly. To use that code you would need to create a functions to interface the UDP stack to the ST MAC drivers.

I believe uIP can be used with UDP, but I have never done it myself, so couldn't offer any advice on that.

Regards.




[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists