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 for UDP, TCP

Posted by zealhero on October 6, 2014

I'm using FreeRTOS 8.1.2 and lwip 1.4.1 for CortexR5. I've used UDP, TCP communication well with lwip on my system without FreeRTOS. I'm trying to use UDP, TCP on FreeRTOS now. I made few files for connecting lwip with FreeRTOS like 'sysarch.c'. I reffered ARM7 example project in FreeRTOS demo. So it can work on the task used 'systhreadnew()'. But 'netconnsend()' for data sending by udp in the thread is not working.

It works in ISR using interrupt when there is no OS. I tried it same way and other ways in this system that use FreeRTOS. But It can't send a message, though I got a normal return value from 'netconn_send().

I don't know how it works on FreeRTOS. I've not understood communicatino procedure fully in FreeRTOS with lwip. Please give me a tip.

Best Regards, Wonjae


Using lwIP for UDP, TCP

Posted by rtel on October 6, 2014

An old reference FreeRTOS/lwIP integration can be found on the following link. Note the CLI code used by the project is not the same as the code eventually released as FreeRTOS+CLI: http://interactive.freertos.org/entries/20290712-FreeRTOS-Win32-project-with-lwIP-web-server

Regards.


Using lwIP for UDP, TCP

Posted by zealhero on October 7, 2014

Is it make a sense to use ISR seperated from OS? I think that the rx or tx interrupt handler is needed for ethernet communication. but they are not related FreeRTOS.. Other things as semaphore or queues are connected to lwIP already. so I confused.. The ISRs are used in FreeRTOS project same with the project what doesn't have OS now.

Regards.


Using lwIP for UDP, TCP

Posted by zealhero on October 14, 2014

Hello I'm still in the stuck.. I've understood what I asked. But there are some new questions. There are 2 threads in my system as tcpipthread(basic) and Socket UDP what it sends a simple message. I can check that they works well using the 'FreeRTOS+Trace'. But sending message is not working, but it is another problem(related TI chip) so skip this part. My question is that it goes to resetEntry(c_int00) when some message(e.g. ping) comes to my system. It goes to dataEntry if I resume it when it occured. I don't know how can I find the cause because it is appeared when I give some message to it. I was guessed that it is related to ISR, so I made a breakpoint at there and follow the codes. But it did go well. Please give me some tips for debugging this problem.

Best Regards, Wonjae.


[ 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