<?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: clock settings for MC9S12ZVMC128 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/clock-settings-for-MC9S12ZVMC128/m-p/477092#M11952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at answer here:&lt;A _jive_internal="true" data-containerid="2017" data-containertype="14" data-content-finding="Community" data-objectid="604458" data-objecttype="2" href="https://community.nxp.com/message/604458#604458"&gt;Re: what is the difference between S12X and S12z MagnaV core?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/384334"&gt;S12ZVMx12EVB PLL configuration with External crystal.&lt;/A&gt; &lt;/P&gt;&lt;P&gt;There are sometimes problems caused by running the debugging interface with bus-clock speeds close to the limit the Multilink cables can actually support on the BDM interface (the limit is 50MHz, IIRC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To resolve this the BDC interface can be set to use the fixed IRC clock (1MHz) instead of the bus-clock, so that the communication with Multilink is not affected by changes in the clocking set-up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how to do it in CW 10.6:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Go to "Run/Debug settings" in your project's "Properties".&lt;/LI&gt;&lt;LI&gt;Select the Multilink connection from the list presented and click on "Edit".&lt;/LI&gt;&lt;LI&gt;In the "Main" Tab, "Target settings" click on the "Edit..." button next to the "Connection:" field.&lt;/LI&gt;&lt;LI&gt;Uncheck the option "Use Bus Clock as Debug Controller (SIBDC) Clock Source {Default = Checked}" under "Connection" -&amp;gt; "Additional Options".&lt;/LI&gt;&lt;LI&gt;Click on "Ok" in each of the three open windows.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Feb 2016 08:47:34 GMT</pubDate>
    <dc:creator>ameykhatavkar</dc:creator>
    <dc:date>2016-02-22T08:47:34Z</dc:date>
    <item>
      <title>clock settings for MC9S12ZVMC128</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/clock-settings-for-MC9S12ZVMC128/m-p/477091#M11951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;we are using the MC9S12ZVMC128 from S12Z family.we try to set the clock to 100MHz.&lt;/P&gt;&lt;P&gt;but we are facing problem like not able to debug.Please share if any procedure need to follow.&lt;/P&gt;&lt;P&gt;Here We attached the code for your refenence.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raja S&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-339011"&gt;freescale_share.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 07:11:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/clock-settings-for-MC9S12ZVMC128/m-p/477091#M11951</guid>
      <dc:creator>maharajsankaran</dc:creator>
      <dc:date>2016-02-22T07:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: clock settings for MC9S12ZVMC128</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/clock-settings-for-MC9S12ZVMC128/m-p/477092#M11952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at answer here:&lt;A _jive_internal="true" data-containerid="2017" data-containertype="14" data-content-finding="Community" data-objectid="604458" data-objecttype="2" href="https://community.nxp.com/message/604458#604458"&gt;Re: what is the difference between S12X and S12z MagnaV core?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/384334"&gt;S12ZVMx12EVB PLL configuration with External crystal.&lt;/A&gt; &lt;/P&gt;&lt;P&gt;There are sometimes problems caused by running the debugging interface with bus-clock speeds close to the limit the Multilink cables can actually support on the BDM interface (the limit is 50MHz, IIRC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To resolve this the BDC interface can be set to use the fixed IRC clock (1MHz) instead of the bus-clock, so that the communication with Multilink is not affected by changes in the clocking set-up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how to do it in CW 10.6:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Go to "Run/Debug settings" in your project's "Properties".&lt;/LI&gt;&lt;LI&gt;Select the Multilink connection from the list presented and click on "Edit".&lt;/LI&gt;&lt;LI&gt;In the "Main" Tab, "Target settings" click on the "Edit..." button next to the "Connection:" field.&lt;/LI&gt;&lt;LI&gt;Uncheck the option "Use Bus Clock as Debug Controller (SIBDC) Clock Source {Default = Checked}" under "Connection" -&amp;gt; "Additional Options".&lt;/LI&gt;&lt;LI&gt;Click on "Ok" in each of the three open windows.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 08:47:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/clock-settings-for-MC9S12ZVMC128/m-p/477092#M11952</guid>
      <dc:creator>ameykhatavkar</dc:creator>
      <dc:date>2016-02-22T08:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: clock settings for MC9S12ZVMC128</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/clock-settings-for-MC9S12ZVMC128/m-p/477093#M11953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi maharaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I shortly looked at your code:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;I do not understood your command CPMUIFLG = 0x00;.&amp;nbsp; Writing or writing 0 has no effect on CPMUIFLG register bits.&lt;/LI&gt;&lt;LI&gt;COP is disabled after reset when your FPROT values in Flash are default (0xFF). Execution of CPMUCOP_REG = CPMUCOP_DISABLE_MASK; command will cause, that COP watchdog cannot be enabled until next reset – you cannot use it for software reset. I suppose that you don’t use COP for MCU reset. Correct?&lt;/LI&gt;&lt;LI&gt;Your command CPMUCLKS = CPMUCLKS | COPOSCSEL0_MASK; do not make sense since it is placed below CPMUCOP_REG = CPMUCOP_DISABLE_MASK command. COPOSCSEL0 bit could be configured in normal mode only prior you enable/disable COP watchdog.&lt;/LI&gt;&lt;LI&gt;CPMUIFLG_REG_ADDR and CPMUIFLG are defined twice.&lt;/LI&gt;&lt;LI&gt;I suppose that CRGFLG is CPMURFLG register, but I do not understood why you write 0x00&lt;/LI&gt;&lt;LI&gt;Your clock settings for 50MHz bus clock looks OK&lt;/LI&gt;&lt;LI&gt;Command CPMUPLL = 0u; should be prior you start configure SYNR, REFDV, POSDIV registers. Write to CPMUPLL register clears the LOCK and UPOSC status bits.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As AMEY already mentioned we know about some BDM connection issues during stepping over PLL init code. The second link in AMEY’s post contains workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which BDM debugger you use? If I remember correctly there were some issues with USB Multilink Rev.C (USB-ML-12E) with very old firmware. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 14:49:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/clock-settings-for-MC9S12ZVMC128/m-p/477093#M11953</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2016-02-24T14:49:57Z</dc:date>
    </item>
  </channel>
</rss>

