<?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>MPC5xxx中的主题 MPC5777C and MCAN Setup Problems</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-and-MCAN-Setup-Problems/m-p/796307#M11622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to implement the MCAN module on MPC5777C, but there're a lot of confusions that on the reference manual and I couldn't understand it. My MPC5777c-512DS model is 3N45H&amp;nbsp;and I referred to the example&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-332753"&gt;Example MPC5777C MCAN simpleTXRX GHS616&lt;/A&gt;&amp;nbsp; that Petr Stancik&amp;nbsp;wrote.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's some questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. On the motherboard reference manual (MPC5777CEVBUG), there're two DB9 connectors, J5 (CAN2) and J6 (CAN). For CAN2, I couldn't see which CAN BUS module it is connect based on "Table2: CAN control jumpers", it said it&lt;/P&gt;&lt;P&gt;connect to PHY TX/RX, but I don't know what PHY TX/RX is. Can you tell me what CAN module the J5 connected to?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Table 2 CAN control jumpers.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67022iD3D9DB4927432863/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table 2 CAN control jumpers.png" alt="Table 2 CAN control jumpers.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. For J6 (CAN), I can see that by put jumper J37 and J38 to position 1-2, it will connect to MCAN1 TX/RX. But from the example that Petr wrote, which states: "the EVB connection:&amp;nbsp;J37 and J38 to position 2-3 to connect MCAN1 TX/RX to transceiver", which is conflict with what EVB manual states, which one should I go? And what does "CAN0-CANH on P15-1 To CAN1-CANH on P14-1" actually meaning? What is P14-1 and P15-1?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Code.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67107i34D1441E83FC934B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Code.png" alt="Code.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. From the EVB manual, it said that pin PC8 should connect with function RX MCAN2, PC9 to TX MCAN2; PL3&amp;nbsp;to TX MCAN1 and PL4 to MCAN2. But on MPC5777c, there's only MCAN0 and MCAN1, not MCAN2. So should I treat MCAN0 on the processor manual as MCAN1 on the motherboard manual, then MCAN1 on the processor manual as MCAN2 on the motherboard manual? Then if that's the case, is J6 supposed connected with MCAN0 or MCAN1? and which position of the jumper J37 and J38 supposed to be?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Table 27 Port pins alternate function.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67076iE6C1F52EA6E1CA48/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table 27 Port pins alternate function.png" alt="Table 27 Port pins alternate function.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. I tried to follow the example and adjust the register (FBTP to DBTP, NBTP to BTP) from 2N45H to 3N45H, and connect MCAN0 to J6, and test the CAN tx. On the pin side, I couldn't see anything transmit to the MCAN0_TX (I've setup the corresponding GPIO pin to be MCAN0_TX functionality). On the internal CAN register side, it issues an bus error with following warning:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCAN0_ECR: TEC 0xF8; CEL 0x20;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCAN0_PSR: LEC: 0x5; EP 1; EW 1; BO 1; FLEC 0x7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCAN0_IR: EP 1; EW 1; BO 1; CRCE 1; ACKE 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCAN0_TXBRP: TRP 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCAN0_CCCR: INIT 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I used is the same as the examle&lt;A href="https://community.nxp.com/docs/DOC-332753"&gt;Example MPC5777C MCAN simpleTXRX GHS616&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;apart from that change between 2N45H and 3N45H.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for any replies.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2018 07:54:42 GMT</pubDate>
    <dc:creator>lukezhang</dc:creator>
    <dc:date>2018-11-02T07:54:42Z</dc:date>
    <item>
      <title>MPC5777C and MCAN Setup Problems</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-and-MCAN-Setup-Problems/m-p/796307#M11622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to implement the MCAN module on MPC5777C, but there're a lot of confusions that on the reference manual and I couldn't understand it. My MPC5777c-512DS model is 3N45H&amp;nbsp;and I referred to the example&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-332753"&gt;Example MPC5777C MCAN simpleTXRX GHS616&lt;/A&gt;&amp;nbsp; that Petr Stancik&amp;nbsp;wrote.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's some questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. On the motherboard reference manual (MPC5777CEVBUG), there're two DB9 connectors, J5 (CAN2) and J6 (CAN). For CAN2, I couldn't see which CAN BUS module it is connect based on "Table2: CAN control jumpers", it said it&lt;/P&gt;&lt;P&gt;connect to PHY TX/RX, but I don't know what PHY TX/RX is. Can you tell me what CAN module the J5 connected to?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Table 2 CAN control jumpers.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67022iD3D9DB4927432863/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table 2 CAN control jumpers.png" alt="Table 2 CAN control jumpers.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. For J6 (CAN), I can see that by put jumper J37 and J38 to position 1-2, it will connect to MCAN1 TX/RX. But from the example that Petr wrote, which states: "the EVB connection:&amp;nbsp;J37 and J38 to position 2-3 to connect MCAN1 TX/RX to transceiver", which is conflict with what EVB manual states, which one should I go? And what does "CAN0-CANH on P15-1 To CAN1-CANH on P14-1" actually meaning? What is P14-1 and P15-1?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Code.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67107i34D1441E83FC934B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Code.png" alt="Code.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. From the EVB manual, it said that pin PC8 should connect with function RX MCAN2, PC9 to TX MCAN2; PL3&amp;nbsp;to TX MCAN1 and PL4 to MCAN2. But on MPC5777c, there's only MCAN0 and MCAN1, not MCAN2. So should I treat MCAN0 on the processor manual as MCAN1 on the motherboard manual, then MCAN1 on the processor manual as MCAN2 on the motherboard manual? Then if that's the case, is J6 supposed connected with MCAN0 or MCAN1? and which position of the jumper J37 and J38 supposed to be?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Table 27 Port pins alternate function.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67076iE6C1F52EA6E1CA48/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table 27 Port pins alternate function.png" alt="Table 27 Port pins alternate function.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. I tried to follow the example and adjust the register (FBTP to DBTP, NBTP to BTP) from 2N45H to 3N45H, and connect MCAN0 to J6, and test the CAN tx. On the pin side, I couldn't see anything transmit to the MCAN0_TX (I've setup the corresponding GPIO pin to be MCAN0_TX functionality). On the internal CAN register side, it issues an bus error with following warning:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCAN0_ECR: TEC 0xF8; CEL 0x20;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCAN0_PSR: LEC: 0x5; EP 1; EW 1; BO 1; FLEC 0x7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCAN0_IR: EP 1; EW 1; BO 1; CRCE 1; ACKE 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCAN0_TXBRP: TRP 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCAN0_CCCR: INIT 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I used is the same as the examle&lt;A href="https://community.nxp.com/docs/DOC-332753"&gt;Example MPC5777C MCAN simpleTXRX GHS616&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;apart from that change between 2N45H and 3N45H.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for any replies.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 07:54:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-and-MCAN-Setup-Problems/m-p/796307#M11622</guid>
      <dc:creator>lukezhang</dc:creator>
      <dc:date>2018-11-02T07:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C and MCAN Setup Problems</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-and-MCAN-Setup-Problems/m-p/796308#M11623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is following default CANs routing for a MPC5777CEVB&amp;nbsp;&amp;nbsp;&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/64059i9775BABA50F3ABE8/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;This should help you to figure out which pin should be configured and what jumper setting should be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: I posted new example for 3N45H mask here:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-342013"&gt;https://community.nxp.com/docs/DOC-342013&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&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, 07 Nov 2018 08:07:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-and-MCAN-Setup-Problems/m-p/796308#M11623</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2018-11-07T08:07:35Z</dc:date>
    </item>
  </channel>
</rss>

