[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] STM32, FreeRTOS and lwIP - Timeout problems

From: Rüdiger Asche
Subject: Re: [lwip-devel] STM32, FreeRTOS and lwIP - Timeout problems
Date: Tue, 8 Jan 2013 13:34:41 +0100

most likely your problem is in the implementation of the mailbox wrappers for lwip in sys_arch.c. I've been working with pretty much the same configuration for many months now, and all the problems I've ever had were in that smaller layer of code. If you happen to have priority issues, those are more likely to manifest themselves in random crashes, hangs or deadlocks. Your description of "it only works sometimes" is rather shady. If you are more specific in what "does *not* work" really means and how it shows, more people might be able to help.

2013/1/6 Thomas Kølbæk Jespersen <address@hidden>
I have been trying hard to get my FreeRTOS v7.3.0 system working together with lwIP v1.4.1 and I have sucessfully managed to get connection and DHCP.
But when I try to use sockets it only works sometimes.

Most of the times it takes long, trying to connect, and then it times out.

I have been trying almost everything from changing the Heap Size, changing the TCP-IP stack and priority.
But as I don't know that much about RTOS yet, I am unsure if the problem might have something to do with interrupt priority of the Ethernet layer.

I don't know if the NVIC IRQ Priority of the Ethernet HAL should be set lower or higher.
I have been trying with "NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 2;" as it was how it was in the example STM32 Ethernet port.

Have any of you experienced the same type of timeouts or VERY slow response?

Thanks a lot.

Regards Thomas

lwip-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]