<?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 MK82F board stuck in reset in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK82F-board-stuck-in-reset/m-p/1047401#M56908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a MK82F board. I had previously been using segger JLinks to load programs on to the board and debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attempted to re-flash a debugger binary on to the K82F board in order to rule that out in the search for a bug. However, in doing this, the board now has D3 lit-up in red at all times. I have read this means it is stuck in a constant reset state.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried reloading the OpenSDA bootloader on to it, but no luck there. In DETAILS.TXT within the board, it says I have "Bootloader Version: 0244". I also tried loading updated firmware on to it. No help there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I enter the board in MAINTENANCE mode, then I see only the small green light (D1). This leads me to believe the board is recoverable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run JLinkExe, I can connect to the board, but only while it's not in MAINTENANCE mode. Once connected, I get this output:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Readout protection is set and mass erase is disabled. J-Link cannot unprotect the device.&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Core found&lt;BR /&gt;AP[0]: AHB-AP ROM base: 0xE00FF000&lt;BR /&gt;CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)&lt;BR /&gt;Found Cortex-M4 r0p1, Little endian.&lt;BR /&gt;FPUnit: 6 code (BP) slots and 2 literal slots&lt;BR /&gt;CoreSight components:&lt;BR /&gt;ROMTbl[0] @ E00FF000&lt;BR /&gt;ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7&lt;BR /&gt;ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT&lt;BR /&gt;ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB&lt;BR /&gt;ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM&lt;BR /&gt;ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU&lt;BR /&gt;ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM&lt;BR /&gt;Cortex-M4 identified.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can run "exec EnableEraseAllFlashBanks", but if I try to run "unlock kinetis", I get the following:&lt;/P&gt;&lt;P&gt;Found SWD-DP with ID 0x2BA01477&lt;BR /&gt;Unlocking device...ERROR: Read from DP/AP register failed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try to run "erase", I get:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;**************************&lt;BR /&gt;WARNING: CPU could not be halted&lt;BR /&gt;**************************&lt;/P&gt;&lt;P&gt;Erasing device...&lt;/P&gt;&lt;P&gt;**************************&lt;BR /&gt;WARNING: CPU could not be halted&lt;BR /&gt;**************************&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;****** Error: Can not read register 16 (XPSR) while CPU is running&lt;BR /&gt;Can not read register 20 (CFBP) while CPU is running&lt;BR /&gt;Can not read register 0 (R0) while CPU is running&lt;BR /&gt;Can not read register 1 (R1) while CPU is running&lt;BR /&gt;Can not read register 2 (R2) while CPU is running&lt;BR /&gt;Can not read register 3 (R3) while CPU is running&lt;BR /&gt;Can not read register 4 (R4) while CPU is running&lt;BR /&gt;Can not read register 5 (R5) while CPU is running&lt;BR /&gt;Can not read register 6 (R6) while CPU is running&lt;BR /&gt;Can not read register 7 (R7) while CPU is running&lt;BR /&gt;Can not read register 8 (R8) while CPU is running&lt;BR /&gt;Can not read register 9 (R9) while CPU is running&lt;BR /&gt;Can not read register 10 (R10) while CPU is running&lt;BR /&gt;Can not read register 11 (R11) while CPU is running&lt;BR /&gt;Can not read register 12 (R12) while CPU is running&lt;BR /&gt;Can not read register 14 (R14) while CPU is running&lt;BR /&gt;Can not read register 15 (R15) while CPU is running&lt;BR /&gt;Can not read register 17 (MSP) while CPU is running&lt;BR /&gt;Can not read register 18 (PSP) while CPU is running&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;****** Error: Failed to prepare for programming.&lt;BR /&gt;Could not preserve target memory.&lt;BR /&gt;ERROR: Erase returned with error code -1.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know what to try or who to contact... Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2020 18:42:48 GMT</pubDate>
    <dc:creator>nicolette_prevo</dc:creator>
    <dc:date>2020-07-30T18:42:48Z</dc:date>
    <item>
      <title>MK82F board stuck in reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK82F-board-stuck-in-reset/m-p/1047401#M56908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a MK82F board. I had previously been using segger JLinks to load programs on to the board and debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attempted to re-flash a debugger binary on to the K82F board in order to rule that out in the search for a bug. However, in doing this, the board now has D3 lit-up in red at all times. I have read this means it is stuck in a constant reset state.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried reloading the OpenSDA bootloader on to it, but no luck there. In DETAILS.TXT within the board, it says I have "Bootloader Version: 0244". I also tried loading updated firmware on to it. No help there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I enter the board in MAINTENANCE mode, then I see only the small green light (D1). This leads me to believe the board is recoverable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run JLinkExe, I can connect to the board, but only while it's not in MAINTENANCE mode. Once connected, I get this output:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Readout protection is set and mass erase is disabled. J-Link cannot unprotect the device.&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Core found&lt;BR /&gt;AP[0]: AHB-AP ROM base: 0xE00FF000&lt;BR /&gt;CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)&lt;BR /&gt;Found Cortex-M4 r0p1, Little endian.&lt;BR /&gt;FPUnit: 6 code (BP) slots and 2 literal slots&lt;BR /&gt;CoreSight components:&lt;BR /&gt;ROMTbl[0] @ E00FF000&lt;BR /&gt;ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7&lt;BR /&gt;ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT&lt;BR /&gt;ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB&lt;BR /&gt;ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM&lt;BR /&gt;ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU&lt;BR /&gt;ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM&lt;BR /&gt;Cortex-M4 identified.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can run "exec EnableEraseAllFlashBanks", but if I try to run "unlock kinetis", I get the following:&lt;/P&gt;&lt;P&gt;Found SWD-DP with ID 0x2BA01477&lt;BR /&gt;Unlocking device...ERROR: Read from DP/AP register failed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try to run "erase", I get:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;**************************&lt;BR /&gt;WARNING: CPU could not be halted&lt;BR /&gt;**************************&lt;/P&gt;&lt;P&gt;Erasing device...&lt;/P&gt;&lt;P&gt;**************************&lt;BR /&gt;WARNING: CPU could not be halted&lt;BR /&gt;**************************&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;****** Error: Can not read register 16 (XPSR) while CPU is running&lt;BR /&gt;Can not read register 20 (CFBP) while CPU is running&lt;BR /&gt;Can not read register 0 (R0) while CPU is running&lt;BR /&gt;Can not read register 1 (R1) while CPU is running&lt;BR /&gt;Can not read register 2 (R2) while CPU is running&lt;BR /&gt;Can not read register 3 (R3) while CPU is running&lt;BR /&gt;Can not read register 4 (R4) while CPU is running&lt;BR /&gt;Can not read register 5 (R5) while CPU is running&lt;BR /&gt;Can not read register 6 (R6) while CPU is running&lt;BR /&gt;Can not read register 7 (R7) while CPU is running&lt;BR /&gt;Can not read register 8 (R8) while CPU is running&lt;BR /&gt;Can not read register 9 (R9) while CPU is running&lt;BR /&gt;Can not read register 10 (R10) while CPU is running&lt;BR /&gt;Can not read register 11 (R11) while CPU is running&lt;BR /&gt;Can not read register 12 (R12) while CPU is running&lt;BR /&gt;Can not read register 14 (R14) while CPU is running&lt;BR /&gt;Can not read register 15 (R15) while CPU is running&lt;BR /&gt;Can not read register 17 (MSP) while CPU is running&lt;BR /&gt;Can not read register 18 (PSP) while CPU is running&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;****** Error: Failed to prepare for programming.&lt;BR /&gt;Could not preserve target memory.&lt;BR /&gt;ERROR: Erase returned with error code -1.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know what to try or who to contact... Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2020 18:42:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK82F-board-stuck-in-reset/m-p/1047401#M56908</guid>
      <dc:creator>nicolette_prevo</dc:creator>
      <dc:date>2020-07-30T18:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: MK82F board stuck in reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK82F-board-stuck-in-reset/m-p/1047402#M56909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nicolette,&lt;/P&gt;&lt;P&gt;Hope you are doing well.&lt;/P&gt;&lt;P&gt;You may retry the steps to unlock and erase the microcontroller in the following post:&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://mcuoneclipse.com/2014/10/05/unlocking-and-erasing-flash-with-segger-j-link/" title="https://mcuoneclipse.com/2014/10/05/unlocking-and-erasing-flash-with-segger-j-link/"&gt;Unlocking and Erasing FLASH with Segger J-Link | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, from the first line in your description it states that :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;Readout protection is set and mass erase is disabled. J-Link cannot unprotect the device.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If this is true then it will not be recoverable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try the following to check if read protection is set by reading the address 0x0 - 0x1000. If you are not able to then it is set. As you are not able to unlock the kinetis then this means that mass erase is disabled as stated. This would be the last recovery option.&amp;nbsp;If you have secured your device with mass erase disabled, then the device is bricked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2020 20:21:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK82F-board-stuck-in-reset/m-p/1047402#M56909</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-08-05T20:21:21Z</dc:date>
    </item>
  </channel>
</rss>

