<?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のトピックMPC5604B FlexCAN sample code not working</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5604B-FlexCAN-sample-code-not-working/m-p/634043#M6006</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;I am trying to run the FlexCAN sample code mentioned in the following link and its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/assets/documents/data/en/application-notes/AN2865.pdf" title="http://www.nxp.com/assets/documents/data/en/application-notes/AN2865.pdf"&gt;http://www.nxp.com/assets/documents/data/en/application-notes/AN2865.pdf&lt;/A&gt;&amp;nbsp; (Section 25.3.2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below are the setup details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Processor board : TRK-USB-MPC5604B&lt;/P&gt;&lt;P&gt;Serial board : TWR-SER&lt;/P&gt;&lt;P&gt;IDE : Code warrior 10.6.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When transmission is done, I am able to see the data in MB01. But, in&amp;nbsp;RecieveMsg() function, its stuck in the while loop.&lt;/P&gt;&lt;P&gt;I am new to this domain and any help will be appreciated..!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2017 06:30:04 GMT</pubDate>
    <dc:creator>vasanthakumarra</dc:creator>
    <dc:date>2017-03-30T06:30:04Z</dc:date>
    <item>
      <title>MPC5604B FlexCAN sample code not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5604B-FlexCAN-sample-code-not-working/m-p/634043#M6006</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;I am trying to run the FlexCAN sample code mentioned in the following link and its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/assets/documents/data/en/application-notes/AN2865.pdf" title="http://www.nxp.com/assets/documents/data/en/application-notes/AN2865.pdf"&gt;http://www.nxp.com/assets/documents/data/en/application-notes/AN2865.pdf&lt;/A&gt;&amp;nbsp; (Section 25.3.2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below are the setup details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Processor board : TRK-USB-MPC5604B&lt;/P&gt;&lt;P&gt;Serial board : TWR-SER&lt;/P&gt;&lt;P&gt;IDE : Code warrior 10.6.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When transmission is done, I am able to see the data in MB01. But, in&amp;nbsp;RecieveMsg() function, its stuck in the while loop.&lt;/P&gt;&lt;P&gt;I am new to this domain and any help will be appreciated..!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 06:30:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5604B-FlexCAN-sample-code-not-working/m-p/634043#M6006</guid>
      <dc:creator>vasanthakumarra</dc:creator>
      <dc:date>2017-03-30T06:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5604B FlexCAN sample code not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5604B-FlexCAN-sample-code-not-working/m-p/634044#M6007</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;The demo example from AN2865 does a communication between two FlexCAN modules on the MPC5604B and requires parallel connection of TX/RX pins before transceiver.&lt;/P&gt;&lt;P&gt;In this demo CAN0 MB0 is used to transmit a message and CAN1 MB4 is configured as received buffer. There is no usage of MB1.&lt;/P&gt;&lt;P&gt;Did you do any modification of the code?&lt;/P&gt;&lt;P&gt;How did you do a connection between modules on mentioned boards?&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, 30 Mar 2017 10:33:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5604B-FlexCAN-sample-code-not-working/m-p/634044#M6007</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2017-03-30T10:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5604B FlexCAN sample code not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5604B-FlexCAN-sample-code-not-working/m-p/634045#M6008</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;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Sorry, I meant to say first message buffer. Yes, in transmit end CAN0 MB0 and receive end&amp;nbsp;CAN1 MB4 is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two sets of processor and serial boards and CAN ports are connected via jumper wires.&lt;/P&gt;&lt;P&gt;I modified the code to only initialize only the CAN0 in transmit side and CAN1 in receive side.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in processor board J6 and J7 pins 1-2 are connected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requesting to&amp;nbsp;confirm the above setup is fine and explain how to connect TX/RX pins in parallel before transceiver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Vasanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 13:29:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5604B-FlexCAN-sample-code-not-working/m-p/634045#M6008</guid>
      <dc:creator>vasanthakumarra</dc:creator>
      <dc:date>2017-03-30T13:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5604B FlexCAN sample code not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5604B-FlexCAN-sample-code-not-working/m-p/634046#M6009</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;Can you please help me to solve the above mentioned issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vasanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 05:15:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5604B-FlexCAN-sample-code-not-working/m-p/634046#M6009</guid>
      <dc:creator>vasanthakumarra</dc:creator>
      <dc:date>2017-04-10T05:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5604B FlexCAN sample code not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5604B-FlexCAN-sample-code-not-working/m-p/634047#M6010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vasanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using TRK-USB-MPC5604B + TWR-SER + primary elevator just a CAN0 module is connected to the CAN transceiver.&lt;/P&gt;&lt;P&gt;So if you have 2 sets of boards, then you need to modify the code to use only CAN0 module, set one message buffer to TX operation and another MB for RX operation.&lt;/P&gt;&lt;P&gt;Also do not use open drain config for the CANTX pin, the AN2865’s code uses this option, but ion your case it is not needed at all.&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, 11 Apr 2017 10:58:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5604B-FlexCAN-sample-code-not-working/m-p/634047#M6010</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2017-04-11T10:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5604B FlexCAN sample code not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5604B-FlexCAN-sample-code-not-working/m-p/634048#M6011</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;Thank you for the information.&lt;/P&gt;&lt;P&gt;And it worked fine after configuring the CAN0 in RX end and not using open drain config..!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below are the RX end CAN0 configuration,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN_0.MCR.R = 0x5000003F; /* Put in Freeze Mode &amp;amp; enable all 64 msg bufs */&lt;BR /&gt;CAN_0.CR.R = 0x04DB0006; /* Configure for 8MHz OSC, 100KHz bit time */&lt;/P&gt;&lt;P&gt;for (i=0; i&amp;lt;64; i++) {&lt;BR /&gt; CAN_0.BUF[i].CS.B.CODE = 0; /* Inactivate all message buffers */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;SIU.PCR[16].R = 0x0604; /* MPC56xxB: Config port B0 as CAN0TX, no open drain */&lt;BR /&gt;SIU.PCR[17].R = 0x0100; /* MPC56xxB: Configure port B1 as CAN0RX */&lt;/P&gt;&lt;P&gt;CAN_0.BUF[4].CS.B.IDE = 0; /* MB 4 will look for a standard ID */&lt;BR /&gt;CAN_0.BUF[4].ID.B.STD_ID = 555; /* MB 4 will look for ID = 555 */&lt;BR /&gt;CAN_0.BUF[4].CS.B.CODE = 4; /* MB 4 set to RX EMPTY */&lt;BR /&gt;CAN_0.RXGMASK.R = 0x1FFFFFFF; /* Global acceptance mask */&lt;BR /&gt;SIU.PSMI[0].R = 0x00;&lt;BR /&gt;CAN_0.MCR.R = 0x0000003F;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Vasanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 05:03:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5604B-FlexCAN-sample-code-not-working/m-p/634048#M6011</guid>
      <dc:creator>vasanthakumarra</dc:creator>
      <dc:date>2017-04-12T05:03:35Z</dc:date>
    </item>
  </channel>
</rss>

