<?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: Issue with CAN Frame Transmission and Reception Using PIT on S32K312EVB-Q172 board in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Issue-with-CAN-Frame-Transmission-and-Reception-Using-PIT-on/m-p/1966539#M41601</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241262"&gt;@Mohmedsohel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you share how are you testing your code? Are you using a CAN to USB analyzer? Keep in mind that two nodes (or one node and a CAN analyzer) are needed for CAN communication to work. Are you able to see data transfer without the PIT timer?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most likely your issue is with priorities when entering interrupts. &lt;SPAN&gt;The Interrupt service routing should be a small non-blocking code, but you have a transfer function in your handler.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I would recommend using interruption, or a flag in the handler of the interrupt to signal a new transfer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;void PitNotification(void)
{
    interruptFlag = 1;
}

int main(void)
{ 
...
  /* Infinite loop */
    for (;;)
    {
        if(1 == interruptFlag)
        {
            interruptFlag = 0
            // Transmit CAN message
            FlexCAN_Ip_Send(INST_FLEXCAN_0, TX_MB_IDX, &amp;amp;tx_info, TX_MSG_ID, dummyData); 
        }
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2024 18:25:15 GMT</pubDate>
    <dc:creator>Julián_AragónM</dc:creator>
    <dc:date>2024-10-03T18:25:15Z</dc:date>
    <item>
      <title>Issue with CAN Frame Transmission and Reception Using PIT on S32K312EVB-Q172 board</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-CAN-Frame-Transmission-and-Reception-Using-PIT-on/m-p/1966324#M41585</link>
      <description>&lt;P&gt;Hello NXP Community,&lt;/P&gt;&lt;P&gt;I am working with the S32K312EVB-Q172 and attempting to transmit and receive CAN frames using the Periodic Interrupt Timer (PIT) for timed message transmission. However, I am facing difficulties as the CAN frames are neither being transmitted nor received.&lt;/P&gt;&lt;P&gt;Here are some details about my setup:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Board: S32K312EVB-Q172&lt;/LI&gt;&lt;LI&gt;Peripheral: CAN, utilizing PIT for periodic transmission&lt;/LI&gt;&lt;LI&gt;PIT clock frequency: 30 MHz&lt;/LI&gt;&lt;LI&gt;Desired PIT period: 1 second (I calculated a load value of 30,000,000 for this)&lt;/LI&gt;&lt;LI&gt;System clock: 120 MHz&lt;/LI&gt;&lt;LI&gt;No errors are shown during build or transmission, but frames are not appearing on the CAN bus&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have verified the configurations for both PIT and CAN, as well as the physical connections. Despite this, the issue persists. I am attaching the necessary code files and configurations for further reference.&lt;/P&gt;&lt;P&gt;Could you please help me identify any potential issues or suggest areas to investigate further?&lt;/P&gt;&lt;P&gt;Thank you in advance for your &lt;A href="mailto:assistance.@nxptechsupport" target="_blank"&gt;assistance.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @nxptechsupport&lt;/A&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;@nxp&amp;nbsp; &amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61445"&gt;@nxp&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/94591"&gt;@nxp5&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 10:01:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-CAN-Frame-Transmission-and-Reception-Using-PIT-on/m-p/1966324#M41585</guid>
      <dc:creator>Mohmedsohel</dc:creator>
      <dc:date>2024-10-03T10:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CAN Frame Transmission and Reception Using PIT on S32K312EVB-Q172 board</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-CAN-Frame-Transmission-and-Reception-Using-PIT-on/m-p/1966539#M41601</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241262"&gt;@Mohmedsohel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you share how are you testing your code? Are you using a CAN to USB analyzer? Keep in mind that two nodes (or one node and a CAN analyzer) are needed for CAN communication to work. Are you able to see data transfer without the PIT timer?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most likely your issue is with priorities when entering interrupts. &lt;SPAN&gt;The Interrupt service routing should be a small non-blocking code, but you have a transfer function in your handler.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I would recommend using interruption, or a flag in the handler of the interrupt to signal a new transfer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;void PitNotification(void)
{
    interruptFlag = 1;
}

int main(void)
{ 
...
  /* Infinite loop */
    for (;;)
    {
        if(1 == interruptFlag)
        {
            interruptFlag = 0
            // Transmit CAN message
            FlexCAN_Ip_Send(INST_FLEXCAN_0, TX_MB_IDX, &amp;amp;tx_info, TX_MSG_ID, dummyData); 
        }
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 18:25:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-CAN-Frame-Transmission-and-Reception-Using-PIT-on/m-p/1966539#M41601</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-10-03T18:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CAN Frame Transmission and Reception Using PIT on S32K312EVB-Q172 board</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-CAN-Frame-Transmission-and-Reception-Using-PIT-on/m-p/1966680#M41610</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your suggestions.@Julián_AragónM&lt;/P&gt;&lt;P&gt;I am using a Peak CAN analyzer for testing my code. Without the PIT, I still cannot transmit or receive any CAN data. The issue persists regardless of using the PIT timer or not. Could there be another factor I might be overlooking that's causing the transmission and reception failure?&lt;/P&gt;&lt;P&gt;Additionally, I would appreciate if you could guide me on whether I might be doing something wrong while using the library functions for CAN and PIT. Is there something specific I should be paying attention to when using these functions?&lt;/P&gt;&lt;P&gt;Best Regards : Md.Sohel&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 04:17:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-CAN-Frame-Transmission-and-Reception-Using-PIT-on/m-p/1966680#M41610</guid>
      <dc:creator>Mohmedsohel</dc:creator>
      <dc:date>2024-10-04T04:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CAN Frame Transmission and Reception Using PIT on S32K312EVB-Q172 board</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-CAN-Frame-Transmission-and-Reception-Using-PIT-on/m-p/1967125#M41640</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241262"&gt;@Mohmedsohel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If CAN transmission is not working without PIT, maybe check the CAN analyzer configuration, such as baud rate, sample point, connections, etc.&lt;/P&gt;
&lt;P&gt;You can also test the&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-CAN-Transmit-amp-Receive-Using-MB-amp-FIFO-DMA/ta-p/1789196" target="_blank"&gt;Example S32K312 CAN Transmit &amp;amp; Receive Using MB &amp;amp; FIFO DMA DS3.5 RTD300 - NXP Community&lt;/A&gt;&amp;nbsp;demo. It configures a CAN application at 500kbps with the PIT module:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_0-1728074436056.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/302778i7C9DBBF9932723D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_0-1728074436056.png" alt="Julin_AragnM_0-1728074436056.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 20:45:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-CAN-Frame-Transmission-and-Reception-Using-PIT-on/m-p/1967125#M41640</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-10-04T20:45:16Z</dc:date>
    </item>
  </channel>
</rss>

