<?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 Re: how to synchronize a freertos task with an interrupt using an event ? in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479276#M4074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;Hi Xianju&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;My problem is to synchronize an interrupt with a task (in this case when a buffer is full).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;I understand that with FREERTOS is necessary to use xSemaphoreGiveFromISR or another instruction FromISR, but it is necessary to change the priority of the interrupt peripheral.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;If you have an example for the FRDM K64 board with SDK and FREERTOS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;Raul Cortes&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 May 2016 01:40:11 GMT</pubDate>
    <dc:creator>RaAolCortAcsMat</dc:creator>
    <dc:date>2016-05-01T01:40:11Z</dc:date>
    <item>
      <title>how to synchronize a freertos task with an interrupt using an event ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479273#M4071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have an example ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 00:01:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479273#M4071</guid>
      <dc:creator>RaAolCortAcsMat</dc:creator>
      <dc:date>2016-04-27T00:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to synchronize a freertos task with an interrupt using an event ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479274#M4072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are lots of ways of doing this - the best depends on your particular scenario.&amp;nbsp; The most efficient method would be to use a &lt;A href="http://www.freertos.org/RTOS-task-notifications.html"&gt;direct to task notification&lt;/A&gt;.&amp;nbsp; You will find an example of the scenario you highlight &lt;A href="http://www.freertos.org/RTOS_Task_Notification_As_Counting_Semaphore.html"&gt;on this page&lt;/A&gt;.&amp;nbsp; You could also use a binary semaphore (see the example on the &lt;A href="http://www.freertos.org/a00124.html"&gt;xSemaphoreGiveFromISR()&lt;/A&gt; page), counting semaphore, queue, event group, (others?), but as those methods use an intermediary object rather than sending the event directly to the task they will be less efficient.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 06:47:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479274#M4072</guid>
      <dc:creator>FreeRTOS_org</dc:creator>
      <dc:date>2016-04-27T06:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to synchronize a freertos task with an interrupt using an event ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479275#M4073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Raul,&lt;/P&gt;&lt;P&gt;I have downloaded the SDK_2.0_FRDM-K64F.zip, I have checked the directory, there are Freertos example in SDK.&amp;nbsp; For the event example, pls refer to the following example:&lt;/P&gt;&lt;P&gt;D:\Freescale\SDK2.0\boards\frdmk64f\rtos_examples\freertos_event\kds&lt;/P&gt;&lt;P&gt;For the interrupt example, you can refer to the directory:&lt;/P&gt;&lt;P&gt;D:\Freescale\SDK2.0\boards\frdmk64f\rtos_examples\freertos_swtimer\kds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can post an event in the callback function of the swtimer, the task with the xEventGroupWaitBits() will be running with OS intervening..&lt;/P&gt;&lt;P&gt;You can refer to the Richard Barry reply for the task efficiency.&lt;/P&gt;&lt;P&gt;Hope it can help you.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 09:08:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479275#M4073</guid>
      <dc:creator>xiangjunrong</dc:creator>
      <dc:date>2016-04-27T09:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to synchronize a freertos task with an interrupt using an event ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479276#M4074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;Hi Xianju&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;My problem is to synchronize an interrupt with a task (in this case when a buffer is full).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;I understand that with FREERTOS is necessary to use xSemaphoreGiveFromISR or another instruction FromISR, but it is necessary to change the priority of the interrupt peripheral.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;If you have an example for the FRDM K64 board with SDK and FREERTOS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;Raul Cortes&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 May 2016 01:40:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479276#M4074</guid>
      <dc:creator>RaAolCortAcsMat</dc:creator>
      <dc:date>2016-05-01T01:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to synchronize a freertos task with an interrupt using an event ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479277#M4075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;Hi Richard&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;My problem is to synchronize an interrupt with a task (in this case when a buffer is full).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;I understand that with FREERTOS is necessary to use xSemaphoreGiveFromISR or another instruction FromISR, but it is necessary to change the priority of the interrupt peripheral.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;If you have an example for the FRDM K64 board with SDK and FREERTOS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;Raul Cortes&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 May 2016 01:47:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479277#M4075</guid>
      <dc:creator>RaAolCortAcsMat</dc:creator>
      <dc:date>2016-05-01T01:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to synchronize a freertos task with an interrupt using an event ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479278#M4076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Information on how the interrupt priorities relates to FreeRTOS can be found on the following page: &lt;A href="http://www.freertos.org/RTOS-Cortex-M3-M4.html" title="http://www.freertos.org/RTOS-Cortex-M3-M4.html"&gt;RTOS for ARM Cortex-M&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 May 2016 08:11:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479278#M4076</guid>
      <dc:creator>FreeRTOS_org</dc:creator>
      <dc:date>2016-05-01T08:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to synchronize a freertos task with an interrupt using an event ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479279#M4077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;Erich Styger gives me the answer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: 'Helvetica','sans-serif'; color: #373737; background: #DDDDDD;"&gt;“The thing is: check your configMAX_SYSCALL_INTERRUPT_PRIORITY setting. You cannot call any RTOS API functions like xSemaphoreGiveFromISR() from an interrupt which is higher (numerically lower) than configMAX_SYSCALL_INTERRUPT_PRIORITY.&lt;/SPAN&gt;”&lt;/P&gt;&lt;P style="margin-bottom: 19.5pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;So&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: 'Helvetica','sans-serif'; color: #373737;"&gt;I change the priority, and it is working&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 19.5pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: 'Helvetica','sans-serif'; color: #373737;"&gt;NVIC_SetPriority(PIT_IRQ_ID, configMAX_SYSCALL_INTERRUPT_PRIORITY-1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 19.5pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Helvetica','sans-serif'; color: #373737;"&gt;Thanks&lt;BR /&gt; Raul&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 18:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479279#M4077</guid>
      <dc:creator>RaAolCortAcsMat</dc:creator>
      <dc:date>2016-05-02T18:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to synchronize a freertos task with an interrupt using an event ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479280#M4078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In&amp;nbsp;KDS with PEx&amp;nbsp;use:&amp;nbsp;INT_SYS_SetPriority(&lt;SPAN style="color: #373737; background-color: #ffffff; font-size: 15.3333px;"&gt;PIT_IRQ_ID&lt;/SPAN&gt;, configMAX_SYSCALL_INTERRUPT_PRIORITY-1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 13:45:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/479280#M4078</guid>
      <dc:creator>josei</dc:creator>
      <dc:date>2019-03-14T13:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to synchronize a freertos task with an interrupt using an event ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/1486221#M8131</link>
      <description>&lt;P&gt;I came in to drop a comment that the solution seemed to mark&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;NVIC_SetPriority(PIT_IRQ_ID, configMAX_SYSCALL_INTERRUPT_PRIORITY-1);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;as correct solution but it was not. That would actually put PIT_IRQ_ID to have an interrupt higher (numerically lower) than configMAX_SYSCALL_INTERRUPT_PRIORITY.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 12:30:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/1486221#M8131</guid>
      <dc:creator>danny30</dc:creator>
      <dc:date>2022-07-07T12:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to synchronize a freertos task with an interrupt using an event ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/1486233#M8132</link>
      <description>&lt;P&gt;yes, you have to remove that -1. Or add something to it.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 13:05:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-synchronize-a-freertos-task-with-an-interrupt-using-an/m-p/1486233#M8132</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2022-07-07T13:05:08Z</dc:date>
    </item>
  </channel>
</rss>

