<?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: MPC5777C CAN Rx and TX in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CAN-Rx-and-TX/m-p/687878#M8434</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;Its still not clear how does masking resgiters work here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set IRMQ=1; FEN =1, RFFN =0;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When does below registers come into picture&lt;/P&gt;&lt;P&gt;RXIMR&lt;/P&gt;&lt;P&gt;RXFGMASK&lt;/P&gt;&lt;P&gt;RXMGMASK&lt;/P&gt;&lt;P&gt;RX14MASK&lt;/P&gt;&lt;P&gt;RX15MASK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how is the masking operation takes place when user enters any specific id example A000.&lt;/P&gt;&lt;P&gt;If you have any documentation with example , please provide.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vrushali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Aug 2017 11:46:02 GMT</pubDate>
    <dc:creator>vrushalitaklika</dc:creator>
    <dc:date>2017-08-02T11:46:02Z</dc:date>
    <item>
      <title>MPC5777C CAN Rx and TX</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CAN-Rx-and-TX/m-p/687874#M8430</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 am working on simple tx and rx function of CAN controller of MPC5777C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am referring example&lt;/P&gt;&lt;P&gt;Example-MPC5777C-FlexCAN-simpleTXRX-ECCdisabled-GHS616&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I dont see interrupt flag getting set and transmit and receive is initiated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While debugging my program hangs at below code line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In transmit function&lt;/P&gt;&lt;P&gt;while ( CAN_A.IFLAG1.B.BUF31TO8I == 0) { } // wait until the tx is completed.&lt;BR /&gt; CAN_A.IFLAG1.R = 0x00000100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In receive.&lt;/P&gt;&lt;P&gt;if(CAN_B.IFLAG1.B.BUF31TO8I) // test BUF9I flag if set&lt;BR /&gt; {&lt;BR /&gt; ReceiveMsg();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest what is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vrushali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 10:14:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CAN-Rx-and-TX/m-p/687874#M8430</guid>
      <dc:creator>vrushalitaklika</dc:creator>
      <dc:date>2017-07-31T10:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C CAN Rx and TX</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CAN-Rx-and-TX/m-p/687875#M8431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vrushali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you use the MPC5777C EVB or some own design?&lt;/P&gt;&lt;P&gt;For the first one, did you do the exact EVB connection as it is mentioned in the example?&lt;/P&gt;&lt;P&gt;If you have own design, what is your connection between modules? What is the transceiver used?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case of any failure you can always do several things.&lt;/P&gt;&lt;P&gt;- check the ECR and ECS registers to see what error happen&lt;/P&gt;&lt;P&gt;- measure the signal on the CAN bus, is this normal?&lt;/P&gt;&lt;P&gt;- you can disconnect transceiver and connect TX/RX pin together, this way you can test CANmodule and pin init and you should be able to see message transmitted still, it is not ACKed.&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>Tue, 01 Aug 2017 05:14:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CAN-Rx-and-TX/m-p/687875#M8431</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2017-08-01T05:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C CAN Rx and TX</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CAN-Rx-and-TX/m-p/687876#M8432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Petr, problem is resolved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one more query. I have implemented id filtering in my CAN controller and want to filter below ids. Here is my can initialisation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void initCAN_A()&lt;BR /&gt;{&lt;BR /&gt; uint32_t i = 0;&lt;/P&gt;&lt;P&gt;/* enable the FlexCAN module, reset and freeze */&lt;BR /&gt; CAN_A.MCR.R = (0&amp;nbsp;| CAN_MCR_FRZ&amp;nbsp;| CAN_MCR_FEN | CAN_MCR_HALT&amp;nbsp;| CAN_MCR_SOFTRST&amp;nbsp;| CAN_MCR_SRXDIS&amp;nbsp;| CAN_MCR_BCC&amp;nbsp;&lt;BR /&gt; | CAN_MCR_IDAM_00&amp;nbsp;| 0x0000003F);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /* wait until soft reset completes */&lt;BR /&gt; while(1 == CAN_A.MCR.B.SOFTRST) {};&lt;/P&gt;&lt;P&gt;/* double check that we are actually in freeze mode */&lt;BR /&gt; while(0 == CAN_A.MCR.B.FRZACK) {};&lt;BR /&gt; while(0 == CAN_A.MCR.B.NOTRDY) {};&lt;/P&gt;&lt;P&gt;CAN_A.CTRL1.R = 0x04E40004; /* CAN bus: 40 MHz clksrc, 500K bps with 16 tq */&lt;BR /&gt;CAN_A.CTRL2.B.ECRWRE = 1; // enable editing of MECR&lt;BR /&gt; CAN_A.MECR.B.ECRWRDIS = 0; // enable writes to MECR&lt;BR /&gt; CAN_A.MECR.R = 0x00000100; // disable ECC error ISR and disable ECC at all , keep normal operation&lt;BR /&gt; CAN_A.CTRL2.B.ECRWRE = 0; // lock the MECR again&lt;BR /&gt; CAN_A.CTRL2.B.RFFN =0x1;&lt;/P&gt;&lt;P&gt;for(i=8;i&amp;lt;64;i++)&lt;BR /&gt; {&lt;BR /&gt; CAN_A.MB[i].CS.R = 0;&lt;BR /&gt; }&lt;BR /&gt; ID_Table0_CANA = 0x0000A000;&lt;BR /&gt; ID_Table1_CANA = 0x0000A200; /* */&lt;BR /&gt; ID_Table2_CANA = 0x0000B000; /* */&lt;BR /&gt; ID_Table3_CANA = 0x0000B500; /* */&lt;BR /&gt; ID_Table4_CANA = 0x0000B900; /* */&lt;BR /&gt; ID_Table5_CANA = 0x0000BA00; /* */&lt;BR /&gt; ID_Table6_CANA = 0x0000BB00; /* */&lt;BR /&gt; ID_Table7_CANA = 0x0000C000; /* */&lt;BR /&gt; ID_Table8_CANA = 0x0000C100;&lt;/P&gt;&lt;P&gt;/* set mask registers - all ID bits must match */&lt;BR /&gt; for(i=0;i&amp;lt;64;i++)&lt;BR /&gt; {&lt;BR /&gt; CAN_A.RXIMR[i].R = 0xFFFFFFF;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;//CAN_A.RXIMR[0].R =0x1FFFFFF0;&lt;BR /&gt; CAN_A.IMASK1.R = 0x00000020;&lt;BR /&gt; CAN_A.RXFGMASK.R = 0x1FFFFFFF;&lt;BR /&gt; CAN_A.RX14MASK.R = 0x1FFFFFFF;&lt;BR /&gt; CAN_A.RX15MASK.R = 0x1FFFFFFF;&lt;BR /&gt; /* configure CNTX_A and CNRX_A pin functions on PCR83 and PCR84 */&lt;BR /&gt; SIU.PCR[83].R = 0x060C; /* CNTXA, push/pull, max slew rate */&lt;BR /&gt; SIU.PCR[84].R = 0x0503; /* CNRXA, weak pull device disabled */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; CAN_A.MCR.B.HALT = 0;&lt;BR /&gt; CAN_A.MCR.B.FRZ =0;&lt;BR /&gt; /* wait until FlexCAN ready */&lt;BR /&gt; while(1 == CAN_A.MCR.B.FRZACK) {}&lt;BR /&gt; while(1 == CAN_A.MCR.B.NOTRDY) {}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Can you please confirm if RX mask registers values are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here interrupt is raised only for B100 id. however I haven't configured B100 id in my id table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my main&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;...&lt;BR /&gt; initCAN_A();&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /* Loop forever */&lt;BR /&gt; if(CAN_A.IFLAG1.B.BUF5I) // test BUF9I flag if set&lt;BR /&gt; {&lt;BR /&gt; ReceiveMsg();&lt;BR /&gt;CAN_A.IFLAG1.R = 0x00000020;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please guide here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;vrushali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 10:26:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CAN-Rx-and-TX/m-p/687876#M8432</guid>
      <dc:creator>vrushalitaklika</dc:creator>
      <dc:date>2017-08-01T10:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C CAN Rx and TX</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CAN-Rx-and-TX/m-p/687877#M8433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when RFFN =1 is used&amp;nbsp; then 16 RXFIFO filters are active occupying MB6-MB9 area. Regular MBs starts from MB10.&lt;/P&gt;&lt;P&gt;As you initialize just CS word starting from MB8, some RXFIFO filters are "undefined", maybe some of them are set to hit 0xB100 ID.&lt;/P&gt;&lt;P&gt;Or you incorrectly use the regular MBs, note for RFFN=1 it starts from MB10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note the bits in ID table and the mask registers are shifted left by 1 bit for IDAM=0.&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>Tue, 01 Aug 2017 10:59:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CAN-Rx-and-TX/m-p/687877#M8433</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2017-08-01T10:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C CAN Rx and TX</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CAN-Rx-and-TX/m-p/687878#M8434</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;Its still not clear how does masking resgiters work here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set IRMQ=1; FEN =1, RFFN =0;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When does below registers come into picture&lt;/P&gt;&lt;P&gt;RXIMR&lt;/P&gt;&lt;P&gt;RXFGMASK&lt;/P&gt;&lt;P&gt;RXMGMASK&lt;/P&gt;&lt;P&gt;RX14MASK&lt;/P&gt;&lt;P&gt;RX15MASK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how is the masking operation takes place when user enters any specific id example A000.&lt;/P&gt;&lt;P&gt;If you have any documentation with example , please provide.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vrushali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 11:46:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CAN-Rx-and-TX/m-p/687878#M8434</guid>
      <dc:creator>vrushalitaklika</dc:creator>
      <dc:date>2017-08-02T11:46:02Z</dc:date>
    </item>
  </channel>
</rss>

