<?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>S32KのトピックS32K344 - FlexCAN - Legacy RxFIFO</title>
    <link>https://community.nxp.com/t5/S32K/S32K344-FlexCAN-Legacy-RxFIFO/m-p/1649296#M22862</link>
    <description>&lt;P&gt;Hello NXP team!&lt;/P&gt;&lt;P&gt;What are the steps to configure FlexCAN into Legacy RxFIFO mode ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have done so far:&lt;/P&gt;&lt;P&gt;1. Configure PIN from pin tool&lt;/P&gt;&lt;P&gt;2. Configure FlexCAN3 + IntCtrl from peripheral tool&lt;/P&gt;&lt;P&gt;In the code....&lt;/P&gt;&lt;P&gt;3. Init clocks&lt;/P&gt;&lt;P&gt;4. Init interrupt controller and FlexCAN3 interrupt +set IRQ priority&lt;/P&gt;&lt;P&gt;5. Init FlexCAN3 peripheral (FlexCAN_Ip_Init)&lt;/P&gt;&lt;P&gt;6. Setup ID filter Table for RxFIFO (FlexCAN_Ip_ConfigRxFifo)&lt;/P&gt;&lt;P&gt;7. Put FlexCAN peripheral into Start Mode (FlexCAN_Ip_SetStartMode)&lt;/P&gt;&lt;P&gt;8. Enter a while(1) loop and wait for IRQ of FlexCAN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;9. I'm sending a packet via my PC by using a usb to can controller of PEAK-System.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;10. I get a message that the bus is heavy and I don't see anything changing until I stop the communication myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've studied the RM of S32K344 regarding FlexCAN and I have configured in the past the Enchanced RxFIFO for FlexCAN0 but it is not supported for FlexCAN1,2 and 3 so I need to setup the Legacy RxFIFO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a. I've sent a message with the same ID as the ID used in the ID Filter table.&lt;/P&gt;&lt;P&gt;b. My bitrate is 500Kb in both devices (my MCU and PCAN controller).&lt;/P&gt;&lt;P&gt;c.FlexCAN clock is 16MHz&lt;/P&gt;&lt;P&gt;d. My configurations are those:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;     .cfg =
     {
          //CAN periph configs
          .flexcanMode                    = FLEXCAN_NORMAL_MODE,
          .ctrlOptions                    = (FLEXCAN_IP_PROTOCOL_EXCEPTION_U32),
          .fd_enable                      = false,
          .enhCbtEnable                   = false,
          .bitRateSwitch                  = false,
          .bitrate                        = {2, 2, 3, 4, 2},
          .bitrate_cbt                    = {2, 2, 3, 4, 2},

          //CAN IRQ callback pointers
          .Callback                       = flexcan3_cb,
          .ErrorCallback                  = NULL_PTR,

          // MailBox configs
          .max_num_mb                     = 32,
          .payload                        = {FLEXCAN_PAYLOAD_SIZE_8, FLEXCAN_PAYLOAD_SIZE_8, FLEXCAN_PAYLOAD_SIZE_8},

          //RxFIFO configs
          .is_rx_fifo_needed              = true ,
          .num_id_filters                 = FLEXCAN_RX_FIFO_ID_FILTERS_8,
          .transfer_type                  = FLEXCAN_RXFIFO_USING_INTERRUPTS,

          //Enchanced RxFIFO configs
          .is_enhanced_rx_fifo_needed     = false,
          .num_enhanced_std_id_filters    = 0,
          .num_enhanced_ext_id_filters    = 0,
          .num_enhanced_watermark         = 0,
     },&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;kyf&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 09:35:01 GMT</pubDate>
    <dc:creator>kyf</dc:creator>
    <dc:date>2023-05-12T09:35:01Z</dc:date>
    <item>
      <title>S32K344 - FlexCAN - Legacy RxFIFO</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-FlexCAN-Legacy-RxFIFO/m-p/1649296#M22862</link>
      <description>&lt;P&gt;Hello NXP team!&lt;/P&gt;&lt;P&gt;What are the steps to configure FlexCAN into Legacy RxFIFO mode ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have done so far:&lt;/P&gt;&lt;P&gt;1. Configure PIN from pin tool&lt;/P&gt;&lt;P&gt;2. Configure FlexCAN3 + IntCtrl from peripheral tool&lt;/P&gt;&lt;P&gt;In the code....&lt;/P&gt;&lt;P&gt;3. Init clocks&lt;/P&gt;&lt;P&gt;4. Init interrupt controller and FlexCAN3 interrupt +set IRQ priority&lt;/P&gt;&lt;P&gt;5. Init FlexCAN3 peripheral (FlexCAN_Ip_Init)&lt;/P&gt;&lt;P&gt;6. Setup ID filter Table for RxFIFO (FlexCAN_Ip_ConfigRxFifo)&lt;/P&gt;&lt;P&gt;7. Put FlexCAN peripheral into Start Mode (FlexCAN_Ip_SetStartMode)&lt;/P&gt;&lt;P&gt;8. Enter a while(1) loop and wait for IRQ of FlexCAN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;9. I'm sending a packet via my PC by using a usb to can controller of PEAK-System.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;10. I get a message that the bus is heavy and I don't see anything changing until I stop the communication myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've studied the RM of S32K344 regarding FlexCAN and I have configured in the past the Enchanced RxFIFO for FlexCAN0 but it is not supported for FlexCAN1,2 and 3 so I need to setup the Legacy RxFIFO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a. I've sent a message with the same ID as the ID used in the ID Filter table.&lt;/P&gt;&lt;P&gt;b. My bitrate is 500Kb in both devices (my MCU and PCAN controller).&lt;/P&gt;&lt;P&gt;c.FlexCAN clock is 16MHz&lt;/P&gt;&lt;P&gt;d. My configurations are those:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;     .cfg =
     {
          //CAN periph configs
          .flexcanMode                    = FLEXCAN_NORMAL_MODE,
          .ctrlOptions                    = (FLEXCAN_IP_PROTOCOL_EXCEPTION_U32),
          .fd_enable                      = false,
          .enhCbtEnable                   = false,
          .bitRateSwitch                  = false,
          .bitrate                        = {2, 2, 3, 4, 2},
          .bitrate_cbt                    = {2, 2, 3, 4, 2},

          //CAN IRQ callback pointers
          .Callback                       = flexcan3_cb,
          .ErrorCallback                  = NULL_PTR,

          // MailBox configs
          .max_num_mb                     = 32,
          .payload                        = {FLEXCAN_PAYLOAD_SIZE_8, FLEXCAN_PAYLOAD_SIZE_8, FLEXCAN_PAYLOAD_SIZE_8},

          //RxFIFO configs
          .is_rx_fifo_needed              = true ,
          .num_id_filters                 = FLEXCAN_RX_FIFO_ID_FILTERS_8,
          .transfer_type                  = FLEXCAN_RXFIFO_USING_INTERRUPTS,

          //Enchanced RxFIFO configs
          .is_enhanced_rx_fifo_needed     = false,
          .num_enhanced_std_id_filters    = 0,
          .num_enhanced_ext_id_filters    = 0,
          .num_enhanced_watermark         = 0,
     },&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;kyf&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 09:35:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-FlexCAN-Legacy-RxFIFO/m-p/1649296#M22862</guid>
      <dc:creator>kyf</dc:creator>
      <dc:date>2023-05-12T09:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 - FlexCAN - Legacy RxFIFO</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-FlexCAN-Legacy-RxFIFO/m-p/1649584#M22879</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;steps you have looks correct, and it is similar as for enhanced RXFIFO, just configure legacy RXFIFO.&lt;BR /&gt;You should also add configuration of mask registers between steps 6 and 7 and after step 7 call&amp;nbsp;FlexCAN_Ip_RxFifo.&lt;/P&gt;
&lt;P&gt;The Legacy RXFIFO use case is explained in&amp;nbsp;&lt;A href="https://www.nxp.com/webapp/Download?colCode=18_S32K3XX_COMMUNICATION_MODULES_FLEXCAN_WITH_RTD" target="_blank"&gt;https://www.nxp.com/webapp/Download?colCode=18_S32K3XX_COMMUNICATION_MODULES_FLEXCAN_WITH_RTD&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you see any issues with communication just read ESR1/ECR registers, if any errors are detected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 16:30:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-FlexCAN-Legacy-RxFIFO/m-p/1649584#M22879</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2023-05-12T16:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 - FlexCAN - Legacy RxFIFO</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-FlexCAN-Legacy-RxFIFO/m-p/1650005#M22901</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961"&gt;@PetrS&lt;/a&gt; for reaching out !!&lt;/P&gt;&lt;P&gt;I will try your suggestions and read the document that you have shared with me and I'll be back with comments this evening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;kyf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 06:40:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-FlexCAN-Legacy-RxFIFO/m-p/1650005#M22901</guid>
      <dc:creator>kyf</dc:creator>
      <dc:date>2023-05-15T06:40:47Z</dc:date>
    </item>
  </channel>
</rss>

