<?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>S12 / MagniV MicrocontrollersのトピックRe: S12XE BDM Communication Loss</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-BDM-Communication-Loss/m-p/684103#M14302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The loss of clock is probably the reason. The behavior then might be unpredictable.&lt;/P&gt;&lt;P&gt;Have you measured the external clock? The amplitude must be 1.8V.&lt;/P&gt;&lt;P&gt;You may also measure Bus clock on ECLK pin (ECLKCTL[NECLK = 0]).&lt;/P&gt;&lt;P&gt;An example code of PLL initialization is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2017 12:20:16 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2017-07-06T12:20:16Z</dc:date>
    <item>
      <title>S12XE BDM Communication Loss</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-BDM-Communication-Loss/m-p/684100#M14299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: justify;"&gt;Hi. I have a new board which uses MC9S12XEQ512. I can program the board any number of times without any problems. But when I start the code, after some unspecified time, my Multilink Interface seems to lose communication with the MCU, and all variables read "0" (zero). The board keeps running, I can interact with it (external world), but without any debug info.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;If I try to &lt;STRONG&gt;HALT&lt;/STRONG&gt;, nothing happens (maybe because it's a command), and I can only &lt;STRONG&gt;RESET&lt;/STRONG&gt; the board. Then it starts ok, and after some time it all happens again.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;It's almost like the MCU is holding the BKGD pin LOW.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;I've attached some pictures of oscilloscope probing BKGD pin, and also HIWAVE protocol logs.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some Info:&lt;/P&gt;&lt;P&gt;External Crystal: 4 MHz.&lt;/P&gt;&lt;P&gt;Using PLL on Full Swing Pierce Oscillator Circuit.&lt;/P&gt;&lt;P&gt;PLLCLOCK = 80MHz&lt;/P&gt;&lt;P&gt;BUSCLOCK = 40MHZ&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initialization Code:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;PLLCTL = 0b11001001;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;REFDV = 0x40;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; SYNR = 0x49;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; POSTDIV = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;while (!CRGFLG_LOCK) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;CLKSEL = 0b11000000;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;XCLKS pin has a pull-down at all times.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;There is a strong external pull-up on RESET pin (10k to 3V3). I also tried removing it, same outcome.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Tried using Multilink Universal Rev.A (flash version 6.15) and Multilink Universal Rev.C. I've already changed cables, power sources and so on, same outcome.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Any tips?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Thanks in advance.&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-338754"&gt;DUMP_COMM.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 18:16:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-BDM-Communication-Loss/m-p/684100#M14299</guid>
      <dc:creator>andradetj</dc:creator>
      <dc:date>2017-07-04T18:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: S12XE BDM Communication Loss</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-BDM-Communication-Loss/m-p/684101#M14300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;Have you tried measuring the reset pin? Because the MCU is disconnected from the debugger when a reset occurs. You may also try to connect the debugger to the MCU (while it is running) through Hotsync instead of Connect(Reset).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 12:26:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-BDM-Communication-Loss/m-p/684101#M14300</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-07-05T12:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: S12XE BDM Communication Loss</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-BDM-Communication-Loss/m-p/684102#M14301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;RESET pin is 3.3V at all times. Hotsync does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've changed the approach. Enabled &lt;STRONG&gt;CRG PLL LOCK Interrupt&lt;/STRONG&gt; with a global variable counter, and compared two boards.&lt;/P&gt;&lt;P&gt;A "good" board generated around 30 interrupts in a 15 minute run.&lt;/P&gt;&lt;P&gt;A&amp;nbsp;"bad" board generated around 400 interrupts in a 1 minute run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Interrupt Code&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;interrupt void ISR_PLL_LOCK (void){&lt;BR /&gt;&amp;nbsp; &amp;nbsp; CRGFLG_LOCKIF = 1;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (CRGFLG_LOCK == 0) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (!CRGFLG_LOCK) { }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CLKSEL_PLLSEL = 1;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DEBUG.LOSS_OF_CLOCK_COUNTER++;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could this cause the BDM Communication Issue?&lt;/P&gt;&lt;P&gt;What could cause the Loss of Lock?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 17:35:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-BDM-Communication-Loss/m-p/684102#M14301</guid>
      <dc:creator>andradetj</dc:creator>
      <dc:date>2017-07-05T17:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: S12XE BDM Communication Loss</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-BDM-Communication-Loss/m-p/684103#M14302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The loss of clock is probably the reason. The behavior then might be unpredictable.&lt;/P&gt;&lt;P&gt;Have you measured the external clock? The amplitude must be 1.8V.&lt;/P&gt;&lt;P&gt;You may also measure Bus clock on ECLK pin (ECLKCTL[NECLK = 0]).&lt;/P&gt;&lt;P&gt;An example code of PLL initialization is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 12:20:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-BDM-Communication-Loss/m-p/684103#M14302</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-07-06T12:20:16Z</dc:date>
    </item>
  </channel>
</rss>

