Skip to main content
George Eliozov
Associate II
July 20, 2017
Question

STM32F407, LwIP, FreeRTOS socket - connect infinite loop in vPortRaiseBASEPRI

  • July 20, 2017
  • 2 replies
  • 2007 views
Posted on July 20, 2017 at 12:30

Hello everyone,

Testing LwIP + FreeRTOS on my devboard.

Everything configured by CubeMX.

each time I use 'connect' function I ends up in infinite loop inside vPortRaiseBASEPRI

I have strong feeling that has some correlation with interrupt priorities.

Additional information:

Ethernet - use RMII interface

SYS clocked from Timer 14...

Socket crated from main thread.

Thanks in advance

#freertos #stm32f407 #lwip
This topic has been closed for replies.

2 replies

George Eliozov
Associate II
July 20, 2017
Posted on July 20, 2017 at 13:24

Update.

 Looks like it has some correlation with UART1 interrupts...

George Eliozov
Associate II
July 20, 2017
Posted on July 20, 2017 at 14:22

update.

manually (CubeMX does not allow to increase priority of USART interrupts) increased priority of USART1 IRQ from 5 to 4.

so far so good...

andy b
Senior
July 20, 2017
Posted on July 20, 2017 at 14:46

Hi

Rare to see someone that has exacly the same problem as me.Did that change solve your problem ? Whats weird is that I have the same problem but I don't have any UART enabled.Got any idea what it could be ?I only have ethernet , LwIP and Free RTOS enabled.

-Andy
George Eliozov
Associate II
July 20, 2017
Posted on July 20, 2017 at 15:10

Working so far. No deadlocks. Now I have issues with lwip timeouts ....

Receive never ends if other side didn't close a socket....