Quality RTOS & Embedded Software

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




Loading

Problem with DHCP and FreeRTOS

Posted by Mathias Zenger on March 19, 2009
Hi,
I have an example application for my target hardware (ATMEL EVK1100 / AT32UC3A0512) which runs the lwIP stack in a FreeRTOS task.

I tried to activate DHCP for my application. This seems to work fine. At least I can obtain an IP address from the DNS. The problem is that it only works as long as the task priority is set to 7 or 8 (maximum is configured to 8). With lower priorities a ping to the given address stays unanswered. The high priority has the bad effect of starving my other tasks.

Has anybody an idea what problem I am facing? Similar experiences?
Thanks for your opinion. Regards,
Mathias

RE: Problem with DHCP and FreeRTOS

Posted by MEdwards on March 19, 2009
That really depends how you have written the Ethernet driver, the priority of other tasks in the system, and what the other tasks in the system are doing.

RE: Problem with DHCP and FreeRTOS

Posted by Mathias Zenger on March 19, 2009
Thanks for your reply. One thing that is strange anyway: Even when I only start the Ethernet task PING only works with task priority 7 or 8. What else could cause the problems? Are there any other tasks running by default which could block my Ethernet task?

RE: Problem with DHCP and FreeRTOS

Posted by Richard on March 19, 2009
Only the idle task, but that runs at priority 0 so will not cause this behaviour.

Most ports of lwIP will generate at least two tasks, maybe the priorities relative to each other are wrong.

Regards.

RE: Problem with DHCP and FreeRTOS

Posted by Bill Yang on March 20, 2009
Hi,

If anyone knows a sample or demo application runs lwIP stack with FreeRTOS on LM3S6965 (Cortex-M3)? I have a demo application (Cortex_M3_IAR_Keil) that runs only uIP stack without DHCP functionality. So if I need to DHCP, I need to run lwIP stack, right?

Thanks,
Bill Yang

RE: Problem with DHCP and FreeRTOS

Posted by Richard on March 20, 2009
I have some code I could send although I don't know if it uses DHCP or not. There is an ARM9 lwIP demo that uses DHCP you could look at though. uIP should also work with DHCP.

If you want the code write to me at r (dot) barry _at_ freertos.org. Don't use the SourceForge email service as I have no idea how it works.

Regards.


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




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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

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

OpenRTOS and SafeRTOS