<?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: Flexcan Message Buffer in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexcan-Message-Buffer/m-p/805058#M48946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Reyyan,&lt;/P&gt;&lt;P&gt;The FlexCan module of k10 has 16 MB(message buffers), each MB has 16 bytes RAM, the total RAM size is 16*16=256 bytes.&lt;/P&gt;&lt;P&gt;Pls refer to the section in RM of K10:&lt;/P&gt;&lt;P&gt;"3.9.1.3 Number of message buffers&lt;BR /&gt;Each FlexCAN module contains 16 message buffers. Each message buffer is 16 bytes.&lt;/P&gt;&lt;P&gt;"&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>Fri, 13 Jul 2018 07:26:54 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2018-07-13T07:26:54Z</dc:date>
    <item>
      <title>Flexcan Message Buffer</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexcan-Message-Buffer/m-p/805057#M48945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt;&amp;nbsp; I have been searching how to use the FlexCAN interface for the MK10DN512VLQ10, and I need some clarification on how many message buffers are really supported.I've created KSDK1.3+Processor Expert pROJECT&lt;/DIV&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt;&amp;nbsp; &amp;nbsp;I've configured 3 message boxes as receivers and&amp;nbsp; every message box has its own individual Mask,&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt;There is as structrure in the driver named&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;flexcan_state_t&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;used for &lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pointer to runtime state structure and has a member&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;volatile uint32_t rx_mb_idx;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt;&lt;SPAN&gt;FLEXCAN_DRV_ConfigRxMb(comCAN1_IDX, 0 , &amp;amp;rx_info1, canRxMsgHandlerList[0].msgID);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt;&lt;SPAN&gt;FLEXCAN_DRV_ConfigRxMb(comCAN1_IDX, 1 , &amp;amp;rx_info2, canRxMsgHandlerList[1].msgID);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt;&lt;SPAN&gt;FLEXCAN_DRV_ConfigRxMb(comCAN1_IDX,&amp;nbsp;2&amp;nbsp;, &amp;amp;rx_info3, canRxMsgHandlerList[2].msgID);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt;&lt;SPAN&gt;void comCAN1_MbHandler(void)&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt;&lt;SPAN&gt;FLEXCAN_DRV_RxMessageBuffer(comCAN1_IDX, 0, &amp;amp;messageBoxList[0]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt;&lt;SPAN&gt;FLEXCAN_DRV_RxMessageBuffer(comCAN1_IDX, 1, &amp;amp;messageBoxList[1]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt;&lt;SPAN&gt;FLEXCAN_DRV_RxMessageBuffer(comCAN1_IDX, 2, &amp;amp;messageBoxList[2]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt;These are the &lt;STRONG&gt;API s&lt;/STRONG&gt; which I have used, as you can see MB1 is configured for ID0&amp;nbsp;,MB2 is configured for ID1&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;and MB2 is configured for ID2&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt; and we get the interrupt only for these mentioned ID's and able to receive data. But corresonding to API ,I need to specify which&amp;nbsp; MB&amp;nbsp; the message will come from.&lt;/DIV&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt;&lt;SPAN&gt;&lt;STRONG&gt;rx_mb_idx&amp;nbsp; only holds 3rd message box as receive ,when other Message Box (0 and 1 ) receives a message interrupt generated but ISR routine (FLEXCAN_DRV_IRQHandler) wont check 0. and 1. message box.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #636363; font-size: 11px; padding: 5px 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-weight: 400;"&gt;Kindly let me know what needs to be done with multiple number of message buffer.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 07:19:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexcan-Message-Buffer/m-p/805057#M48945</guid>
      <dc:creator>reyyanoflaz</dc:creator>
      <dc:date>2018-07-12T07:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Flexcan Message Buffer</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexcan-Message-Buffer/m-p/805058#M48946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Reyyan,&lt;/P&gt;&lt;P&gt;The FlexCan module of k10 has 16 MB(message buffers), each MB has 16 bytes RAM, the total RAM size is 16*16=256 bytes.&lt;/P&gt;&lt;P&gt;Pls refer to the section in RM of K10:&lt;/P&gt;&lt;P&gt;"3.9.1.3 Number of message buffers&lt;BR /&gt;Each FlexCAN module contains 16 message buffers. Each message buffer is 16 bytes.&lt;/P&gt;&lt;P&gt;"&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>Fri, 13 Jul 2018 07:26:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexcan-Message-Buffer/m-p/805058#M48946</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2018-07-13T07:26:54Z</dc:date>
    </item>
  </channel>
</rss>

