<?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>Kinetis Microcontrollers中的主题 cannot perform mass erasing for secured MKE02Z64 via SWD</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/cannot-perform-mass-erasing-for-secured-MKE02Z64-via-SWD/m-p/335260#M15958</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;&amp;nbsp;&amp;nbsp; I am a newbie for MCU/SWD programming.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Currently, I encounter a problem about mass erasing for secured MKE02Z64 via SWD.&lt;/P&gt;&lt;P&gt;I perform unsecuring steps by following the steps of section 18.3.7.2 in &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.google.com.tw/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0CBwQFjAA&amp;amp;url=http%3A%2F%2Fcache.freescale.com%2Ffiles%2F32bit%2Fdoc%2Fref_manual%2FMKE02Z64M20SF0RM.pdf&amp;amp;ei=dULtVMO_McTx8gXMuIGgBw&amp;amp;usg=AFQjCNGk1vn8lICor5xBw-a2axFyc5s7wQ&amp;amp;sig2=w3xxHuBLNhmwwiXGvoseGA&amp;amp;bvm=bv.86956481,d.dGc" target="_blank"&gt;KE02 sub-family reference manual&lt;/A&gt; as followings.&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;1. Reset the device by asserting RESET pin or DAP_CTRL[3].&lt;/P&gt;&lt;P&gt;2. Set DAP_CTRL[0] bit to invoke debug mass erase via SWD Functional description&lt;/P&gt;&lt;P&gt;3. Release reset by deasserting RESET pin or DAP_CTRL[3] bit via SWD.&lt;/P&gt;&lt;P&gt;4. Wait till DAP_CTRL[0] bit is cleared ( After mass erase completes, DAP_CTRL[0]&lt;/P&gt;&lt;P&gt;bit is cleared automatically). At this time, CPU will be in hold state, MASS erase is&lt;/P&gt;&lt;P&gt;completed, and the device is in unsecure state (flash security byte in flash&lt;/P&gt;&lt;P&gt;configuration field is programmed with 0xFE) .&lt;/P&gt;&lt;P&gt;5. Reset the device.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;After performing step 1 ~ 3, I still cannot wait for the DAP_CTRL[0] bit is cleared.&lt;/P&gt;&lt;P&gt;I don't know whether I miss something in the steps.&lt;/P&gt;&lt;P&gt;Does the DAP_CTRL[0] bit mean MDM-AP control register bit 0 ? &lt;/P&gt;&lt;P&gt;If not, how can I get the DAP_CTRL[0] bit ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help ~&lt;/P&gt;&lt;P&gt;Jumbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Feb 2015 05:27:44 GMT</pubDate>
    <dc:creator>jumblerchi</dc:creator>
    <dc:date>2015-02-25T05:27:44Z</dc:date>
    <item>
      <title>cannot perform mass erasing for secured MKE02Z64 via SWD</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/cannot-perform-mass-erasing-for-secured-MKE02Z64-via-SWD/m-p/335260#M15958</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;&amp;nbsp;&amp;nbsp; I am a newbie for MCU/SWD programming.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Currently, I encounter a problem about mass erasing for secured MKE02Z64 via SWD.&lt;/P&gt;&lt;P&gt;I perform unsecuring steps by following the steps of section 18.3.7.2 in &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.google.com.tw/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0CBwQFjAA&amp;amp;url=http%3A%2F%2Fcache.freescale.com%2Ffiles%2F32bit%2Fdoc%2Fref_manual%2FMKE02Z64M20SF0RM.pdf&amp;amp;ei=dULtVMO_McTx8gXMuIGgBw&amp;amp;usg=AFQjCNGk1vn8lICor5xBw-a2axFyc5s7wQ&amp;amp;sig2=w3xxHuBLNhmwwiXGvoseGA&amp;amp;bvm=bv.86956481,d.dGc" target="_blank"&gt;KE02 sub-family reference manual&lt;/A&gt; as followings.&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;1. Reset the device by asserting RESET pin or DAP_CTRL[3].&lt;/P&gt;&lt;P&gt;2. Set DAP_CTRL[0] bit to invoke debug mass erase via SWD Functional description&lt;/P&gt;&lt;P&gt;3. Release reset by deasserting RESET pin or DAP_CTRL[3] bit via SWD.&lt;/P&gt;&lt;P&gt;4. Wait till DAP_CTRL[0] bit is cleared ( After mass erase completes, DAP_CTRL[0]&lt;/P&gt;&lt;P&gt;bit is cleared automatically). At this time, CPU will be in hold state, MASS erase is&lt;/P&gt;&lt;P&gt;completed, and the device is in unsecure state (flash security byte in flash&lt;/P&gt;&lt;P&gt;configuration field is programmed with 0xFE) .&lt;/P&gt;&lt;P&gt;5. Reset the device.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;After performing step 1 ~ 3, I still cannot wait for the DAP_CTRL[0] bit is cleared.&lt;/P&gt;&lt;P&gt;I don't know whether I miss something in the steps.&lt;/P&gt;&lt;P&gt;Does the DAP_CTRL[0] bit mean MDM-AP control register bit 0 ? &lt;/P&gt;&lt;P&gt;If not, how can I get the DAP_CTRL[0] bit ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help ~&lt;/P&gt;&lt;P&gt;Jumbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 05:27:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/cannot-perform-mass-erasing-for-secured-MKE02Z64-via-SWD/m-p/335260#M15958</guid>
      <dc:creator>jumblerchi</dc:creator>
      <dc:date>2015-02-25T05:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: cannot perform mass erasing for secured MKE02Z64 via SWD</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/cannot-perform-mass-erasing-for-secured-MKE02Z64-via-SWD/m-p/335261#M15959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jumbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know how did you perform step 1~3?&lt;/P&gt;&lt;P&gt;And what tools do you use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 06:51:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/cannot-perform-mass-erasing-for-secured-MKE02Z64-via-SWD/m-p/335261#M15959</guid>
      <dc:creator>Rick_Li</dc:creator>
      <dc:date>2015-02-26T06:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: cannot perform mass erasing for secured MKE02Z64 via SWD</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/cannot-perform-mass-erasing-for-secured-MKE02Z64-via-SWD/m-p/335262#M15960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yong:&lt;/P&gt;&lt;P&gt;I use the proprietary s/w implemented by my company to connect the MKE02Z64 via &lt;A href="http://www.keil.com/support/man/docs/dapdebug/dapdebug_introduction.htm"&gt;CMSIS-DAP protocol.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, the s/w connects the device via SWD and get its IDCODE as well.&lt;/P&gt;&lt;P&gt;Then, I perform step 1 ~ 3 by following the steps of KE02 reference manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1, I use the DAP_SWJ_Pins command to reset the device by asserting RESET pin low, and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set the bit3 of MDM-AP control register by the DAP_Transfer command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2, I set the bit0 of MDM-AP control register to invoke debug mass erase.&lt;/P&gt;&lt;P&gt;Finally, I de-assert RESET pin low to release reset and set the bit3 of MDM-AP control register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I get the content of MDM-AP status register, which value is '0x07'.&lt;/P&gt;&lt;P&gt;According the manual's description,&amp;nbsp; the bit of flash mass erase acknowledge is set , the bit of flash ready is set and the bit of system security is on.&lt;/P&gt;&lt;P&gt;That the bit0 is set means the mass erase operation has started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how do I check whether the erasing is completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to check the bit0 of MDM-AP status register, but it is set always.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestion or idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 08:04:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/cannot-perform-mass-erasing-for-secured-MKE02Z64-via-SWD/m-p/335262#M15960</guid>
      <dc:creator>jumblerchi</dc:creator>
      <dc:date>2015-02-26T08:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: cannot perform mass erasing for secured MKE02Z64 via SWD</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/cannot-perform-mass-erasing-for-secured-MKE02Z64-via-SWD/m-p/335263#M15961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jumbler Chi,&lt;/P&gt;&lt;P&gt;The Attached is from my colleague, you will find a script that I used on a Freedom KE02Z40M board.&amp;nbsp; The way that I have it set up right now, it will only read the MDM-AP Status register.　 Reading the the MDM-AP Status register will allow you to determine the state of the device prior to the attempted Mass Erase.　 If you uncomment, the commented lines, it will execute the Mass Erase.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 09:12:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/cannot-perform-mass-erasing-for-secured-MKE02Z64-via-SWD/m-p/335263#M15961</guid>
      <dc:creator>Rick_Li</dc:creator>
      <dc:date>2015-03-06T09:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: cannot perform mass erasing for secured MKE02Z64 via SWD</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/cannot-perform-mass-erasing-for-secured-MKE02Z64-via-SWD/m-p/335264#M15962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yong Li:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for your script. :smileyhappy:&lt;/P&gt;&lt;P&gt;What time unit is used in 'sleep' command to wait for result ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;second ? or milli-second ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jumbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 01:32:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/cannot-perform-mass-erasing-for-secured-MKE02Z64-via-SWD/m-p/335264#M15962</guid>
      <dc:creator>jumblerchi</dc:creator>
      <dc:date>2015-03-09T01:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: cannot perform mass erasing for secured MKE02Z64 via SWD</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/cannot-perform-mass-erasing-for-secured-MKE02Z64-via-SWD/m-p/335265#M15963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jumbler&lt;/P&gt;&lt;P&gt;Were you able to solve your problem?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Patricia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 17:38:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/cannot-perform-mass-erasing-for-secured-MKE02Z64-via-SWD/m-p/335265#M15963</guid>
      <dc:creator>PatriciaTeran</dc:creator>
      <dc:date>2015-05-05T17:38:27Z</dc:date>
    </item>
  </channel>
</rss>

