<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Bug in KSDK 1.3.0 lwIP port when using FreeRTOS in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Bug-in-KSDK-1-3-0-lwIP-port-when-using-FreeRTOS/m-p/481054#M4127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When running lwIP on FreeRTOS, the port layer is not setting the interrupt priorities for the ENET interrupts as needed.&lt;/P&gt;&lt;P&gt;The port layer contains this code:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;#if defined(FSL_RTOS_MQX)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; install interrupt handlers...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /* Set priority for ISRs */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; NVIC_SetPriority(ENET_1588_Timer_IRQn, 4U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; NVIC_SetPriority(ENET_Transmit_IRQn, 4U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; NVIC_SetPriority(ENET_Receive_IRQn, 4U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sets the interrupt priorities correctly if you are using MQX, but misses it when using FreeRTOS.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jan 2016 09:38:06 GMT</pubDate>
    <dc:creator>gaute_nilsson</dc:creator>
    <dc:date>2016-01-11T09:38:06Z</dc:date>
    <item>
      <title>Bug in KSDK 1.3.0 lwIP port when using FreeRTOS</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Bug-in-KSDK-1-3-0-lwIP-port-when-using-FreeRTOS/m-p/481054#M4127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When running lwIP on FreeRTOS, the port layer is not setting the interrupt priorities for the ENET interrupts as needed.&lt;/P&gt;&lt;P&gt;The port layer contains this code:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;#if defined(FSL_RTOS_MQX)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; install interrupt handlers...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /* Set priority for ISRs */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; NVIC_SetPriority(ENET_1588_Timer_IRQn, 4U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; NVIC_SetPriority(ENET_Transmit_IRQn, 4U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; NVIC_SetPriority(ENET_Receive_IRQn, 4U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sets the interrupt priorities correctly if you are using MQX, but misses it when using FreeRTOS.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 09:38:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Bug-in-KSDK-1-3-0-lwIP-port-when-using-FreeRTOS/m-p/481054#M4127</guid>
      <dc:creator>gaute_nilsson</dc:creator>
      <dc:date>2016-01-11T09:38:06Z</dc:date>
    </item>
  </channel>
</rss>

