<?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: K82 unintentionally secured by blhost, mass_erase does not work in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-unintentionally-secured-by-blhost-mass-erase-does-not-work/m-p/567962#M34034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved myself: Adding a weak pull-up to PTA4 / NMI_b fixed the issue. Mass_erase works as expected and unlocks the MCU.&lt;/P&gt;&lt;P&gt;Don't know why blhost locked the MCU, maybe similar issue with missing NMI pull-up?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2016 21:44:00 GMT</pubDate>
    <dc:creator>tomasvanek</dc:creator>
    <dc:date>2016-08-03T21:44:00Z</dc:date>
    <item>
      <title>K82 unintentionally secured by blhost, mass_erase does not work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-unintentionally-secured-by-blhost-mass-erase-does-not-work/m-p/567961#M34033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a custom board with MK82FN256VLL15, QSPI flash Micron N25Q064A and USB interface.&lt;/P&gt;&lt;P&gt;In NXP_Kinetis_Bootloader_2_0_0 I modified qcb_S25FL129P.c to fit N25Q064A parameters, built qspi_config_block.bin and used linux/i386/elftosb to link QCB with KSDK_2.0/boards/twrk80f150m/demo_apps/hello_world_qspi_alias/ application. Then I used&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; blhost -u -- receive-sb-file hello_world_qspi_alias.sb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First trial to program QSPI flash failed due to wrong definition of programming command in QCB LUT. After first programing the MCU responded to blhost read-memory.&lt;/P&gt;&lt;P&gt;Then I retried with changed QCB. blhost programming failed and MCU got locked! blhost read-memory and other commands now reports:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ blhost -u -- read-memory 0 32&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inject command 'read-memory'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response status = 10001 (0x2711) Command disallowed when security is enabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response word 1 = 0 (0x0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Read 0 of 32 bytes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I connected the board to a SWD adapter and used OpenOCD to mass erase MCU. Unfortunately mass erase does not work, MCU stays locked. MDM-AP status register reads 0x3e (or 0x3f after mass erase and 0x36 with reset asserted) - so Mass Erase Enable bit indicates that mass erase should be possible. Please help unlocking the MCU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 21:22:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-unintentionally-secured-by-blhost-mass-erase-does-not-work/m-p/567961#M34033</guid>
      <dc:creator>tomasvanek</dc:creator>
      <dc:date>2016-08-03T21:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: K82 unintentionally secured by blhost, mass_erase does not work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-unintentionally-secured-by-blhost-mass-erase-does-not-work/m-p/567962#M34034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved myself: Adding a weak pull-up to PTA4 / NMI_b fixed the issue. Mass_erase works as expected and unlocks the MCU.&lt;/P&gt;&lt;P&gt;Don't know why blhost locked the MCU, maybe similar issue with missing NMI pull-up?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 21:44:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-unintentionally-secured-by-blhost-mass-erase-does-not-work/m-p/567962#M34034</guid>
      <dc:creator>tomasvanek</dc:creator>
      <dc:date>2016-08-03T21:44:00Z</dc:date>
    </item>
  </channel>
</rss>

