<?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 MK64 + FreeRTOS + FlexCAN interrupt in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MK64-FreeRTOS-FlexCAN-interrupt/m-p/662594#M7255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to make the FlexCan (KSDK 1.3.0) driver work under FreeRTOS (8.2.2) on a Kinetis K64 cpu. In order to configure the CAN, I'm succesfully following the example in&amp;nbsp;C:\Freescale\KSDK_1.3.0\examples\twrk64f120m\driver_examples\flexcan\flexcan_network &amp;nbsp;in a baremetal configuration.&lt;/P&gt;&lt;P&gt;The problem arises using instead FreeRTOS since I'm not getting any interrupt on any incoming CAN message. I'm not putting external API inside the "CAN0_ORed_Message_buffer_IRQHandler" interrupt, but just using the standart IRQ handler provided (See &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freertos.org%2FFAQHelp.html" rel="nofollow" target="_blank"&gt;FreeRTOS - Open Source RTOS Kernel for small embedded systems&lt;/A&gt;&amp;nbsp;, point 5.)&lt;/P&gt;&lt;P&gt;The configuration of the CAN peripheral using &amp;nbsp;is done before the main thread and the scheduler starts,&amp;nbsp;just after the PE_Low_Level.&lt;/P&gt;&lt;P&gt;According to the FreeRTOS FAQ page&amp;nbsp;I set up the&lt;/P&gt;&lt;P&gt;"#define configASSERT( ( x ) ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); }" &lt;BR /&gt;for debug purposes&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Idea on it? how can I double check if the interrupt priority is correct?&lt;/P&gt;&lt;P&gt;Is there any tutorial or link on integrating the CAN on FreeRTOS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other interesting discussion&amp;nbsp;&lt;A _jive_internal="true" data-containerid="11213" data-containertype="14" data-objectid="383677" data-objecttype="1" href="https://community.nxp.com/thread/383677"&gt;FreeRTOS and K64 Interrupt Priority&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2017 16:18:18 GMT</pubDate>
    <dc:creator>wfwf</dc:creator>
    <dc:date>2017-02-02T16:18:18Z</dc:date>
    <item>
      <title>MK64 + FreeRTOS + FlexCAN interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MK64-FreeRTOS-FlexCAN-interrupt/m-p/662594#M7255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to make the FlexCan (KSDK 1.3.0) driver work under FreeRTOS (8.2.2) on a Kinetis K64 cpu. In order to configure the CAN, I'm succesfully following the example in&amp;nbsp;C:\Freescale\KSDK_1.3.0\examples\twrk64f120m\driver_examples\flexcan\flexcan_network &amp;nbsp;in a baremetal configuration.&lt;/P&gt;&lt;P&gt;The problem arises using instead FreeRTOS since I'm not getting any interrupt on any incoming CAN message. I'm not putting external API inside the "CAN0_ORed_Message_buffer_IRQHandler" interrupt, but just using the standart IRQ handler provided (See &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freertos.org%2FFAQHelp.html" rel="nofollow" target="_blank"&gt;FreeRTOS - Open Source RTOS Kernel for small embedded systems&lt;/A&gt;&amp;nbsp;, point 5.)&lt;/P&gt;&lt;P&gt;The configuration of the CAN peripheral using &amp;nbsp;is done before the main thread and the scheduler starts,&amp;nbsp;just after the PE_Low_Level.&lt;/P&gt;&lt;P&gt;According to the FreeRTOS FAQ page&amp;nbsp;I set up the&lt;/P&gt;&lt;P&gt;"#define configASSERT( ( x ) ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); }" &lt;BR /&gt;for debug purposes&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Idea on it? how can I double check if the interrupt priority is correct?&lt;/P&gt;&lt;P&gt;Is there any tutorial or link on integrating the CAN on FreeRTOS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other interesting discussion&amp;nbsp;&lt;A _jive_internal="true" data-containerid="11213" data-containertype="14" data-objectid="383677" data-objecttype="1" href="https://community.nxp.com/thread/383677"&gt;FreeRTOS and K64 Interrupt Priority&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 16:18:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MK64-FreeRTOS-FlexCAN-interrupt/m-p/662594#M7255</guid>
      <dc:creator>wfwf</dc:creator>
      <dc:date>2017-02-02T16:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: MK64 + FreeRTOS + FlexCAN interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MK64-FreeRTOS-FlexCAN-interrupt/m-p/662595#M7256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;news: by repeating the full initialization inside the CAN thread, I succeded in receiving a CAN message. I'll further investigate which initialization part in particular must be repeated. Furthermost, even with this second initialization the "SendBlocking" method doesn't work. The &amp;nbsp;"Send" method works outside the thread but doesn't worh IN the thread. Which is the difference between the two methods?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 10:59:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MK64-FreeRTOS-FlexCAN-interrupt/m-p/662595#M7256</guid>
      <dc:creator>wfwf</dc:creator>
      <dc:date>2017-02-03T10:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: MK64 + FreeRTOS + FlexCAN interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MK64-FreeRTOS-FlexCAN-interrupt/m-p/662596#M7257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think all the driver of serial bus have the same architecture in SDK, I suggest you refer to the example in Freertos:&lt;/P&gt;&lt;P&gt;C:\Freescale\SDK2.0_FRDM_K64F\boards\frdmk64f\rtos_examples\freertos_uart\kds&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>Sat, 04 Feb 2017 08:40:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MK64-FreeRTOS-FlexCAN-interrupt/m-p/662596#M7257</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-02-04T08:40:06Z</dc:date>
    </item>
  </channel>
</rss>

