<?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: How to deal with MDM-AP Status System Security bit set on new MKL26Z in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-deal-with-MDM-AP-Status-System-Security-bit-set-on-new/m-p/453393#M26956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Neil Hancock:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is recommended to have a 0.1 uF capacitor to ground in the Reset_b pin close to the MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When security is set but Mass Erase is enabled then it is still possible to connect and unsecure the MCU with the &lt;STRONG&gt;unlock kinetis&lt;/STRONG&gt; command, then this is most probably a hardware issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the MCU is constantly resetting, a common trick is to hold down the Reset_b pin with a switch and release it when launching the connection command. This requires several attempts to synchronize the button press-depress with the connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you had a P&amp;amp;E Micro tool (e.g. Universal Multilink) they have a utility to recover stubborn boards called "Kinetis Recovery Utility". You can find it in the next link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.pemicro.com/support/download_processor.cfm?type=5" title="https://www.pemicro.com/support/download_processor.cfm?type=5"&gt;P&amp;amp;E Microcomputer Systems&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps. Let us know of further results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2015 20:55:23 GMT</pubDate>
    <dc:creator>Jorge_Gonzalez</dc:creator>
    <dc:date>2015-08-21T20:55:23Z</dc:date>
    <item>
      <title>How to deal with MDM-AP Status System Security bit set on new MKL26Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-deal-with-MDM-AP-Status-System-Security-bit-set-on-new/m-p/453392#M26955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I’m bring up a new revision of a MKL26Z128VFT4 board.&lt;/P&gt;&lt;P&gt;I have one board working previously and the numbers on the MKL26Z are all the same indicating same batch, but the devices where purchased at separate times from Digikey&lt;/P&gt;&lt;P&gt;However this new PCB revision has the reset pulse every 3us – 2us in reset and then 1us released – pulled up with a 10K. Generated internal in the MK26Z&lt;/P&gt;&lt;P&gt;The Reset, NMI pin, SWD_DIO pin are pulled up through 10K, and SWD_CLKI pulled to 0V&amp;nbsp; through 10K. All worked on the previous revision of the board.&lt;/P&gt;&lt;P&gt;I’m using a KDS3 with J-Link with (sw latest v5.0l) to program – and it keeps getting “Timeout while unlocking device” “Timeout while unsecuring device”&lt;/P&gt;&lt;P&gt;I did initially have the bad update for KDS3, that had a problem with a plugin - but I've udpated the plugin - and dropped to looking a the MDM-AP register directly&lt;/P&gt;&lt;P&gt;On doing a lot of reading here and elsewhere (thanks for the community discussions ),&lt;/P&gt;&lt;P&gt;using J-Link Commander I read the devices MDM-AP register&lt;/P&gt;&lt;P&gt;and it appears bit 2 “system Security” is set.&lt;/P&gt;&lt;P&gt;I have read AN485, tried suggestions for running a unlock script from mcuOnEclipse.com,&lt;/P&gt;&lt;P&gt;but nothing has worked, and I can't program the Flash to get it out of its reseting.&lt;/P&gt;&lt;P&gt;Any insights/suggestions for next steps appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;device ?&lt;/P&gt;&lt;P&gt;Info: Device "MKL26Z128XXX4 (ALLOW SECURITY)" selected.&lt;/P&gt;&lt;P&gt;Reconnecting to target...&lt;/P&gt;&lt;P&gt;Info: Found SWD-DP with ID 0x0BC11477&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****** Error: Kinetis (connect): Timeout while unsecuring device. Erase never starts.&lt;/P&gt;&lt;P&gt;Kinetis (connect): Failed to unsecure Kinetis device.&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;unlock kinetis&lt;/P&gt;&lt;P&gt;Unlocking device...Timeout while unlocking device.&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;SWDreadAP 0x1000000&lt;/P&gt;&lt;P&gt;Read AP register 16777216 = 0x00000036&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;SWDreadAP 0x1000000&lt;/P&gt;&lt;P&gt;Read AP register 16777216 = 0x00000034&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;SWDreadAP 0x1000000&lt;/P&gt;&lt;P&gt;Read AP register 16777216 = 0x00000034&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;J-Link&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 00:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-deal-with-MDM-AP-Status-System-Security-bit-set-on-new/m-p/453392#M26955</guid>
      <dc:creator>neilhancock</dc:creator>
      <dc:date>2015-08-20T00:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to deal with MDM-AP Status System Security bit set on new MKL26Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-deal-with-MDM-AP-Status-System-Security-bit-set-on-new/m-p/453393#M26956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Neil Hancock:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is recommended to have a 0.1 uF capacitor to ground in the Reset_b pin close to the MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When security is set but Mass Erase is enabled then it is still possible to connect and unsecure the MCU with the &lt;STRONG&gt;unlock kinetis&lt;/STRONG&gt; command, then this is most probably a hardware issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the MCU is constantly resetting, a common trick is to hold down the Reset_b pin with a switch and release it when launching the connection command. This requires several attempts to synchronize the button press-depress with the connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you had a P&amp;amp;E Micro tool (e.g. Universal Multilink) they have a utility to recover stubborn boards called "Kinetis Recovery Utility". You can find it in the next link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.pemicro.com/support/download_processor.cfm?type=5" title="https://www.pemicro.com/support/download_processor.cfm?type=5"&gt;P&amp;amp;E Microcomputer Systems&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps. Let us know of further results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 20:55:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-deal-with-MDM-AP-Status-System-Security-bit-set-on-new/m-p/453393#M26956</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-08-21T20:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to deal with MDM-AP Status System Security bit set on new MKL26Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-deal-with-MDM-AP-Status-System-Security-bit-set-on-new/m-p/453394#M26957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge, appreciate the response, though ~~help~~ I don't like the answer :smileysad:.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm being forced back to board bringup square 1 with this analysis. As an alternative I've built a&amp;nbsp; KL27Z on the third and last PCB I had - however it had a similar problem - so possibly toolchain hell from an incompatible Segger interface.&lt;/P&gt;&lt;P&gt;Since then I've attempted to rebuild the KDS300 and see if that helps &lt;/P&gt;&lt;P&gt;However the KL27Z kboot on the USB is responding - yeah - or at least registering on my Win8.1 workstation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to KL27Z only recently supported on KSDK1.2 and KSDK1.2 makes earlier visual PE components incompatibilities, its forcing me go back to square 1 with board support software by building a simple LED flasher to download.&lt;/P&gt;&lt;P&gt;So following the instructions to go down the laborous route of hand crafting KSDK1.2 APIs - checking it works on a FRDM-KL27Z board first. &lt;/P&gt;&lt;P&gt;I guess it feels like having the ProcessorExpert visual candy taken away and back to manual&amp;nbsp; old fashioned include file links - so see if I can try that route - and will also try your suggestions to see if I can program the board through the J-Link interface OR&amp;nbsp; KBOOT interface&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 23:04:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-deal-with-MDM-AP-Status-System-Security-bit-set-on-new/m-p/453394#M26957</guid>
      <dc:creator>neilhancock</dc:creator>
      <dc:date>2015-08-24T23:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to deal with MDM-AP Status System Security bit set on new MKL26Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-deal-with-MDM-AP-Status-System-Security-bit-set-on-new/m-p/453395#M26958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, just a follow up - the J-Link for some reason really locked my prototype boards, and segger didn't respond to a posting about it.&lt;/P&gt;&lt;P&gt; I did get the P&amp;amp;E Multilink, and tried it on the boards. &lt;/P&gt;&lt;P&gt;P&amp;amp;E was fantastic in their fast support and help - however unfortunately it wasn't able to unlock it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the KL27Z board I was able to connect over USB&lt;/P&gt;&lt;P&gt;blhostwin –u get-property 17 &lt;/P&gt;&lt;P&gt;and it responded&lt;/P&gt;&lt;P&gt;KL27Z256 Flash Security State = SECURE&lt;/P&gt;&lt;P&gt; So I conclude somehow the J-Link locked it and since I used up the prototypes I had I've ordered some more boards.&lt;/P&gt;&lt;P&gt;I'm a big fan of KBOOT now. :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 22:10:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-deal-with-MDM-AP-Status-System-Security-bit-set-on-new/m-p/453395#M26958</guid>
      <dc:creator>neilhancock</dc:creator>
      <dc:date>2015-09-08T22:10:41Z</dc:date>
    </item>
  </channel>
</rss>

