Bug in KSDK 1.3.0 lwIP port when using FreeRTOS

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Bug in KSDK 1.3.0 lwIP port when using FreeRTOS

623 次查看
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.

标签 (1)
标记 (3)
0 回复数