<?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: I am getting the following error when trying to flash Failed to resume target process. Not allow in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I-am-getting-the-following-error-when-trying-to-flash-Failed-to/m-p/1480913#M8827</link>
    <description>&lt;DIV&gt;Kinetis MCU family often has specific flash protection byte(s) which may have been overwritten.&lt;/DIV&gt;&lt;DIV&gt;"unlock kinetis" command (in the JLink commandline) should help in such cases to unlock the device.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Tue, 28 Jun 2022 04:36:20 GMT</pubDate>
    <dc:creator>sumit_batra</dc:creator>
    <dc:date>2022-06-28T04:36:20Z</dc:date>
    <item>
      <title>I am getting the following error when trying to flash Failed to resume target process. Not allowed to access registers while running</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I-am-getting-the-following-error-when-trying-to-flash-Failed-to/m-p/666093#M5950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using a custom board, that has been flashed before. Processor, MK20FX512xxx12.&amp;nbsp; I tried the following command in J-Link Commander, "h", to halt the processor. Doesn't help.&lt;/P&gt;&lt;P&gt;Codewarrior 10.7&lt;/P&gt;&lt;P&gt;I have no compile or PE generate code errors.&lt;/P&gt;&lt;P&gt;Just can't flash the MCU&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 15:54:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I-am-getting-the-following-error-when-trying-to-flash-Failed-to/m-p/666093#M5950</guid>
      <dc:creator>davidpotter</dc:creator>
      <dc:date>2017-05-03T15:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: I am getting the following error when trying to flash Failed to resume target process. Not allowed to access registers while running</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I-am-getting-the-following-error-when-trying-to-flash-Failed-to/m-p/666094#M5951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you flash it? That error message indicates that the J-Link isnot able to start the program on the processor (it is already running?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 17:31:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I-am-getting-the-following-error-when-trying-to-flash-Failed-to/m-p/666094#M5951</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-05-03T17:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: I am getting the following error when trying to flash Failed to resume target process. Not allowed to access registers while running</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I-am-getting-the-following-error-when-trying-to-flash-Failed-to/m-p/666095#M5952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Segger Jlink plus. I can run Jlink commander and access the processor (though, that is not how I was trying to flash the part).&lt;/P&gt;&lt;P&gt;I have the RUN and Debug connection  set to J-Link/J-Link trace.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I tried running a halt command (h) from the J-Link commander window&lt;/P&gt;&lt;P&gt;and then flashing via Codewarrior. That didn’t work, although at least on one occasion, the flashing started and then&lt;/P&gt;&lt;P&gt;hung up. The progress window reported &amp;gt; 70% finished before it hung up.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I haven’t tried to configure Codewarrior to generate a .bin, or .srec file and load the file directly from the Segger commander window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 17:46:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I-am-getting-the-following-error-when-trying-to-flash-Failed-to/m-p/666095#M5952</guid>
      <dc:creator>davidpotter</dc:creator>
      <dc:date>2017-05-03T17:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: I am getting the following error when trying to flash Failed to resume target process. Not allowed to access registers while running</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I-am-getting-the-following-error-when-trying-to-flash-Failed-to/m-p/666096#M5953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the device flashed as follows:&lt;/P&gt;&lt;P&gt;Tool bar --&amp;gt; Run --&amp;gt; left button click--&amp;gt;&amp;nbsp; select Debug Configurations--&amp;gt;Edit Target Settings--&amp;gt;Edit Target and&lt;/P&gt;&lt;P&gt;checked Execute on reset, and un-checked Run out of Reset and unchecked Iniitalize target.&lt;/P&gt;&lt;P&gt;I think the main change that made the difference was NOT using the initialization script,&lt;/P&gt;&lt;P&gt;$ProjDirPath/Project_Settings/Debugger/init_kinetis.tcl. I haven't examined exactly is the problem other than certain registers that the script was trying to access were not available while the processor was running. You can see some&lt;/P&gt;&lt;P&gt;evidence of this in the following log message when flashing:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Starting 3rd party flash programming...&lt;BR /&gt;INF: &lt;BR /&gt;Jlink: CPU could not be haltedINF: &lt;BR /&gt;Jlink: CPU could not be haltedINF: &lt;BR /&gt;Jlink: Timeout while checking target RAM, RAMCode did not respond in time&lt;BR /&gt;Failed to prepare for programming.&lt;BR /&gt;Failed to execute RAMCode for RAM check!&lt;BR /&gt;Can not read register 16 (XPSR) while CPU is running&lt;BR /&gt;Can not read register 20 (CFBP) while CPU is runnin&lt;BR /&gt;Starting 3rd party flash programming...&lt;BR /&gt;INF:&lt;/P&gt;&lt;P&gt;I haven't examined the .tcl script to see which of those errors or which error in general killed the flashing.&lt;/P&gt;&lt;P&gt;Two more things. I did NOT halt the CPU via the Jlink commander window. I am using a Jlink Segger Plus.&lt;/P&gt;&lt;P&gt;Would be nice to get a deeper understanding of what elements of debugging are failing. But for now, I am&lt;/P&gt;&lt;P&gt;happy to move forward getting useful coding loaded onto the board&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 15:45:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I-am-getting-the-following-error-when-trying-to-flash-Failed-to/m-p/666096#M5953</guid>
      <dc:creator>davidpotter</dc:creator>
      <dc:date>2017-05-04T15:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: I am getting the following error when trying to flash Failed to resume target process. Not allowed to access registers while running</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I-am-getting-the-following-error-when-trying-to-flash-Failed-to/m-p/666097#M5954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a comment:&amp;nbsp; I have a number of programs on a custom K60FX512 board that have been running successfully for over a year using CW10.6 on Win7-64b.&amp;nbsp; Now the JLink interface is no longer working -- I have two of these, one basic unit and other is JLink Plus.&amp;nbsp; Both have been in use for several years. Installed CW10.7, same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can still program, etc., using JFlash V4.84 (I know that is old).&amp;nbsp; Same&amp;nbsp;program can be downloaded and debug using PEMicro adapter, no problems there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparent issue:&amp;nbsp; switched over to MCUXpresso for a K22F project for a few weeks, using PEMicro Universal Multilink adapter.&amp;nbsp;&amp;nbsp;&amp;nbsp;It appears that whatever JLink driver got installed killed the CW10.6/10.7 setup.&amp;nbsp; I got all kinds of errors from not being able to find the JLink adapter, to same error message reported in David Potter's question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just installed Segger latest 6.20c, now back to normal.&amp;nbsp; CW10.6 works again with JLink adapters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 22:31:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I-am-getting-the-following-error-when-trying-to-flash-Failed-to/m-p/666097#M5954</guid>
      <dc:creator>talktrn</dc:creator>
      <dc:date>2017-09-27T22:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: I am getting the following error when trying to flash Failed to resume target process. Not allow</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I-am-getting-the-following-error-when-trying-to-flash-Failed-to/m-p/1480913#M8827</link>
      <description>&lt;DIV&gt;Kinetis MCU family often has specific flash protection byte(s) which may have been overwritten.&lt;/DIV&gt;&lt;DIV&gt;"unlock kinetis" command (in the JLink commandline) should help in such cases to unlock the device.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Jun 2022 04:36:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I-am-getting-the-following-error-when-trying-to-flash-Failed-to/m-p/1480913#M8827</guid>
      <dc:creator>sumit_batra</dc:creator>
      <dc:date>2022-06-28T04:36:20Z</dc:date>
    </item>
  </channel>
</rss>

