<?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 MPC5634M FlexCAN not working in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-FlexCAN-not-working/m-p/348340#M430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on MPC5634M and I have connected the freescale CAN port to Microchip CAN Bus analyser to test CAN frames.&lt;/P&gt;&lt;P&gt;I have written a code to transmit the following CAN frame continuously on Channel A of FlexCAN module. &lt;/P&gt;&lt;P&gt;(ID = 0x555, length=5, bytes = “Hello”)&lt;/P&gt;&lt;P&gt;So I have adapted the code from freescale supplied with the board (only main.c is changed), but it is not working. (Please refer the attached FlexCAN.zip file for the code)&lt;/P&gt;&lt;P&gt;I have checked the TX Pin of MPC5634M IC using CRO scope, but I don’t detect any CAN frames at all. (Please refer FlexCAN schematic.jpeg for more info) &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19480_19480.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120166i81B9FA029C553D8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="19480_19480.jpg" alt="19480_19480.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FlexCAN schematic.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/50213i636619D5921083C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlexCAN schematic.JPG.jpg" alt="FlexCAN schematic.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My analysis:&lt;/P&gt;&lt;P&gt;In the code, I have chosen oscillator as the base clock for the FlexCAN module. But I feel the clock is not running for the FlexCAN module. &lt;/P&gt;&lt;P&gt;When I debug my code, I see all the registers are loaded with proper values. But after filling the transmit buffer and I set the CODE to Transmit (0x0C) the FlexCAN module does not change back the CODE to 0x08. The code is infinitely executing the while loop (Please refer the highlighted line in FlexCAN Debug.jpeg for more info)&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19481_19481.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120167i4B28670BE7A4A6B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="19481_19481.jpg" alt="19481_19481.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FlexCAN Debug.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/50214i13EEDD178F50168C/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlexCAN Debug.JPG.jpg" alt="FlexCAN Debug.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please check the issue and let me know if I have made some mistake.&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;senthil&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338302"&gt;FlexCAN.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2015 10:44:28 GMT</pubDate>
    <dc:creator>senthilcoramuta</dc:creator>
    <dc:date>2015-02-04T10:44:28Z</dc:date>
    <item>
      <title>MPC5634M FlexCAN not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-FlexCAN-not-working/m-p/348340#M430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on MPC5634M and I have connected the freescale CAN port to Microchip CAN Bus analyser to test CAN frames.&lt;/P&gt;&lt;P&gt;I have written a code to transmit the following CAN frame continuously on Channel A of FlexCAN module. &lt;/P&gt;&lt;P&gt;(ID = 0x555, length=5, bytes = “Hello”)&lt;/P&gt;&lt;P&gt;So I have adapted the code from freescale supplied with the board (only main.c is changed), but it is not working. (Please refer the attached FlexCAN.zip file for the code)&lt;/P&gt;&lt;P&gt;I have checked the TX Pin of MPC5634M IC using CRO scope, but I don’t detect any CAN frames at all. (Please refer FlexCAN schematic.jpeg for more info) &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19480_19480.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120166i81B9FA029C553D8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="19480_19480.jpg" alt="19480_19480.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FlexCAN schematic.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/50213i636619D5921083C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlexCAN schematic.JPG.jpg" alt="FlexCAN schematic.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My analysis:&lt;/P&gt;&lt;P&gt;In the code, I have chosen oscillator as the base clock for the FlexCAN module. But I feel the clock is not running for the FlexCAN module. &lt;/P&gt;&lt;P&gt;When I debug my code, I see all the registers are loaded with proper values. But after filling the transmit buffer and I set the CODE to Transmit (0x0C) the FlexCAN module does not change back the CODE to 0x08. The code is infinitely executing the while loop (Please refer the highlighted line in FlexCAN Debug.jpeg for more info)&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19481_19481.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120167i4B28670BE7A4A6B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="19481_19481.jpg" alt="19481_19481.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FlexCAN Debug.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/50214i13EEDD178F50168C/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlexCAN Debug.JPG.jpg" alt="FlexCAN Debug.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please check the issue and let me know if I have made some mistake.&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;senthil&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338302"&gt;FlexCAN.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 10:44:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-FlexCAN-not-working/m-p/348340#M430</guid>
      <dc:creator>senthilcoramuta</dc:creator>
      <dc:date>2015-02-04T10:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M FlexCAN not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-FlexCAN-not-working/m-p/348341#M431</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;You have set the CAN TX pin as open drain. In that case do you have external pull up on this line? Or set at least weak pull up on this pin or use push/pull mode.&lt;/P&gt;&lt;P&gt;What kind of board do you use? Your own made or FSL EVB / TRK board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 11:40:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-FlexCAN-not-working/m-p/348341#M431</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2015-02-11T11:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M FlexCAN not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-FlexCAN-not-working/m-p/348342#M432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Petr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am developing code on TRK MPC5634M. I am using the board mentioned in the below link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=TRK-MPC5634M" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=TRK-MPC5634M"&gt;MPC563xM StarterTRAK (Development Kit)|Freescale&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not connecting an external pull up resistor. I have connected the DB9 connector (for CAN) to the Microchip CAN bus analyzer (refer below link). In the microchip tool, I have configured for 100KHz and Normal CAN mode, but I am not observing any kind of frames. &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=APGDT002" style="font-size: 13.3333330154419px;" title="http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=APGDT002"&gt;CAN BUS Analyzer Tool - APGDT002 | Microchip Technology Inc.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note, The microchip bus analyzer tool seems to be working, I have checked in another CAN bus environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also regarding the Tx open drain configuration, I have also made the below port pin configuration, but I see no change in behavior.&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIU.PCR[83].R = 0x0400;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIU.PCR[84].R = 0x0400;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 14:34:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-FlexCAN-not-working/m-p/348342#M432</guid>
      <dc:creator>senthilcoramuta</dc:creator>
      <dc:date>2015-02-11T14:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M FlexCAN not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-FlexCAN-not-working/m-p/348343#M433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, on the TRK board the CAN transceiver is implemented within the SBC chip. So to use it you need&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;- power the SBC externally, so connect 9 to 12V to J1 connector and place jumper to SBC_5V-5V position on POWER_SELECT header.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;- put the SBC to debug mode with a J5 jumper (J4 not installed), for ease of use&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;- enable the CAN transceiver through SPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;See following page for simple example testing the FlexCAN on the TRK board.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-103708"&gt;https://community.freescale.com/docs/DOC-103708&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Regards,&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 07:27:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-FlexCAN-not-working/m-p/348343#M433</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2015-02-13T07:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M FlexCAN not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-FlexCAN-not-working/m-p/348344#M434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Petr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to solve the issue with your suggestion. Your code works now :-).&lt;/P&gt;&lt;P&gt;Thank you, thank you thank you so so much...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 10:04:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-FlexCAN-not-working/m-p/348344#M434</guid>
      <dc:creator>senthilcoramuta</dc:creator>
      <dc:date>2015-02-16T10:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M FlexCAN not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-FlexCAN-not-working/m-p/348345#M435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Petr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel there is a small correction in the cookbook, corresponding to the FlexCAN &lt;SPAN style="font-size: 13.3333330154419px;"&gt;example code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There needs to be a short in the circuit below, marked in red circle.&lt;/P&gt;&lt;P&gt;Initially I tried without the short, the behavior was not consistent. I spent around 1 week to find the issue.&lt;/P&gt;&lt;P&gt;Later I found that by making a short, the FlexCAN code is working absolutely proper.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FlexCAN circuit.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/50537i19478A87AA1961CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlexCAN circuit.PNG.png" alt="FlexCAN circuit.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 13:22:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-FlexCAN-not-working/m-p/348345#M435</guid>
      <dc:creator>senthilcoramuta</dc:creator>
      <dc:date>2015-02-16T13:22:22Z</dc:date>
    </item>
  </channel>
</rss>

