<?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: S32K144 CAN problem in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639930#M379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also modified CAN examples to work in FIFO mode. It works, but I see unexpected data byte swapping/reversing in every 4 byte group on the receiving side in RX FIFO.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I send 8 bytes: 0,1,2,3,4,5,6,7.&lt;/P&gt;&lt;P&gt;In RX FIFO I see: 3,2,1,0,7,6,5,4.&lt;/P&gt;&lt;P&gt;Did you see anything like that with your code and board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I do not see that problem in normal mailbox mode (without FIFO).&lt;/P&gt;&lt;P&gt;My changes to the example project are very similar to yours, but I do not use loopback. I use another board to transmit instead.&lt;/P&gt;&lt;P&gt;Also noticed you have ".fd_enable = true" in SendCANData(), but maybe it&amp;nbsp;is&amp;nbsp;ignored by driver since module is not in FD mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mikhail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Apr 2017 22:20:55 GMT</pubDate>
    <dc:creator>mikhail_l</dc:creator>
    <dc:date>2017-04-04T22:20:55Z</dc:date>
    <item>
      <title>S32K144 CAN problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639928#M377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we are using S32K144 Flexcan, and MB1 receive through interrupt, and find the data is stored in EmbeddedRAMx.&lt;/P&gt;&lt;P&gt;we want to interpret these data,but we don't know these meanings, pls see the attached file.&lt;/P&gt;&lt;P&gt;also do you have the examples using CAN FIFO mode?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 06:28:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639928#M377</guid>
      <dc:creator>huaping</dc:creator>
      <dc:date>2017-03-31T06:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639929#M378</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;If 8 data byte payload size is used then four EmbeddedRAMx words represents single Message Buffer, as following for MB0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/17748i3C987D305BFD00F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;MB1 belongs to EmbeddedRAM4-7, and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have modified the CAN_MASTER_example to enable the RXFIFO. You can test it on the EVB.&lt;/P&gt;&lt;P&gt;The internal loopback is enabled so single board can be used. The MB8 is used to send a message upon button press and is received through RXFIFO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 12:54:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639929#M378</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2017-04-04T12:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639930#M379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also modified CAN examples to work in FIFO mode. It works, but I see unexpected data byte swapping/reversing in every 4 byte group on the receiving side in RX FIFO.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I send 8 bytes: 0,1,2,3,4,5,6,7.&lt;/P&gt;&lt;P&gt;In RX FIFO I see: 3,2,1,0,7,6,5,4.&lt;/P&gt;&lt;P&gt;Did you see anything like that with your code and board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I do not see that problem in normal mailbox mode (without FIFO).&lt;/P&gt;&lt;P&gt;My changes to the example project are very similar to yours, but I do not use loopback. I use another board to transmit instead.&lt;/P&gt;&lt;P&gt;Also noticed you have ".fd_enable = true" in SendCANData(), but maybe it&amp;nbsp;is&amp;nbsp;ignored by driver since module is not in FD mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mikhail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 22:20:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639930#M379</guid>
      <dc:creator>mikhail_l</dc:creator>
      <dc:date>2017-04-04T22:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639931#M380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I import your example, but failed to compile it, there any many errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pls help check the attached files for errors.&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, 05 Apr 2017 09:07:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639931#M380</guid>
      <dc:creator>huaping</dc:creator>
      <dc:date>2017-04-05T09:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639932#M381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mikhail,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module itself does not do any byte swapping.&lt;/P&gt;&lt;P&gt;Seems the API itself does swapping. See how the receive buffer is filled from MBx or RXFIFO in functions FLEXCAN_HAL_ReadRxFifo() and FLEXCAN_HAL_GetMsgBuff().&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Note the S32K144 is little endian device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a memory map when&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uint8_t txBuffer[8] = {0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is send with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SendCANData(TX_MAILBOX, TX_MSG_ID, &amp;amp;txBuffer[0], 8UL);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using the MB8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The debugger is stopped in FLEXCAN_DRV_IRQHandler, the RXFIFO is at address 0x40024080&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/17758i5C5E39919AE81B1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I see no byte swap in RXFIFO. data from MB8 is received in the same order as it should.&lt;/P&gt;&lt;P&gt;The same memory window from S32DS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/17811i729F21E96A263156/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&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>Thu, 06 Apr 2017 14:01:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639932#M381</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2017-04-06T14:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639933#M382</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;which version of S32DS you use? Did you try to open it in version 1.3?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just tested in 1.3 and it works correct on my side. Could you please try to import project once again, clean project at first and then compile?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you already installed Update1? If no, could you please try to install and test the project once again?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-333898"&gt;https://community.nxp.com/docs/DOC-333898&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 14:09:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639933#M382</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-04-06T14:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639934#M383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right!&amp;nbsp;&lt;/P&gt;&lt;P&gt;In&amp;nbsp;FLEXCAN_HAL_GetMsgBuff() they use&amp;nbsp;REV_BYTES_32() to convert the data to little endian, but in&amp;nbsp;FLEXCAN_HAL_ReadRxFifo() they do not do swapping and therefore data ends up being reversed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Mikhail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 20:45:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639934#M383</guid>
      <dc:creator>mikhail_l</dc:creator>
      <dc:date>2017-04-06T20:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639935#M384</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; After&amp;nbsp;update&amp;nbsp;S32 DS V1.3, and change SDK&amp;nbsp;&amp;nbsp;path, it works. But I have another problem when I use interrupt mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; It can enter RX interrupt function every time, but it only sends out data in the first time. From second time, no data is sent out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Would you pls help check my attached example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Also, Is there any example to guide me how to use RX FIFO? How can I know which MBx is stored, and how to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 14:43:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639935#M384</guid>
      <dc:creator>huaping</dc:creator>
      <dc:date>2017-04-12T14:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639936#M385</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;I have gone through the Discussion,&lt;/P&gt;&lt;P&gt;I need help on the FleXCAN details are,&lt;/P&gt;&lt;P&gt;I'm working on S32K144 MCU for My TPMS Application, My requirement to use the CAN with Extended the ID Format,&lt;/P&gt;&lt;P&gt;For Startup, I have used the Non-SDK FlexCAN Example&amp;nbsp;to test the CAN Communication(MCU CAN_TX Pin) transmission, But unfortunately, this example Not working on EVB.&lt;/P&gt;&lt;P&gt;I can't see ant Data format signal with a scope, I have tapped the MCU CAN_TX Line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Testing example found the CookBook documents Number: AN5413&lt;/P&gt;&lt;P&gt;Note: My Project used Non-SDK.&lt;/P&gt;&lt;P&gt;Please help me with this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sakthivel K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 02:05:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639936#M385</guid>
      <dc:creator>sakthivelkuland</dc:creator>
      <dc:date>2018-07-03T02:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CAN problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639937#M386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another issue about flexcan on s32k144, can you help to resolve?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/481750"&gt;https://community.nxp.com/thread/481750&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 12:07:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CAN-problem/m-p/639937#M386</guid>
      <dc:creator>jay_zhang</dc:creator>
      <dc:date>2018-08-09T12:07:15Z</dc:date>
    </item>
  </channel>
</rss>

