<?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: PLL/Reset problem when single stepping with BDM in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PLL-Reset-problem-when-single-stepping-with-BDM/m-p/126103#M474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Salut,&lt;BR /&gt;&lt;BR /&gt;What debug cable are you using ?&lt;BR /&gt;&lt;BR /&gt;Look at your board design as well... A high speed debugging won't work with a 4 metre cable &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;BR /&gt;Put a 4.7KOhm or round about that value between Vdd and BGND pin on the connector.&lt;BR /&gt;If you try with a canned oscillator at 25MHz and the debugger works fine, you are likely to work fine even with the PLL.&lt;BR /&gt;&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Nov 2007 02:13:32 GMT</pubDate>
    <dc:creator>Nabla69</dc:creator>
    <dc:date>2007-11-17T02:13:32Z</dc:date>
    <item>
      <title>PLL/Reset problem when single stepping with BDM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PLL-Reset-problem-when-single-stepping-with-BDM/m-p/126100#M471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; font-size: 2; font-family: Arial;"&gt;Hi&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; font-size: 2; font-family: Arial;"&gt;I am using the MC9S12E128 processor (80pin) and have a problem where the BDM sometimes looses control of the microcontroller and no further debugging is possible after executing the PLLSEL = 1 instruction &lt;SPAN style=": ; font-size: 2; font-family: Arial;"&gt;(sets PLLSEL bit in the CLKSEL register)&lt;/SPAN&gt;. The program usually jumps to 0xFFFF. This happens e&lt;/SPAN&gt;&lt;SPAN style=": ; font-size: 2; font-family: Arial;"&gt;very second or&amp;nbsp;third time&amp;nbsp;after programming the micro.&amp;nbsp; Note that i&lt;/SPAN&gt;&lt;SPAN style=": ; font-size: 2; font-family: Arial;"&gt;t makes no difference if I single-step&amp;nbsp;to this instruction or run to this instruction.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; font-size: 2; font-family: Arial;"&gt;If the PLLSEL = 1 instruction happens to be executed correctly then I can reset and run it correctly every time after that until reprogramming the chip again.&amp;nbsp; Suggests a programming problem?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; font-size: 2; font-family: Arial;"&gt;The PLL registers are set to SYNR = 0x0B and REFDV = 0x01, with a crystal frequency of 3.6864MHz.&amp;nbsp; This gives a bus frequency of 22.1184MHz.&amp;nbsp; Supply voltage is 3.1V.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="819455812-09022006"&gt;&lt;/SPAN&gt;&lt;SPAN style=": ; font-size: 2; font-family: Arial;"&gt;The SYNR register is set first.&amp;nbsp; Then the REFDV register.&amp;nbsp; Once the PLL locks (checked via the&amp;nbsp;LOCK bit in CRGFLG register), the PLL is selected.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; font-size: 2;"&gt;Any suggestions are welcome!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; font-size: 2;"&gt;Regards,&lt;/SPAN&gt; &lt;SPAN style=": ; font-size: 2;"&gt;Nigel&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2006 22:20:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PLL-Reset-problem-when-single-stepping-with-BDM/m-p/126100#M471</guid>
      <dc:creator>NigelL</dc:creator>
      <dc:date>2006-02-09T22:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: PLL/Reset problem when single stepping with BDM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PLL-Reset-problem-when-single-stepping-with-BDM/m-p/126101#M472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Hi Nigel,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;The BDM clock is based on the target bus clock.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;When you execute PLLSEL = 1, you change the bus clock.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Therefore you change the BDM communication speed.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Depending on your BDM debugging tool, you can have an option to get automatic speed and synchronization if the bus changes.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;If the debugging tool doesn't change its clock, it cannot talk with the MCU anymore.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Cheers,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Alban.&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;02-09-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;04:50 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2006 00:44:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PLL-Reset-problem-when-single-stepping-with-BDM/m-p/126101#M472</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-02-10T00:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: PLL/Reset problem when single stepping with BDM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PLL-Reset-problem-when-single-stepping-with-BDM/m-p/126102#M473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;FONT face="Arial"&gt;Hi, I've got the same problem... One year later, jeje... I'm using Codewarriror v4.6, the target is the MC9S12A128. I'm using the USB BDM, and the debugging tool is HiWave. I want to debug in a speed up to 40Mhz... I've got the same problem at 24Mhz... That's because, as you said, the bus clock changes when PLLSEL=1... And you said that "&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;Depending on your BDM debugging tool, you can have an option to get automatic speed and synchronization if the bus changes."&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;How can I do that??&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;Now, I'm running at self-clock speed 16Mhz... But if I can get higher speed that would be great... I'd like to push the uC to its maximun speed... Will the debugger tool / BDM have any problem with that?&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;THANKS!!&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 20:32:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PLL-Reset-problem-when-single-stepping-with-BDM/m-p/126102#M473</guid>
      <dc:creator>SebaS</dc:creator>
      <dc:date>2007-11-07T20:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: PLL/Reset problem when single stepping with BDM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PLL-Reset-problem-when-single-stepping-with-BDM/m-p/126103#M474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Salut,&lt;BR /&gt;&lt;BR /&gt;What debug cable are you using ?&lt;BR /&gt;&lt;BR /&gt;Look at your board design as well... A high speed debugging won't work with a 4 metre cable &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;BR /&gt;Put a 4.7KOhm or round about that value between Vdd and BGND pin on the connector.&lt;BR /&gt;If you try with a canned oscillator at 25MHz and the debugger works fine, you are likely to work fine even with the PLL.&lt;BR /&gt;&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2007 02:13:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PLL-Reset-problem-when-single-stepping-with-BDM/m-p/126103#M474</guid>
      <dc:creator>Nabla69</dc:creator>
      <dc:date>2007-11-17T02:13:32Z</dc:date>
    </item>
  </channel>
</rss>

