cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F207 - LWip on FreeRTOS - correct priorities

abrous3d
Associate II
Posted on December 02, 2012 at 21:22

Hello to all,

Recently I modified a FreeRTOS & Lwip port from IAR systems demo in order to make it work on my STM32F207 board. FreeRtos version is 6.1.0. I used the default demo priorities i.e :

  • RTOS kernel -> configMAX_SYSCALL_INTERRUPT_PRIORITY = 191  (or priority 11 for STM) 
  • Ethernetif -> configMAX_PRIORITIES - 1
  • TCP-IP ->   configMAX_PRIORITIES - 2
  • WEB server - > taskIDLE_PRIORITY + 3
  • All NVIC priorities are set to NVIC_PriorityGroup_4
  • Ethernet global int is set to ->   NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = (configMAX_SYSCALL_INTERRUPT_PRIORITY>>4)+1;                

System seemed to work fine using this setup with fast response. But leaving the system on for long periods of time,  regardless the page hits, it became less and less responsive. 

I tried some combinations and I get better results setting WEB server to configMAX_PRIORITIES - 1 (higher priority) , TCP-IP to configMAX_PRIORITIES - 2 and ethernetif to configMAX_PRIORITIES - 3 but still the system lags to death after some time.

Any ideas from the experts ?

#freertos-lwip
0 REPLIES 0