<?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: Use codewarrior11 MCU:KEA64 when debug a problem occurs:The Debugger can not write memory. in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Use-codewarrior11-MCU-KEA64-when-debug-a-problem-occurs-The/m-p/1360442#M8653</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192606"&gt;@Wangerxi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for letting me know.&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;In that case , yes it could be the case that you have bricked the MCU.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;At the first sector of the flash there is field at 0x400 , containing security settings. Specially at 0x40C offset th&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;ere is a byte called FSEC, normally it has to be written with&amp;nbsp; ones ; it contains&amp;nbsp; critical fields controlling Security and mass erase enable that if they are written with zeroes, they will protect the MCU.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;You did not necesarilly bricked for ever the MCU. If you only enabled security you could disable it back, regaining debug access. But if you also disabled the Mass erase, you will not be able to recover the MCU with the SWD/ JTAG&amp;nbsp; or any external interface.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 02:28:49 GMT</pubDate>
    <dc:creator>diego_charles</dc:creator>
    <dc:date>2021-10-25T02:28:49Z</dc:date>
    <item>
      <title>Use codewarrior11 MCU:KEA64 when debug a problem occurs:The Debugger can not write memory.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Use-codewarrior11-MCU-KEA64-when-debug-a-problem-occurs-The/m-p/1359328#M8645</link>
      <description>&lt;P&gt;I use SWD download software, it doesn't work. Information as below:&lt;/P&gt;&lt;P&gt;Failed to resume target process.&lt;BR /&gt;ARM GDI Protocol Adapter : An error occurred while trying to write memory. The Debugger can not write memory.&lt;/P&gt;&lt;P&gt;Looking forward your reply, thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 08:30:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Use-codewarrior11-MCU-KEA64-when-debug-a-problem-occurs-The/m-p/1359328#M8645</guid>
      <dc:creator>Wangerxi</dc:creator>
      <dc:date>2021-10-21T08:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Use codewarrior11 MCU:KEA64 when debug a problem occurs:The Debugger can not write memory.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Use-codewarrior11-MCU-KEA64-when-debug-a-problem-occurs-The/m-p/1359345#M8646</link>
      <description>&lt;P&gt;/*Here is my code*/&lt;/P&gt;&lt;P&gt;#define SEC_SECTOR 0xFE00&lt;/P&gt;&lt;P&gt;uint8_t *pData8Bytes = 0;&lt;BR /&gt;uint8_t dataSend[4] = {0x01,0x02,0x03,0x04};&lt;/P&gt;&lt;P&gt;FLASH_EraseSector(SEC_SECTOR);&lt;BR /&gt;FLASH_Program(SEC_SECTOR,dataSend,4);&lt;BR /&gt;pData8Bytes = ((uint8_t *)SEC_SECTOR);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After download the code ,the next time i can't download and print "Failed to resume target process.&lt;BR /&gt;ARM GDI Protocol Adapter : An error occurred while trying to write memory. The Debugger can not write memory."&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 08:44:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Use-codewarrior11-MCU-KEA64-when-debug-a-problem-occurs-The/m-p/1359345#M8646</guid>
      <dc:creator>Wangerxi</dc:creator>
      <dc:date>2021-10-21T08:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Use codewarrior11 MCU:KEA64 when debug a problem occurs:The Debugger can not write memory.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Use-codewarrior11-MCU-KEA64-when-debug-a-problem-occurs-The/m-p/1360359#M8649</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192606"&gt;@Wangerxi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a check-list , that our colleague Erich Styger made,&amp;nbsp; time ago : &lt;A href="https://mcuoneclipse.com/2014/11/03/debugging-failure-check-list-and-hints/" target="_self"&gt;Debugging Failure: Check List and&amp;nbsp;Hints&lt;/A&gt;&amp;nbsp;I just recommend it as it is very handy .&amp;nbsp;Regarding your problem, like point 19 of the post, verify if you have not bricked the MCU, and try to perform a mass erase on the MCU.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I understand, you are now facing that problem, after you have tried to write a specific sector of the MCU from the application.&lt;/P&gt;
&lt;P&gt;Other recommendation is to try to use an aligned address for #define SEC_SECTOR, considering that there first sector of the flash begins at 0x0000_0000 and that there is a sector every 512 bytes.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diego_charles_0-1635031801887.png" style="width: 594px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/159937i65510BEC7D0B2C7B/image-dimensions/594x98?v=v2" width="594" height="98" role="button" title="diego_charles_0-1635031801887.png" alt="diego_charles_0-1635031801887.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;All the best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Diego.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Oct 2021 23:42:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Use-codewarrior11-MCU-KEA64-when-debug-a-problem-occurs-The/m-p/1360359#M8649</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-10-23T23:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Use codewarrior11 MCU:KEA64 when debug a problem occurs:The Debugger can not write memory.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Use-codewarrior11-MCU-KEA64-when-debug-a-problem-occurs-The/m-p/1360433#M8652</link>
      <description>&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;Thank you for your reply, my issue seems different, I might erased&amp;nbsp;the&amp;nbsp;&lt;SPAN&gt;first sector of the flash begins at 0x0000_0000, and will the chip be bricked?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Erxi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 01:59:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Use-codewarrior11-MCU-KEA64-when-debug-a-problem-occurs-The/m-p/1360433#M8652</guid>
      <dc:creator>Wangerxi</dc:creator>
      <dc:date>2021-10-25T01:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Use codewarrior11 MCU:KEA64 when debug a problem occurs:The Debugger can not write memory.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Use-codewarrior11-MCU-KEA64-when-debug-a-problem-occurs-The/m-p/1360442#M8653</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192606"&gt;@Wangerxi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for letting me know.&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;In that case , yes it could be the case that you have bricked the MCU.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;At the first sector of the flash there is field at 0x400 , containing security settings. Specially at 0x40C offset th&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;ere is a byte called FSEC, normally it has to be written with&amp;nbsp; ones ; it contains&amp;nbsp; critical fields controlling Security and mass erase enable that if they are written with zeroes, they will protect the MCU.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;You did not necesarilly bricked for ever the MCU. If you only enabled security you could disable it back, regaining debug access. But if you also disabled the Mass erase, you will not be able to recover the MCU with the SWD/ JTAG&amp;nbsp; or any external interface.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 02:28:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Use-codewarrior11-MCU-KEA64-when-debug-a-problem-occurs-The/m-p/1360442#M8653</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-10-25T02:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Use codewarrior11 MCU:KEA64 when debug a problem occurs:The Debugger can not write memory.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Use-codewarrior11-MCU-KEA64-when-debug-a-problem-occurs-The/m-p/1360453#M8654</link>
      <description>&lt;P&gt;Thanks for your declare, I got it.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 02:40:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Use-codewarrior11-MCU-KEA64-when-debug-a-problem-occurs-The/m-p/1360453#M8654</guid>
      <dc:creator>Wangerxi</dc:creator>
      <dc:date>2021-10-25T02:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use codewarrior11 MCU:KEA64 when debug a problem occurs:The Debugger can not write memory.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Use-codewarrior11-MCU-KEA64-when-debug-a-problem-occurs-The/m-p/1361047#M8656</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192606"&gt;@Wangerxi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you still have related questions or problems.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Diego.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 21:49:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Use-codewarrior11-MCU-KEA64-when-debug-a-problem-occurs-The/m-p/1361047#M8656</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-10-25T21:49:06Z</dc:date>
    </item>
  </channel>
</rss>

