<?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 Questions about CAN state in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-CAN-state/m-p/903323#M13402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we successfully received the CAN message, we checked that 'mbs [mb_idx] .state' was set to 'FLEXCAN_MB_IDLE' in 'FLEXCAN_DRV_GetTransferStatus'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, there is a problem when receiving different CAN ID Messages.&lt;BR /&gt;'Mbs [mb_idx] .state' is set to 'FLEXCAN_MB_IDLE' regardless of the CAN ID when receiving the first CAN ID Message and receiving another CAN ID Message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To improve this, 'CAN_Init' is performed after 'CAN_Deinit', but mbs '[mb_idx] .state' is keep as 'FLEXCAN_MB_IDLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex)&lt;/P&gt;&lt;P&gt;while(CAN_GetTransferStatus(&amp;amp;can_pal1_instance, RX_BUFF_IDX) == STATUS_BUSY);&lt;/P&gt;&lt;P&gt;CAN_Deinit(&amp;amp;can_pal1_instance);&lt;BR /&gt; CAN_Init(&amp;amp;can_pal1_instance, &amp;amp;can_pal1_Config0);&lt;/P&gt;&lt;P&gt;while(CAN_GetTransferStatus(&amp;amp;can_pal1_instance, RX_BUFF_IDX_2) == STATUS_BUSY);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share the guide to resolve this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 May 2019 10:25:21 GMT</pubDate>
    <dc:creator>jm_shin</dc:creator>
    <dc:date>2019-05-22T10:25:21Z</dc:date>
    <item>
      <title>Questions about CAN state</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-CAN-state/m-p/903323#M13402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we successfully received the CAN message, we checked that 'mbs [mb_idx] .state' was set to 'FLEXCAN_MB_IDLE' in 'FLEXCAN_DRV_GetTransferStatus'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, there is a problem when receiving different CAN ID Messages.&lt;BR /&gt;'Mbs [mb_idx] .state' is set to 'FLEXCAN_MB_IDLE' regardless of the CAN ID when receiving the first CAN ID Message and receiving another CAN ID Message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To improve this, 'CAN_Init' is performed after 'CAN_Deinit', but mbs '[mb_idx] .state' is keep as 'FLEXCAN_MB_IDLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex)&lt;/P&gt;&lt;P&gt;while(CAN_GetTransferStatus(&amp;amp;can_pal1_instance, RX_BUFF_IDX) == STATUS_BUSY);&lt;/P&gt;&lt;P&gt;CAN_Deinit(&amp;amp;can_pal1_instance);&lt;BR /&gt; CAN_Init(&amp;amp;can_pal1_instance, &amp;amp;can_pal1_Config0);&lt;/P&gt;&lt;P&gt;while(CAN_GetTransferStatus(&amp;amp;can_pal1_instance, RX_BUFF_IDX_2) == STATUS_BUSY);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share the guide to resolve this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 10:25:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Questions-about-CAN-state/m-p/903323#M13402</guid>
      <dc:creator>jm_shin</dc:creator>
      <dc:date>2019-05-22T10:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about CAN state</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-CAN-state/m-p/903324#M13403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the driver works this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN_Receive(INST_CAN_PAL1, RX_MAILBOX, &amp;amp;recvMsg) is used to start receiving data in RX_MAILBOX. After successful receive "&lt;SPAN&gt;recvMsg" is updated with receive data and driver's structure&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;'mbs [mb_idx] .state' is set to 'FLEXCAN_MB_IDLE'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;To allow another receive into&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;RX_MAILBOX you need to call&amp;nbsp;CAN_Receive(INST_CAN_PAL1, RX_MAILBOX, &amp;amp;recvMsg) again after&amp;nbsp;while(CAN_GetTransferStatus(&amp;amp;can_pal1_instance, RX_BUFF_IDX) == STATUS_BUSY); passes.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 05:35:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Questions-about-CAN-state/m-p/903324#M13403</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2019-05-23T05:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about CAN state</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-CAN-state/m-p/903325#M13404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Petr Stancik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for answer.&lt;/P&gt;&lt;P&gt;CAN_Receive could be called again to receive another message on RX_MAILBOX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to receive various Msg IDs.&lt;BR /&gt;However, in the example, only one Msg ID is set, and only the declared Msg ID is waiting for reception.&lt;BR /&gt;How do I receive various Msg IDs?&lt;BR /&gt;Do I need to set up multiple RX_MALEBOX? Or can I set various Msg IDs in 'CAN_ConfigRxBuff', 'CAN_Receives'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2019 05:05:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Questions-about-CAN-state/m-p/903325#M13404</guid>
      <dc:creator>jm_shin</dc:creator>
      <dc:date>2019-05-27T05:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about CAN state</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-CAN-state/m-p/903326#M13405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;either you will prepare more MBs for individual IDs or will set mask register to accept ID range or all IDs into single MB, as was e.g. discussed here&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/message/1059503"&gt;https://community.nxp.com/message/1059503&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 11:18:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Questions-about-CAN-state/m-p/903326#M13405</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2019-05-28T11:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about CAN state</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-CAN-state/m-p/903327#M13406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Petr Stancik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please explain 'FLEXCAN_DRV_SetRxIndividualMask' function?&lt;/P&gt;&lt;P&gt;I expected to receive CAN msg of all IDs, but olny ID set in 'FLEXCAN_DRV_ConfigRxMb' wiil be received.&lt;/P&gt;&lt;P&gt;The test code is shown below.&lt;/P&gt;&lt;P&gt;=================================================&lt;/P&gt;&lt;P&gt;FLEXCAN_DRV_ConfigRxMb(INST_CANCOM1, RX_MAILBOX_1, &amp;amp;dataInfo, 0x100); //RX_MAILBOX_1 = 1UL&lt;BR /&gt;&amp;nbsp;FLEXCAN_DRV_SetRxIndividualMask(INST_CANCOM1,FLEXCAN_MSG_ID_STD,RX_MAILBOX_1,0xFFFFFFFFu);&lt;BR /&gt;&amp;nbsp;FLEXCAN_DRV_Receive(INST_CANCOM1, RX_MAILBOX_1, &amp;amp;recvBuff);&lt;/P&gt;&lt;P&gt;&amp;nbsp;for(;;)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;if(FLEXCAN_DRV_GetTransferStatus(INST_CANCOM1, RX_MAILBOX_1) == STATUS_SUCCESS)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_DRV_Receive(INST_CANCOM1, RX_MAILBOX_1, &amp;amp;recvBuff);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;count ++;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;=================================================&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #666666; font-family: 'Helvetica','sans-serif'; font-size: 10.5pt;"&gt;Please correct me if I misunderstood your answer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #666666; font-family: 'Helvetica','sans-serif'; font-size: 10.5pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #666666; font-family: 'Helvetica','sans-serif'; font-size: 10.5pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 02:59:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Questions-about-CAN-state/m-p/903327#M13406</guid>
      <dc:creator>jm_shin</dc:creator>
      <dc:date>2019-05-30T02:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about CAN state</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-CAN-state/m-p/903328#M13407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you received single ID only as you did not clear Mask register, also be sure if individual or global masking scheme is used. See more in below post&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/940289?commentID=940289#comment-940289"&gt;https://community.nxp.com/message/940289?commentID=940289#comment-940289&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 07:24:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Questions-about-CAN-state/m-p/903328#M13407</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2019-05-30T07:24:23Z</dc:date>
    </item>
  </channel>
</rss>

