Bug in KSDK 1.3.0 lwIP port when using FreeRTOS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bug in KSDK 1.3.0 lwIP port when using FreeRTOS

613 Views
gaute_nilsson
Contributor II

When running lwIP on FreeRTOS, the port layer is not setting the interrupt priorities for the ENET interrupts as needed.

The port layer contains this code:

 

#if defined(FSL_RTOS_MQX)

install interrupt handlers...

 

  /* Set priority for ISRs */

  NVIC_SetPriority(ENET_1588_Timer_IRQn, 4U);

  NVIC_SetPriority(ENET_Transmit_IRQn, 4U);

  NVIC_SetPriority(ENET_Receive_IRQn, 4U);

#endif

 

It sets the interrupt priorities correctly if you are using MQX, but misses it when using FreeRTOS.

 

Also, if you are following Erich Stygers tutorial, you need to make sure the "Make SysCall Interrupt Priority" setting in FreeRTOS component is configured to have a higher priority than the ENET interrupts.

Labels (1)
Tags (3)
0 Replies