<?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 S32K146 CAN problem in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K146-CAN-problem/m-p/998749#M5920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #333333; font-size: 14px; "&gt;can initialize:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PINS_DRV_SetMuxModeSel(PORTC, ePIN_17, PORT_MUX_ALT3);&amp;nbsp;&lt;BR /&gt; PINS_DRV_SetMuxModeSel(PORTC, ePIN_16, PORT_MUX_ALT3);&amp;nbsp;&lt;BR /&gt; CAN_Init(&amp;amp;can3_pal_instance, &amp;amp;can3_pal_Config0);&lt;BR /&gt; CanSetRate(canNum, rate);&lt;BR /&gt; /* Configure Rx message buffer with index 1 to receive frames with ID 2 */&lt;BR /&gt; CAN_ConfigRxBuff(&amp;amp;can3_pal_instance, eCAN2_RX_BOX, &amp;amp;RcvInfo, RX_MSG_ID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #666666; font-size: 14px; "&gt;Send function:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* Configure TX buffer with index TX_MAILBOX*/&lt;BR /&gt; CAN_ConfigTxBuff(&amp;amp;can3_pal_instance, eCAN2_TX_BOX, &amp;amp;buffCfg);&lt;/P&gt;&lt;P&gt;status = CAN_Send(&amp;amp;can3_pal_instance, eCAN2_TX_BOX, &amp;amp;sendMsg);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #666666; font-size: 14px; "&gt;Receive function:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* Start receiving data in RX_MAILBOX. */&lt;BR /&gt; CAN_Receive(&amp;amp;can1_pal_instance, eCAN0_RX_BOX, &amp;amp;canRxMsg);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;My hardware is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_10.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8813i0CAD6EC8FFCB498F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.png" alt="pastedImage_10.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_11.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8856i04CF72267DCFB6DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_11.png" alt="pastedImage_11.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;hello SDK:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4a90e2; background-color: #f7f8fa; font-weight: normal;"&gt;when I use CAN_h\CAN_l frequently, the program always enters "DefaultISR", or CAN receive buffer cannot enter "FLEXCAN_MB_IDLE", which is always busy.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #f7f8fa; font-weight: normal;"&gt;Therefore, the original CAN was sent normally, but now CAN CAN no longer restore the original sending state.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #f7f8fa; font-weight: normal;"&gt;Can can resume working only through software reset or power-on reset.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #f7f8fa; font-weight: normal;"&gt;Why is that?&lt;SPAN style="font-weight: normal;"&gt;How to solve this problem?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;SPAN class="" style="color: #333333; background-color: #f7f8fa; font-weight: normal;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jan 2020 04:19:11 GMT</pubDate>
    <dc:creator>347996379</dc:creator>
    <dc:date>2020-01-13T04:19:11Z</dc:date>
    <item>
      <title>S32K146 CAN problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-CAN-problem/m-p/998749#M5920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #333333; font-size: 14px; "&gt;can initialize:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PINS_DRV_SetMuxModeSel(PORTC, ePIN_17, PORT_MUX_ALT3);&amp;nbsp;&lt;BR /&gt; PINS_DRV_SetMuxModeSel(PORTC, ePIN_16, PORT_MUX_ALT3);&amp;nbsp;&lt;BR /&gt; CAN_Init(&amp;amp;can3_pal_instance, &amp;amp;can3_pal_Config0);&lt;BR /&gt; CanSetRate(canNum, rate);&lt;BR /&gt; /* Configure Rx message buffer with index 1 to receive frames with ID 2 */&lt;BR /&gt; CAN_ConfigRxBuff(&amp;amp;can3_pal_instance, eCAN2_RX_BOX, &amp;amp;RcvInfo, RX_MSG_ID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #666666; font-size: 14px; "&gt;Send function:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* Configure TX buffer with index TX_MAILBOX*/&lt;BR /&gt; CAN_ConfigTxBuff(&amp;amp;can3_pal_instance, eCAN2_TX_BOX, &amp;amp;buffCfg);&lt;/P&gt;&lt;P&gt;status = CAN_Send(&amp;amp;can3_pal_instance, eCAN2_TX_BOX, &amp;amp;sendMsg);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #666666; font-size: 14px; "&gt;Receive function:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* Start receiving data in RX_MAILBOX. */&lt;BR /&gt; CAN_Receive(&amp;amp;can1_pal_instance, eCAN0_RX_BOX, &amp;amp;canRxMsg);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;My hardware is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_10.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8813i0CAD6EC8FFCB498F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.png" alt="pastedImage_10.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_11.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8856i04CF72267DCFB6DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_11.png" alt="pastedImage_11.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;hello SDK:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4a90e2; background-color: #f7f8fa; font-weight: normal;"&gt;when I use CAN_h\CAN_l frequently, the program always enters "DefaultISR", or CAN receive buffer cannot enter "FLEXCAN_MB_IDLE", which is always busy.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #f7f8fa; font-weight: normal;"&gt;Therefore, the original CAN was sent normally, but now CAN CAN no longer restore the original sending state.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #f7f8fa; font-weight: normal;"&gt;Can can resume working only through software reset or power-on reset.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #f7f8fa; font-weight: normal;"&gt;Why is that?&lt;SPAN style="font-weight: normal;"&gt;How to solve this problem?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;SPAN class="" style="color: #333333; background-color: #f7f8fa; font-weight: normal;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 04:19:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-CAN-problem/m-p/998749#M5920</guid>
      <dc:creator>347996379</dc:creator>
      <dc:date>2020-01-13T04:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 CAN problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-CAN-problem/m-p/998750#M5921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have enabled all the clocks before use the CAN driver, did you that ?&lt;/P&gt;&lt;P&gt;You get default ISR because you probably trigger an exception you need to identify what cause that first ! Try to step in functions to identify exactly at what line is crashing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 09:32:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-CAN-problem/m-p/998750#M5921</guid>
      <dc:creator>alexandrunan</dc:creator>
      <dc:date>2020-01-14T09:32:14Z</dc:date>
    </item>
  </channel>
</rss>

