<?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 S32K144 FLEXCAN in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-FLEXCAN/m-p/676055#M821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I am working on FLEX CAN in S32K144 EVB. I configured CAN bus to 500 Kbps. I am getting Synchronization error while participating in bus. I configured CAN as per example code given in S32K design studio. I am actually participating in CAN bus with simulator (Other controller) which is configured to 500 kbps. When I communicates with simulator with other controller, I'm getting response from simulator. But when I communicating with S32K144, it is giving synchronization error. I am thinking that S32K144 EVB is not configured to 500 Kbps.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I selected 8 MHz crystal oscillator as CAN clock source.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;PSEG2 = 3&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;PSEG1 = 3&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;RJW = 3&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;PROPSEG = 6&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;PRESDIV = 0&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;In ESR1 register SYNCH bit is showing 0 that means CAN is not synchronized with the bus. Actually I'm not using SBC chip as CAN transceiver. I am using other transceiver that is working fine when I tested with other micro controller.&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;The ESR1 and ECR registers values are&lt;/P&gt;&lt;P style="border: 0px;"&gt;ESR1 = 0x00010112&lt;/P&gt;&lt;P style="border: 0px;"&gt;ECR = 00008100&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;In example interrupts are not enabled but I enabled error interrupts and Bus off interrupts. I am using interrupt method.&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;When I writing 0x7E0 CAN ID in RAM register in 18 th position. It is storing like&lt;/P&gt;&lt;P style="border: 0px;"&gt;Data Byte 0(DB-0) = &amp;nbsp;0x01&lt;/P&gt;&lt;P style="border: 0px;"&gt;DB1 = 0xE0&lt;/P&gt;&lt;P style="border: 0px;"&gt;DB2 = 0x00&lt;/P&gt;&lt;P style="border: 0px;"&gt;DB3 = 0x00&lt;/P&gt;&lt;P style="border: 0px;"&gt;but I'm thinking that it should store like&lt;/P&gt;&lt;P style="border: 0px;"&gt;DB0 = 0x01&lt;/P&gt;&lt;P style="border: 0px;"&gt;DB1 = 0xF0&lt;/P&gt;&lt;P style="border: 0px;"&gt;DB2 = 0x00&lt;/P&gt;&lt;P style="border: 0px;"&gt;DB3 = 0x00&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;When I write 0x7E8 also it is storing like 0x1EA but i'm thinking that it should store like 0x1FA. Why it is storing like that i'm not understanding.&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;Please help me. Waiting for your response.&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;Regards,&lt;/P&gt;&lt;P style="border: 0px;"&gt;Yashwanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jun 2017 05:59:24 GMT</pubDate>
    <dc:creator>yashwanthk</dc:creator>
    <dc:date>2017-06-28T05:59:24Z</dc:date>
    <item>
      <title>S32K144 FLEXCAN</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-FLEXCAN/m-p/676055#M821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I am working on FLEX CAN in S32K144 EVB. I configured CAN bus to 500 Kbps. I am getting Synchronization error while participating in bus. I configured CAN as per example code given in S32K design studio. I am actually participating in CAN bus with simulator (Other controller) which is configured to 500 kbps. When I communicates with simulator with other controller, I'm getting response from simulator. But when I communicating with S32K144, it is giving synchronization error. I am thinking that S32K144 EVB is not configured to 500 Kbps.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I selected 8 MHz crystal oscillator as CAN clock source.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;PSEG2 = 3&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;PSEG1 = 3&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;RJW = 3&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;PROPSEG = 6&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;PRESDIV = 0&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;In ESR1 register SYNCH bit is showing 0 that means CAN is not synchronized with the bus. Actually I'm not using SBC chip as CAN transceiver. I am using other transceiver that is working fine when I tested with other micro controller.&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;The ESR1 and ECR registers values are&lt;/P&gt;&lt;P style="border: 0px;"&gt;ESR1 = 0x00010112&lt;/P&gt;&lt;P style="border: 0px;"&gt;ECR = 00008100&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;In example interrupts are not enabled but I enabled error interrupts and Bus off interrupts. I am using interrupt method.&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;When I writing 0x7E0 CAN ID in RAM register in 18 th position. It is storing like&lt;/P&gt;&lt;P style="border: 0px;"&gt;Data Byte 0(DB-0) = &amp;nbsp;0x01&lt;/P&gt;&lt;P style="border: 0px;"&gt;DB1 = 0xE0&lt;/P&gt;&lt;P style="border: 0px;"&gt;DB2 = 0x00&lt;/P&gt;&lt;P style="border: 0px;"&gt;DB3 = 0x00&lt;/P&gt;&lt;P style="border: 0px;"&gt;but I'm thinking that it should store like&lt;/P&gt;&lt;P style="border: 0px;"&gt;DB0 = 0x01&lt;/P&gt;&lt;P style="border: 0px;"&gt;DB1 = 0xF0&lt;/P&gt;&lt;P style="border: 0px;"&gt;DB2 = 0x00&lt;/P&gt;&lt;P style="border: 0px;"&gt;DB3 = 0x00&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;When I write 0x7E8 also it is storing like 0x1EA but i'm thinking that it should store like 0x1FA. Why it is storing like that i'm not understanding.&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;Please help me. Waiting for your response.&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;Regards,&lt;/P&gt;&lt;P style="border: 0px;"&gt;Yashwanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 05:59:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-FLEXCAN/m-p/676055#M821</guid>
      <dc:creator>yashwanthk</dc:creator>
      <dc:date>2017-06-28T05:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 FLEXCAN</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-FLEXCAN/m-p/676056#M822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yashwanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CAN bit timing is correct.&lt;/P&gt;&lt;P&gt;The SYNCH=0 indicates the module cannot synchronize to the bus, meaning it does not see bus recessive. Could be caused by transceiver, connection between MCU and transceiver or the MCU pin assignment. For the first 2 you can measure the lines with the scope, if proper signals are seen.&lt;/P&gt;&lt;P&gt;The pin assignment can be tested if the transceiver is unconnected and TX/RX pins are connected. Then you should be able to transmit a message and see it on TX/RX line, it will not be ACKed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the ID assignment; it looks you write the ID incorrectly. What is the code you are using?&lt;/P&gt;&lt;P&gt;The standard ID = 0x7E0 should be written as&lt;/P&gt;&lt;P&gt;DB0 = 0x1F&lt;/P&gt;&lt;P&gt;DB1 = 0x80&lt;/P&gt;&lt;P&gt;DB2 = 0x00&lt;/P&gt;&lt;P&gt;DB3 = 0x00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The standard ID = 0x7E8 then as&lt;/P&gt;&lt;P&gt;DB0 = 0x1F&lt;/P&gt;&lt;P&gt;DB1 = 0xA0&lt;/P&gt;&lt;P&gt;DB2 = 0x00&lt;/P&gt;&lt;P&gt;DB3 = 0x00&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>Wed, 28 Jun 2017 09:25:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-FLEXCAN/m-p/676056#M822</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2017-06-28T09:25:27Z</dc:date>
    </item>
  </channel>
</rss>

