<?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 Several Configuration question about S32K FlexCAN in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Several-Configuration-question-about-S32K-FlexCAN/m-p/897998#M4422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deer engineer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I have three question when configuring&amp;nbsp;S32K146 FlexCAN with&amp;nbsp;&lt;SPAN class=""&gt;ProcessorExpert&lt;/SPAN&gt; as follows：&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(1) How to check the bus off status？&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;There is not API or callback function to check the bus off status in &lt;SPAN class=""&gt;ProcessorExpert&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;I just find the&amp;nbsp;IRQ handler[&lt;EM&gt;CAN0_ORed_IRQHandler(void)&lt;/EM&gt;]&amp;nbsp; for OR'ed interrupts can be used to check bus off.&lt;/P&gt;&lt;P&gt;Is there another way to check bus off ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(2) How many &lt;SPAN class=""&gt;mailbox&lt;/SPAN&gt;&amp;nbsp;are&amp;nbsp;occupied when Rx FIFO is used ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I want to &lt;STRONG style="font-weight: 400; "&gt;configure&amp;nbsp;&lt;/STRONG&gt;MBs 0~5 for Rx FIFO and&amp;nbsp;&lt;STRONG style="font-weight: 400; "&gt;configure&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;MBs 7~31 for&amp;nbsp;i&lt;SPAN class=""&gt;ndividual&lt;/SPAN&gt;&amp;nbsp;MBs, but when I do so, I find MB 7 can not be used as&amp;nbsp;i&lt;SPAN class=""&gt;ndividual&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;MB and MB8~31 can be&amp;nbsp;used as&amp;nbsp;&lt;SPAN&gt;i&lt;/SPAN&gt;&lt;SPAN class=""&gt;ndividual&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;MB.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="font-weight: normal;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;May I ask if there is an error in doing this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;(3)How to&amp;nbsp; s&lt;SPAN class=""&gt;electable priority between mailboxes and Rx FIFO during matching process&lt;/SPAN&gt;&amp;nbsp;in &lt;STRONG&gt;&lt;SPAN class=""&gt;ProcessorExpert&lt;/SPAN&gt;&lt;/STRONG&gt; configuration?&lt;/STRONG&gt;&lt;BR style="font-weight: normal;" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can not find&amp;nbsp;the optional configuration item about the&amp;nbsp;&lt;SPAN class=""&gt;priority between mailboxes and Rx FIFO&amp;nbsp;during matching process in&amp;nbsp;ProcessorExpert.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_12.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63042i38B8C2657A3C429A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Attachment information：&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;S32 Design Studio for ARM&amp;nbsp;Version: 2018.R1&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;SDK V0.8.6 /SDK V3.0.1&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class="" style="color: #777777; background-color: #ffffff; font-weight: 400; font-size: 16px;"&gt;&lt;DIV class="" style="background-color: #ffffff; padding-bottom: 56px;"&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="background-color: #ffffff; padding: 20px 0px 0px;"&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="font-size: 12px; margin-top: 12px; margin-right: 20px;"&gt;&lt;DIV class=""&gt;6/5000&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="color: #444444; background: none transparent; border: none; font-weight: bold; text-decoration: none; font-size: 11px; margin: 4px 0px 0px 4px;"&gt;&lt;SPAN class="" style="margin: 6px 0px 0px 6px;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="border: 0px; font-weight: normal; font-size: 13px; margin-right: 1px;"&gt;&lt;DIV class="" style="margin: 9px 0px 0px 12px;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #777777; background-color: #f5f5f5; font-weight: 400; font-size: 16px;"&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="background-color: #f5f5f5; padding: 20px 16px 56px 28px;"&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="padding-right: 44px;"&gt;&lt;SPAN class="" style="color: rgba(0, 0, 0, 0.87); font-size: 24px; padding-right: 8px;"&gt;&lt;SPAN class="" title=""&gt;Optional configuration item&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Apr 2019 13:32:36 GMT</pubDate>
    <dc:creator>qianghu</dc:creator>
    <dc:date>2019-04-16T13:32:36Z</dc:date>
    <item>
      <title>Several Configuration question about S32K FlexCAN</title>
      <link>https://community.nxp.com/t5/S32K/Several-Configuration-question-about-S32K-FlexCAN/m-p/897998#M4422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deer engineer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I have three question when configuring&amp;nbsp;S32K146 FlexCAN with&amp;nbsp;&lt;SPAN class=""&gt;ProcessorExpert&lt;/SPAN&gt; as follows：&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(1) How to check the bus off status？&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;There is not API or callback function to check the bus off status in &lt;SPAN class=""&gt;ProcessorExpert&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;I just find the&amp;nbsp;IRQ handler[&lt;EM&gt;CAN0_ORed_IRQHandler(void)&lt;/EM&gt;]&amp;nbsp; for OR'ed interrupts can be used to check bus off.&lt;/P&gt;&lt;P&gt;Is there another way to check bus off ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(2) How many &lt;SPAN class=""&gt;mailbox&lt;/SPAN&gt;&amp;nbsp;are&amp;nbsp;occupied when Rx FIFO is used ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I want to &lt;STRONG style="font-weight: 400; "&gt;configure&amp;nbsp;&lt;/STRONG&gt;MBs 0~5 for Rx FIFO and&amp;nbsp;&lt;STRONG style="font-weight: 400; "&gt;configure&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;MBs 7~31 for&amp;nbsp;i&lt;SPAN class=""&gt;ndividual&lt;/SPAN&gt;&amp;nbsp;MBs, but when I do so, I find MB 7 can not be used as&amp;nbsp;i&lt;SPAN class=""&gt;ndividual&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;MB and MB8~31 can be&amp;nbsp;used as&amp;nbsp;&lt;SPAN&gt;i&lt;/SPAN&gt;&lt;SPAN class=""&gt;ndividual&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;MB.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="font-weight: normal;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;May I ask if there is an error in doing this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;(3)How to&amp;nbsp; s&lt;SPAN class=""&gt;electable priority between mailboxes and Rx FIFO during matching process&lt;/SPAN&gt;&amp;nbsp;in &lt;STRONG&gt;&lt;SPAN class=""&gt;ProcessorExpert&lt;/SPAN&gt;&lt;/STRONG&gt; configuration?&lt;/STRONG&gt;&lt;BR style="font-weight: normal;" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can not find&amp;nbsp;the optional configuration item about the&amp;nbsp;&lt;SPAN class=""&gt;priority between mailboxes and Rx FIFO&amp;nbsp;during matching process in&amp;nbsp;ProcessorExpert.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_12.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63042i38B8C2657A3C429A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Attachment information：&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;S32 Design Studio for ARM&amp;nbsp;Version: 2018.R1&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;SDK V0.8.6 /SDK V3.0.1&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class="" style="color: #777777; background-color: #ffffff; font-weight: 400; font-size: 16px;"&gt;&lt;DIV class="" style="background-color: #ffffff; padding-bottom: 56px;"&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="background-color: #ffffff; padding: 20px 0px 0px;"&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="font-size: 12px; margin-top: 12px; margin-right: 20px;"&gt;&lt;DIV class=""&gt;6/5000&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="color: #444444; background: none transparent; border: none; font-weight: bold; text-decoration: none; font-size: 11px; margin: 4px 0px 0px 4px;"&gt;&lt;SPAN class="" style="margin: 6px 0px 0px 6px;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="border: 0px; font-weight: normal; font-size: 13px; margin-right: 1px;"&gt;&lt;DIV class="" style="margin: 9px 0px 0px 12px;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #777777; background-color: #f5f5f5; font-weight: 400; font-size: 16px;"&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="background-color: #f5f5f5; padding: 20px 16px 56px 28px;"&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="padding-right: 44px;"&gt;&lt;SPAN class="" style="color: rgba(0, 0, 0, 0.87); font-size: 24px; padding-right: 8px;"&gt;&lt;SPAN class="" title=""&gt;Optional configuration item&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 13:32:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Several-Configuration-question-about-S32K-FlexCAN/m-p/897998#M4422</guid>
      <dc:creator>qianghu</dc:creator>
      <dc:date>2019-04-16T13:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Several Configuration question about S32K FlexCAN</title>
      <link>https://community.nxp.com/t5/S32K/Several-Configuration-question-about-S32K-FlexCAN/m-p/897999#M4423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;1. How to check the bus off status？&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;EM&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;The bus off can be checked by installing the errorcallback and then check the error status.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;EM&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;Be aware the driver is selfrecovery enabled from bus_off state.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;volatile uint32_t callback_error_status = 0u;&lt;BR /&gt;volatile flexcan_event_type_t can_callback_event;&lt;BR /&gt;void flexcan_callback(uint8_t instance,&lt;BR /&gt; flexcan_event_type_t eventType,&lt;BR /&gt; uint32_t buffIdx,&lt;BR /&gt; flexcan_state_t *flexcanState)&lt;BR /&gt;{&lt;BR /&gt; ++callback_status;&lt;BR /&gt; can_callback_event = eventType;&lt;BR /&gt; callback_error_status = FLEXCAN_DRV_GetErrorStatus(instance);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;main(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;FLEXCAN_DRV_Init(INST_CANCOM1, &amp;amp;canCom1_State, &amp;amp;canCom1_InitConfig0);&lt;/P&gt;&lt;P&gt;FLEXCAN_DRV_InstallErrorCallback(INST_CANCOM1,&lt;BR /&gt; (flexcan_error_callback_t)flexcan_callback,&lt;BR /&gt; &amp;amp;canCom1_State);&lt;/P&gt;&lt;P&gt;if(&lt;SPAN&gt;callback_error_status&amp;nbsp;== BUS_OF_FLAG&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;/* Do your staff */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;(2) How many&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;mailbox&lt;/SPAN&gt;&amp;nbsp;are&amp;nbsp;occupied when Rx FIFO is used ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;EM&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;About the no of mailboxes to be configured the RM specify the space used by RxFIFO as Rx MBs 0-5 and the no of MBs used by RxFIFO filters so the minim amount in case of enabled RxFIFO are at least 8 RxFIFO filters and them occupy the MBs from 6-7 so the next available individual MBs is 8.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;(3) How to&amp;nbsp; s&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;electable priority between mailboxes and Rx FIFO during matching process&lt;/SPAN&gt;&amp;nbsp;in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;ProcessorExpert&lt;/SPAN&gt;configuration?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;EM&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;The priority is not configurable is default one and is based on the filter position/ Individual MB position.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;EM&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;The default first scans the matching individual MBs and then RxFifo filters.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2019 07:22:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Several-Configuration-question-about-S32K-FlexCAN/m-p/897999#M4423</guid>
      <dc:creator>alexandrunan</dc:creator>
      <dc:date>2019-04-17T07:22:47Z</dc:date>
    </item>
  </channel>
</rss>

