<?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>MCUXpresso IDE中的主题 Re: Mass erase when debugging on MCUXpresso</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Mass-erase-when-debugging-on-MCUXpresso/m-p/840995#M3294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be achieved by the use of a connect script.&amp;nbsp; Supplied with MCUXPresso IDE in the location &lt;EM&gt;&amp;lt;install dir&amp;gt;/IDE/bin/Scripts&lt;/EM&gt; is a script file called &lt;EM&gt;kinetismasserase.scp&lt;/EM&gt;. If you reference this script file as a connect script within your project launch configuration, then the part will be mass erased on each debug connection (before any other flash programming operation).&amp;nbsp; Note you would replace the existing kinetisconnect.scp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A question however, is why you would want to do this. The flash drivers on these parts will perform sector erase operations as required. However a feature of these parts is that a erase is rapid, so there is little time penalty in erasing every time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MCUXpresso IDE User Guide section 4.2 &lt;EM&gt;An Introduction to Launch Configuration Files&lt;/EM&gt; may be of assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2018 09:59:12 GMT</pubDate>
    <dc:creator>lpcxpresso_supp</dc:creator>
    <dc:date>2018-08-10T09:59:12Z</dc:date>
    <item>
      <title>Mass erase when debugging on MCUXpresso</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Mass-erase-when-debugging-on-MCUXpresso/m-p/840994#M3293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Kinetis-based project that I'm developing on the MCU Xpresso IDE. I use LPC Link2 as a debug probe. In the past, I've been using CodeWarrior and that, by default, performed a mass erase of the chip every time I started debugging. Is there any way to achieve a similar behavior on MCU Xpresso?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 16:20:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Mass-erase-when-debugging-on-MCUXpresso/m-p/840994#M3293</guid>
      <dc:creator>odd_bikes</dc:creator>
      <dc:date>2018-08-09T16:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Mass erase when debugging on MCUXpresso</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Mass-erase-when-debugging-on-MCUXpresso/m-p/840995#M3294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be achieved by the use of a connect script.&amp;nbsp; Supplied with MCUXPresso IDE in the location &lt;EM&gt;&amp;lt;install dir&amp;gt;/IDE/bin/Scripts&lt;/EM&gt; is a script file called &lt;EM&gt;kinetismasserase.scp&lt;/EM&gt;. If you reference this script file as a connect script within your project launch configuration, then the part will be mass erased on each debug connection (before any other flash programming operation).&amp;nbsp; Note you would replace the existing kinetisconnect.scp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A question however, is why you would want to do this. The flash drivers on these parts will perform sector erase operations as required. However a feature of these parts is that a erase is rapid, so there is little time penalty in erasing every time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MCUXpresso IDE User Guide section 4.2 &lt;EM&gt;An Introduction to Launch Configuration Files&lt;/EM&gt; may be of assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 09:59:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Mass-erase-when-debugging-on-MCUXpresso/m-p/840995#M3294</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2018-08-10T09:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Mass erase when debugging on MCUXpresso</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Mass-erase-when-debugging-on-MCUXpresso/m-p/840996#M3295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried that before contacting you, but it doesn't seem to work. Attached is the log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCUXpresso RedlinkMulti Driver v10.1 (Dec 19 2017 16:58:35 - crt_emu_cm_redlink build 390)&lt;BR /&gt;Reconnected to existing redlink server (PID 4294967295)&lt;BR /&gt;Connecting to probe 1 core 0 (server PID unknown) gave 'OK'&lt;BR /&gt;============= SCRIPT: kinetismasserase.scp =============&lt;BR /&gt;Kinetis Mass Erase Script&lt;BR /&gt;DpID = 2BA01477&lt;BR /&gt;Assert NRESET&lt;BR /&gt;Reset pin state: 00&lt;BR /&gt;Power up Debug&lt;BR /&gt;MDM-AP APID: 0x001C0000&lt;BR /&gt;MDM-AP System Reset/Hold Reset/Debug Request&lt;BR /&gt;MDM-AP Control: 0x0000001C&lt;BR /&gt;MDM-AP Status (Flash Ready) : 0x00000072&lt;BR /&gt;Part is not secured&lt;BR /&gt;MDM-AP Control: 0x00000014&lt;BR /&gt;Release NRESET&lt;BR /&gt;Reset pin state: 01&lt;BR /&gt;MDM-AP Control (Debug Request): 0x00000004&lt;BR /&gt;MDM-AP Status: 0x0001007A&lt;BR /&gt;MDM-AP Core Halted&lt;BR /&gt;============= END SCRIPT ===============================&lt;BR /&gt;Probe Firmware: LPC-LINK2 CMSIS-DAP V5.183 (NXP Semiconductors)&lt;BR /&gt;Serial Number: BYGWOVGU&lt;BR /&gt;VID:PID: 1FC9:0090&lt;BR /&gt;USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#8&amp;amp;24f7e99f&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;debug interface type = Cortex-M3/4 (DAP DP ID 2BA01477) over SWD&lt;BR /&gt;processor type = Cortex-M4 (CPU ID 410FC240)&lt;BR /&gt;number of h/w breakpoints = 6&lt;BR /&gt;number of flash patches = 2&lt;BR /&gt;number of h/w watchpoints = 4&lt;BR /&gt;Probe(0): Connected&amp;amp;Reset. DpID: 2BA01477. CpuID: 410FC240. Info: &amp;lt;None&amp;gt;&lt;BR /&gt;Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.&lt;BR /&gt;Content of CoreSight Debug ROM(s):&lt;BR /&gt;RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM dev (type 0x1)&lt;BR /&gt;ROM 1 E000E000: CID B105E00D PID 04000BB00C ChipIP dev SCS (type 0x0)&lt;BR /&gt;ROM 1 E0001000: CID B105E00D PID 04003BB002 ChipIP dev DWT (type 0x0)&lt;BR /&gt;ROM 1 E0002000: CID B105E00D PID 04002BB003 ChipIP dev FPB (type 0x0)&lt;BR /&gt;ROM 1 E0000000: CID B105E00D PID 04003BB001 ChipIP dev ITM (type 0x0)&lt;BR /&gt;ROM 1 E0040000: CID B105900D PID 04000BB9A1 CoreSight dev TPIU type 0x11 Trace Sink - TPIU&lt;BR /&gt;ROM 1 E0041000: CID B105900D PID 04000BB925 CoreSight dev ETM type 0x13 Trace Source - core&lt;BR /&gt;ROM 1 E0042000: CID B105900D PID 04003BB907 CoreSight dev ETB type 0x21 Trace Sink - ETB&lt;BR /&gt;ROM 1 E0043000: CID B105900D PID 04001BB908 CoreSight dev CSTF type 0x12 Trace Link - Trace funnel/router&lt;BR /&gt;Inspected v.2 On chip Kinetis Flash memory module FTFE_4K.cfx&lt;BR /&gt;Image 'Kinetis SemiGeneric Feb 17 2017 17:24:02'&lt;BR /&gt;Opening flash driver FTFE_4K.cfx&lt;BR /&gt;Sending VECTRESET to run flash driver&lt;BR /&gt;flash variant 'K 66 FTFE Generic 4K' detected (2MB = 512*4K at 0x0)&lt;BR /&gt;Closing flash driver FTFE_4K.cfx&lt;BR /&gt;NXP: MK66FN2M0xxx18&lt;BR /&gt;Connected: was_reset=true. was_stopped=true&lt;BR /&gt;MCUXpresso Free License - Downloads unlimited&lt;BR /&gt;Awaiting telnet connection to port 3330 ...&lt;BR /&gt;GDB nonstop mode enabled&lt;BR /&gt;Opening flash driver FTFE_4K.cfx (already resident)&lt;BR /&gt;Sending VECTRESET to run flash driver&lt;BR /&gt;Writing 8 bytes to address 0x00000000 in Flash&lt;BR /&gt;Erased/Wrote page 0-0 with 8 bytes in 50msec&lt;BR /&gt;Closing flash driver FTFE_4K.cfx&lt;BR /&gt;Flash Write Done&lt;BR /&gt;Opening flash driver FTFE_4K.cfx (already resident)&lt;BR /&gt;Sending VECTRESET to run flash driver&lt;BR /&gt;Writing 86608 bytes to address 0x00000400 in Flash&lt;BR /&gt;Erased/Wrote page 0-21 with 86608 bytes in 901msec&lt;BR /&gt;Closing flash driver FTFE_4K.cfx&lt;BR /&gt;Flash Write Done&lt;BR /&gt;Opening flash driver FTFE_4K.cfx (already resident)&lt;BR /&gt;Sending VECTRESET to run flash driver&lt;BR /&gt;Writing 85660 bytes to address 0x00015650 in Flash&lt;BR /&gt;Erased/Wrote page 21-42 with 85660 bytes in 897msec&lt;BR /&gt;Closing flash driver FTFE_4K.cfx&lt;BR /&gt;Flash Write Done&lt;BR /&gt;Flash Program Summary: 172273 bytes in 1.85 seconds (90.99 KB/sec)&lt;BR /&gt;Starting execution using system reset and halt target&lt;BR /&gt;Stopped: Breakpoint #1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 18:04:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Mass-erase-when-debugging-on-MCUXpresso/m-p/840996#M3295</guid>
      <dc:creator>odd_bikes</dc:creator>
      <dc:date>2018-08-13T18:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Mass erase when debugging on MCUXpresso</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Mass-erase-when-debugging-on-MCUXpresso/m-p/840997#M3296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any feedback on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 12:58:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Mass-erase-when-debugging-on-MCUXpresso/m-p/840997#M3296</guid>
      <dc:creator>odd_bikes</dc:creator>
      <dc:date>2018-08-17T12:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Mass erase when debugging on MCUXpresso</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Mass-erase-when-debugging-on-MCUXpresso/m-p/840998#M3297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default, the kinetisconnect.scp is configured as the connect script for most Kinetis part launch configurations. This script will report if the Kinetis part is secure and requires a mass erase, but will initiate a mass erase. This is intentional. The kinetismasserase.scp script will mass erase, but only if the part is secure. A question posed to you is why you would want to mass erase every time? If you insist, you can modify the kinetismasserase.scp script file to bypass the secure check, and proceed with mass erase. So, for example, in the kinetismasserase.scp script, find and modify line 790 as below:&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;790&amp;nbsp;&amp;nbsp; if s% &amp;amp; 0x00000004 Then Goto 860&lt;BR /&gt;800&amp;nbsp;&amp;nbsp; REM ================================================================&lt;BR /&gt;810&amp;nbsp;&amp;nbsp; Print "Part is not secured"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;790&amp;nbsp;&amp;nbsp; Goto 860&lt;BR /&gt;800&amp;nbsp;&amp;nbsp; REM ================================================================&lt;BR /&gt;810&amp;nbsp;&amp;nbsp; Print "Part is not secured"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, you need to use kinetismasserase.scp as your launch configuration connect script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;MCUXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 15:57:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Mass-erase-when-debugging-on-MCUXpresso/m-p/840998#M3297</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2018-08-24T15:57:29Z</dc:date>
    </item>
  </channel>
</rss>

