<?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>S32 Design StudioのトピックRe: S32K142 CAN0 can't work</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/S32K142-CAN0-can-t-work/m-p/956426#M5277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiri,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I just use usb for power supply. I can try again.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2019 09:47:31 GMT</pubDate>
    <dc:creator>jimmyli</dc:creator>
    <dc:date>2019-07-25T09:47:31Z</dc:date>
    <item>
      <title>S32K142 CAN0 can't work</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K142-CAN0-can-t-work/m-p/956424#M5275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I am debugging the CAN function by S32K142, but the CAN can't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;gt;Board: S32K142EVB-Q100&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;gt;SDK: &amp;nbsp; S32K1xx RTM SDK V3.0.0&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;gt;Example (from SDK): can_pal_s32k142&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;gt;Debug status:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a. build the project and enter debugging successfully;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b. set breakpoint, as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c. when press the button sw2 or sw3, it can enter the ISR and goes to breakpoint 1/2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d. when pass the breakpoint 3, I can't receive any data(probe the PTE5/CAN0_TX by oscilloscope);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Note: PTE5 is keeping '1' atfter reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Hope your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//--------------------------------------------------------------&amp;nbsp;&lt;/P&gt;&lt;P&gt;void buttonISR(void)&lt;BR /&gt;{&lt;BR /&gt; /* Check if one of the buttons was pressed */&lt;BR /&gt; uint32_t buttonsPressed = PINS_DRV_GetPortIntFlag(BTN_PORT) &amp;amp;&lt;BR /&gt; ((1 &amp;lt;&amp;lt; BTN1_PIN) | (1 &amp;lt;&amp;lt; BTN2_PIN));&lt;BR /&gt; bool sendFrame = false;&lt;/P&gt;&lt;P&gt;if(buttonsPressed != 0)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;/* Set FlexCAN TX value according to the button pressed */&lt;BR /&gt; switch (buttonsPressed)&lt;BR /&gt; {&lt;BR /&gt; case (1 &amp;lt;&amp;lt; BTN1_PIN):&lt;BR /&gt; ledRequested = LED0_CHANGE_REQUESTED;&lt;BR /&gt; sendFrame = true;&lt;BR /&gt; /* Clear interrupt flag */&lt;BR /&gt; PINS_DRV_ClearPinIntFlagCmd(BTN_PORT, BTN1_PIN); &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;//----Set Breakpoint 1&lt;/SPAN&gt;&lt;BR /&gt; break;&lt;BR /&gt; case (1 &amp;lt;&amp;lt; BTN2_PIN):&lt;BR /&gt; ledRequested = LED1_CHANGE_REQUESTED;&lt;BR /&gt; sendFrame = true;&lt;BR /&gt; /* Clear interrupt flag */&lt;BR /&gt; PINS_DRV_ClearPinIntFlagCmd(BTN_PORT, BTN2_PIN); &amp;nbsp; &amp;nbsp;//----Set Breakpoint 2&lt;BR /&gt; break;&lt;BR /&gt; default:&lt;BR /&gt; PINS_DRV_ClearPortIntFlagCmd(BTN_PORT);&lt;BR /&gt; break;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;if (sendFrame)&lt;BR /&gt; {&lt;BR /&gt; /* Set information about the data to be sent&lt;BR /&gt; * - Standard message ID&lt;BR /&gt; * - Bit rate switch enabled to use a different bitrate for the data segment&lt;BR /&gt; * - Flexible data rate enabled&lt;BR /&gt; * - Use zeros for FD padding&lt;BR /&gt; */&lt;BR /&gt; can_buff_config_t buffCfg = {&lt;BR /&gt; .enableFD = true,&lt;BR /&gt; .enableBRS = true,&lt;BR /&gt; .fdPadding = 0U,&lt;BR /&gt; .idType = CAN_MSG_ID_STD,&lt;BR /&gt; .isRemote = false&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;/* Configure TX buffer with index TX_MAILBOX*/&lt;BR /&gt; CAN_ConfigTxBuff(&amp;amp;can_pal1_instance, TX_MAILBOX, &amp;amp;buffCfg);&lt;/P&gt;&lt;P&gt;/* Prepare message to be sent */&lt;BR /&gt; can_message_t message = {&lt;BR /&gt; .cs = 0U,&lt;BR /&gt; .id = TX_MSG_ID,&lt;BR /&gt; .data[0] = ledRequested,&lt;BR /&gt; .length = 1U&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;/* Send the information via CAN */&lt;BR /&gt; CAN_Send(&amp;amp;can_pal1_instance, TX_MAILBOX, &amp;amp;message); &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;//----Set Breakpoint 3&lt;/SPAN&gt;&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;//------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 07:44:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K142-CAN0-can-t-work/m-p/956424#M5275</guid>
      <dc:creator>jimmyli</dc:creator>
      <dc:date>2019-07-23T07:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: S32K142 CAN0 can't work</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K142-CAN0-can-t-work/m-p/956425#M5276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you using external 12V power supply? This example requires it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 12:58:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K142-CAN0-can-t-work/m-p/956425#M5276</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2019-07-23T12:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: S32K142 CAN0 can't work</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K142-CAN0-can-t-work/m-p/956426#M5277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiri,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I just use usb for power supply. I can try again.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2019 09:47:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K142-CAN0-can-t-work/m-p/956426#M5277</guid>
      <dc:creator>jimmyli</dc:creator>
      <dc:date>2019-07-25T09:47:31Z</dc:date>
    </item>
  </channel>
</rss>

