<?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: Devkit S12ZVC : CANH stucked High in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Devkit-S12ZVC-CANH-stucked-High/m-p/1008014#M16944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I found the issue!&lt;/P&gt;&lt;P&gt;I have a problem with processor expert generation, cause I've downloaded&amp;nbsp;an example&amp;nbsp;that is not generated with the expert and with these libraries and seem to work fine:&lt;/P&gt;&lt;P&gt;#include &amp;lt;hidef.h&amp;gt;&lt;BR /&gt;#include "derivative.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void PLL_init(void){&lt;BR /&gt; CPMUCLKS_PLLSEL = 1; //FBUS = FPLL/2. FBUS = 32MHz, &lt;BR /&gt; CPMUREFDIV_REFFRQ = 1; //Reference clock between 2MHZ and 6MHZ. &lt;BR /&gt; CPMUREFDIV_REFDIV = 0x1; //FREF=8/(1+1) = 4MHZ &lt;BR /&gt; CPMUSYNR_VCOFRQ = 0x1; //FVCO is between 48MHZ and 80MHZ &lt;BR /&gt; CPMUSYNR_SYNDIV = 0x7; //FVCO = 2xFREFx(SYNDIV+1) = FVCO = 2x4x(7+1) = 64MHZ&lt;BR /&gt; CPMUPOSTDIV_POSTDIV = 0x0; //FPLL = FVCO/(POSTDIV+1). FPLL = 64MHZ/(0+1) FPLL = 64MHz &lt;BR /&gt; CPMUOSC_OSCE = 1; //External oscillator enable. 8MHZ. FREF=FOSC/(REFDIV+1) &lt;BR /&gt; while(!CPMUIFLG_LOCK){} // Wait for LOCK. &lt;BR /&gt; CPMUIFLG = 0xFF; // clear CMPMU int flags - not needed but good practice &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a way to generate a functional CAN example with processor expert?&lt;/P&gt;&lt;P&gt;Cause I've generated the rest of my code with processor expert... :smileysad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jan 2020 16:37:46 GMT</pubDate>
    <dc:creator>luca_ferrario</dc:creator>
    <dc:date>2020-01-14T16:37:46Z</dc:date>
    <item>
      <title>Devkit S12ZVC : CANH stucked High</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Devkit-S12ZVC-CANH-stucked-High/m-p/1008013#M16943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've got a problem with the CAN bus, I've configured the MSCAN0 with code warrior expert (bit rate: 250 kbit). The system works fine in loop back mode: I can send data and the event&amp;nbsp;CAN1_OnFullRxBuffer() is called, tha masks also work fine.&amp;nbsp;I've got a problem when I want to use the CANPHY with CANH and CANL pins of the board: the CANH pin is stucked at high voltage! :smileysad:&lt;/P&gt;&lt;P&gt;I configured the CANPHY in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CP0CR_CPE = 1; //Module Enable&lt;BR /&gt; CP0CR_SPE = 1; //Split Enable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the&amp;nbsp;M0C0RR[2:0] to 000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did i miss something in the configuration of the CANPHY?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried to probe the data between CANPHY and&amp;nbsp;MSCAN0 with&amp;nbsp;the&amp;nbsp;&lt;SPAN&gt;M0C0RR[2:0] configuration 0b100, in order to use the pins TXCAN0 and&amp;nbsp;CPRXD0 as probes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Channel 0: MSCAN0&amp;nbsp;TXCAN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Channel 1: MSCAN0&amp;nbsp;R&lt;SPAN&gt;XCAN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Channel&amp;nbsp;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;: CANPHY0 CANH&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Channel&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CANPHY0&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CANL&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;The RX data is&amp;nbsp;coming from a PCAN simulator, if&amp;nbsp; the simulator is stopped no data is present on channel1 and channel 3.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_156.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69182i292D618618F56500/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_156.png" alt="pastedImage_156.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 11:50:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Devkit-S12ZVC-CANH-stucked-High/m-p/1008013#M16943</guid>
      <dc:creator>luca_ferrario</dc:creator>
      <dc:date>2020-01-14T11:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Devkit S12ZVC : CANH stucked High</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Devkit-S12ZVC-CANH-stucked-High/m-p/1008014#M16944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I found the issue!&lt;/P&gt;&lt;P&gt;I have a problem with processor expert generation, cause I've downloaded&amp;nbsp;an example&amp;nbsp;that is not generated with the expert and with these libraries and seem to work fine:&lt;/P&gt;&lt;P&gt;#include &amp;lt;hidef.h&amp;gt;&lt;BR /&gt;#include "derivative.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void PLL_init(void){&lt;BR /&gt; CPMUCLKS_PLLSEL = 1; //FBUS = FPLL/2. FBUS = 32MHz, &lt;BR /&gt; CPMUREFDIV_REFFRQ = 1; //Reference clock between 2MHZ and 6MHZ. &lt;BR /&gt; CPMUREFDIV_REFDIV = 0x1; //FREF=8/(1+1) = 4MHZ &lt;BR /&gt; CPMUSYNR_VCOFRQ = 0x1; //FVCO is between 48MHZ and 80MHZ &lt;BR /&gt; CPMUSYNR_SYNDIV = 0x7; //FVCO = 2xFREFx(SYNDIV+1) = FVCO = 2x4x(7+1) = 64MHZ&lt;BR /&gt; CPMUPOSTDIV_POSTDIV = 0x0; //FPLL = FVCO/(POSTDIV+1). FPLL = 64MHZ/(0+1) FPLL = 64MHz &lt;BR /&gt; CPMUOSC_OSCE = 1; //External oscillator enable. 8MHZ. FREF=FOSC/(REFDIV+1) &lt;BR /&gt; while(!CPMUIFLG_LOCK){} // Wait for LOCK. &lt;BR /&gt; CPMUIFLG = 0xFF; // clear CMPMU int flags - not needed but good practice &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a way to generate a functional CAN example with processor expert?&lt;/P&gt;&lt;P&gt;Cause I've generated the rest of my code with processor expert... :smileysad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 16:37:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Devkit-S12ZVC-CANH-stucked-High/m-p/1008014#M16944</guid>
      <dc:creator>luca_ferrario</dc:creator>
      <dc:date>2020-01-14T16:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Devkit S12ZVC : CANH stucked High</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Devkit-S12ZVC-CANH-stucked-High/m-p/1008015#M16945</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;Unfortunately, there is no CAN example with Processor Expert.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you to look at AN4975&amp;nbsp;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN4975.pdf" title="https://www.nxp.com/docs/en/application-note/AN4975.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN4975.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By PLL_init() function you configured the clock frequency but you can also configure it by processor expert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 14:41:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Devkit-S12ZVC-CANH-stucked-High/m-p/1008015#M16945</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-01-16T14:41:00Z</dc:date>
    </item>
  </channel>
</rss>

