<?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>Classic/Legacy CodeWarriorのトピックUsing reset in debugger erases DFlash</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Using-reset-in-debugger-erases-DFlash/m-p/295735#M6655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am pretty familiar with "hotsync" debugging a running microcontroller on many different kinds of Freescale parts and family , but t&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;he issue I am having is whenever I use the BDM (USBDM or PE Micro Multilink) to debug it erases the DFlash. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The trigger for erasure is hitting the reset button in CW. It has no trouble connecting to the device and a&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;t no point in time does it ever say erasing or indicate that is it erasing portions of memory in the logs. The program (PFlash) data stays intact. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps to reproduce the issue:&lt;/P&gt;&lt;P&gt;1. Program my HCS12XE.&lt;/P&gt;&lt;P&gt;2. Load the data into DFlash via UART.&amp;nbsp; &lt;/P&gt;&lt;P&gt;3. Hotsync or debug running code. &lt;/P&gt;&lt;P&gt;4. Hit the red reset button, which immediately taking code back to the reset vector, but as a side-effect erases my DFlash.&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything about the way the memory is setup in my project that would cause the real-time debugger to erase the DFlash upon debugger initiated reset. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;By the way, it does not happen during a normal power-on or external reset. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is any more information needed for advice on this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2014 16:12:11 GMT</pubDate>
    <dc:creator>RodneyMcGee</dc:creator>
    <dc:date>2014-05-12T16:12:11Z</dc:date>
    <item>
      <title>Using reset in debugger erases DFlash</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Using-reset-in-debugger-erases-DFlash/m-p/295735#M6655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am pretty familiar with "hotsync" debugging a running microcontroller on many different kinds of Freescale parts and family , but t&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;he issue I am having is whenever I use the BDM (USBDM or PE Micro Multilink) to debug it erases the DFlash. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The trigger for erasure is hitting the reset button in CW. It has no trouble connecting to the device and a&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;t no point in time does it ever say erasing or indicate that is it erasing portions of memory in the logs. The program (PFlash) data stays intact. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps to reproduce the issue:&lt;/P&gt;&lt;P&gt;1. Program my HCS12XE.&lt;/P&gt;&lt;P&gt;2. Load the data into DFlash via UART.&amp;nbsp; &lt;/P&gt;&lt;P&gt;3. Hotsync or debug running code. &lt;/P&gt;&lt;P&gt;4. Hit the red reset button, which immediately taking code back to the reset vector, but as a side-effect erases my DFlash.&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything about the way the memory is setup in my project that would cause the real-time debugger to erase the DFlash upon debugger initiated reset. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;By the way, it does not happen during a normal power-on or external reset. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is any more information needed for advice on this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 16:12:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Using-reset-in-debugger-erases-DFlash/m-p/295735#M6655</guid>
      <dc:creator>RodneyMcGee</dc:creator>
      <dc:date>2014-05-12T16:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using reset in debugger erases DFlash</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Using-reset-in-debugger-erases-DFlash/m-p/295736#M6656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rodney,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you're using CW for HC12 V5.1 which is the last version we've released.&lt;/P&gt;&lt;P&gt;I'm surprised the reset debugger button (black row with red circle) erase the DFLASH memory.&lt;/P&gt;&lt;P&gt;For my understanding the reset should change load the startup function on PC only.&lt;/P&gt;&lt;P&gt;I will check it on my side and will keep you informed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're using another version, let me know.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pascal&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>Thu, 15 May 2014 06:28:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Using-reset-in-debugger-erases-DFlash/m-p/295736#M6656</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2014-05-15T06:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using reset in debugger erases DFlash</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Using-reset-in-debugger-erases-DFlash/m-p/295737#M6657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rodney,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just see you're already in touch with a colleague through a Service Request 1-1347639175.&lt;/P&gt;&lt;P&gt;By default a Reset command will perform a reset and execute the reset.cmd file defined in the "Command Files ..."&lt;/P&gt;&lt;P&gt;We will work with my colleague to understand the cause of the behavior.&lt;/P&gt;&lt;P&gt;However it will be interesting to know if the problem (DFLASH erase) occurs immediately after the Reset of during startup code.&lt;/P&gt;&lt;P&gt;To check it can you:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - check the reset.cmd file is empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the file should be named and located in project folder&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmd\P&amp;amp;E_Multilink_USB_Reset.cmd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - check the DFLASH is not empty,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the application should switch to the startup entry function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - check the DFLASH memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is it empty or not at this time ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 07:41:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Using-reset-in-debugger-erases-DFlash/m-p/295737#M6657</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2014-05-15T07:41:37Z</dc:date>
    </item>
  </channel>
</rss>

