<?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: RD9Z1-638-4Li (MM9Z1_638 ref dsn) - programmed once, stopped responding in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RD9Z1-638-4Li-MM9Z1-638-ref-dsn-programmed-once-stopped/m-p/528775#M12562</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;&lt;/P&gt;&lt;P&gt;please see this thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/428803"&gt;"Device is secure. Erase to unsecure?" error message comes up when I try to program MM9Z1J638 with P&amp;amp;amp;E's Multilink Unive…&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either you should disconnect RESET_A line from RESET during programming, or disable analog watchdog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;iggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2016 13:33:55 GMT</pubDate>
    <dc:creator>iggi</dc:creator>
    <dc:date>2016-07-26T13:33:55Z</dc:date>
    <item>
      <title>RD9Z1-638-4Li (MM9Z1_638 ref dsn) - programmed once, stopped responding</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RD9Z1-638-4Li-MM9Z1-638-ref-dsn-programmed-once-stopped/m-p/528774#M12561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We bought a RD9Z1-638-4Li to begin testing the functionality of the MM9Z1_638 chip. We are using a PE Micro Multilink Universal to program/debug.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to create a small "hello world" program by toggling PTA7:&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;PTA_PTA7 = ~PTA_PTA7;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I took pieces of code from the reference design code to try and get this program built quickly. Here is the relevant parts of the program:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;#pragma c99 on&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include "derivative.h" /* include peripheral declarations */&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define EVER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (;;)&lt;/P&gt;&lt;P&gt;#define DO_NOTHING&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* FUNCTIONS FROM REFERENCE DESIGN CODE */&lt;/P&gt;&lt;P&gt;void SYS_Init(void);&lt;/P&gt;&lt;P&gt;void CPMUStartup(void);&lt;/P&gt;&lt;P&gt;void D2DInit(char);&lt;/P&gt;&lt;P&gt;/* END FUNCTIONS FROM REF DES CODE */&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int main(void) {&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SYS_Init();&lt;/P&gt;&lt;P&gt;&amp;nbsp; CPMUStartup();&lt;/P&gt;&lt;P&gt;&amp;nbsp; D2DInit(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; DDRA = 0b10000000; // PA7 output&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; while(1){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __RESET_WATCHDOG();&amp;nbsp; /* feeds the dog */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PTA_PTA7 = ~PTA_PTA7;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After main() I have the function definitions for SYS_Init, CPMUStartup, and D2DInit, all pulled from the reference code.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THEN, I used the PE Micro to program the first time. PTA7 was not toggling, so I tried messing with other registers, and reprogramming. THIS time, the PE Micro could not detect the processor!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I see "Device is secure. Erase to unsecure?" I hit yes.&lt;/P&gt;&lt;P&gt;Then I see the Power Cycle Dialog, saying "Target MCU is not responding." It asks to toggle power to get the debugger to see the chip. I follow orders and hit OK.&lt;/P&gt;&lt;P&gt;Then I see the "Erase to unsecure?" message again. I hit yes.&lt;/P&gt;&lt;P&gt;Then the P&amp;amp;E Connection Assistant comes up. Retry, still cannot connect to the chip.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Things I've tried/observed:&lt;/P&gt;&lt;P&gt;* Change BDM frequency and delay, none of that changes behavior. &lt;/P&gt;&lt;P&gt;* The Reset pin on the BDM1 header is toggling. It goes low for 45 usec, 330 msec high. Does this mean the chip is in some sort of pseudo-stop mode? This happens without the PE Micro connected.&lt;/P&gt;&lt;P&gt;* Updated PE Micro drivers.&lt;/P&gt;&lt;P&gt;* Went to a new PC, setup the environment, wrote another program, and tried "downloading" to the chip again. Still can't connect.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get back to being able to download to the chip, and how can I prevent this lockout from happening again?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 19:55:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RD9Z1-638-4Li-MM9Z1-638-ref-dsn-programmed-once-stopped/m-p/528774#M12561</guid>
      <dc:creator>dsamarin</dc:creator>
      <dc:date>2016-07-22T19:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: RD9Z1-638-4Li (MM9Z1_638 ref dsn) - programmed once, stopped responding</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RD9Z1-638-4Li-MM9Z1-638-ref-dsn-programmed-once-stopped/m-p/528775#M12562</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;&lt;/P&gt;&lt;P&gt;please see this thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/428803"&gt;"Device is secure. Erase to unsecure?" error message comes up when I try to program MM9Z1J638 with P&amp;amp;amp;E's Multilink Unive…&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either you should disconnect RESET_A line from RESET during programming, or disable analog watchdog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;iggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 13:33:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RD9Z1-638-4Li-MM9Z1-638-ref-dsn-programmed-once-stopped/m-p/528775#M12562</guid>
      <dc:creator>iggi</dc:creator>
      <dc:date>2016-07-26T13:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: RD9Z1-638-4Li (MM9Z1_638 ref dsn) - programmed once, stopped responding</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RD9Z1-638-4Li-MM9Z1-638-ref-dsn-programmed-once-stopped/m-p/528776#M12563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi iggi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with Daniel on this project. I tried the following and was unable to connect to the MM9Z1J638 with the PEmicro:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;disabling the analog watchdog by inserting the line B_WD_CTL = 0x00; before Sys_Init() in main&lt;/LI&gt;&lt;LI&gt;tying a 470nF capacitor between RESET and GND to disable RESET&lt;/LI&gt;&lt;LI&gt;disconnecting RESET from the circuit by bending the pin backwards, so that it no longer connected to the PEmicro Multilink&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would you recommend trying?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 21:19:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RD9Z1-638-4Li-MM9Z1-638-ref-dsn-programmed-once-stopped/m-p/528776#M12563</guid>
      <dc:creator>karenbeaty</dc:creator>
      <dc:date>2016-08-02T21:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: RD9Z1-638-4Li (MM9Z1_638 ref dsn) - programmed once, stopped responding</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RD9Z1-638-4Li-MM9Z1-638-ref-dsn-programmed-once-stopped/m-p/528777#M12564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most probably the device is secured. Did you try PEMicro's Unsecure12 tool?&lt;/P&gt;&lt;P&gt;I hope the device is not damaged. Check if it's getting hot.&lt;/P&gt;&lt;P&gt;I doubt the problem is related to PE's Multilink Universal programmer. Unfortunately, don't have that RD board on my desk to test it :-(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;iggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 08:55:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RD9Z1-638-4Li-MM9Z1-638-ref-dsn-programmed-once-stopped/m-p/528777#M12564</guid>
      <dc:creator>iggi</dc:creator>
      <dc:date>2016-08-03T08:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: RD9Z1-638-4Li (MM9Z1_638 ref dsn) - programmed once, stopped responding</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RD9Z1-638-4Li-MM9Z1-638-ref-dsn-programmed-once-stopped/m-p/528778#M12565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi iggi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Updating the drivers for the PE Micro (and using the capacitor) fixed the problem. Thanks for all of your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Karen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Aug 2016 00:17:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RD9Z1-638-4Li-MM9Z1-638-ref-dsn-programmed-once-stopped/m-p/528778#M12565</guid>
      <dc:creator>karenbeaty</dc:creator>
      <dc:date>2016-08-20T00:17:30Z</dc:date>
    </item>
  </channel>
</rss>

