<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Tutorial for FRDM-KL25Z: Unsecuring the Freescale Freedom Board</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/10751/tutorial-for-frdm-kl25z-unsecuring-the-freescale-freedom-board</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Tutorial for FRDM-KL25Z: Unsecuring the Freescale Freedom Board</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/10751/tutorial-for-frdm-kl25z-unsecuring-the-freescale-freedom-board</link><pubDate>Tue, 12 Mar 2013 17:03:14 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7f9cff95-22cf-40bc-9f97-1bccf36be93e</guid><dc:creator>FreescaleTools_and_Software</dc:creator><comments>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/10751/tutorial-for-frdm-kl25z-unsecuring-the-freescale-freedom-board#comments</comments><description>Current Revision posted to Documents by FreescaleTools_and_Software on 3/12/2013 5:03:14 PM&lt;br /&gt;
&lt;p style="margin:0;text-align:left;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#ff6600;font-size:15px;"&gt;&lt;em&gt;This tutorial was extracted from Erich Styger blog &lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/" rel="nofollow" style="color:#355491;" target="_blank"&gt;http://mcuoneclipse.wordpress.com&lt;/a&gt; with his agreement.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt; &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/175x85/__key/communityserver-wikis-components-files/00-00-00-01-49/2022.contentimage_5F00_22263.bmp"&gt;&lt;img alt="image" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/2022.contentimage_5F00_22263.bmp" style="max-height: 85px;max-width: 175px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/87x85/__key/communityserver-wikis-components-files/00-00-00-01-49/5241.contentimage_5F00_22264.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/5241.contentimage_22264.jpg-87x85.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=%2BXIZHvddylGTxO1kQG0KaYWwfPZLm71neykjbtdh9UE%3D&amp;amp;se=2026-10-13T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=lw3vl9FqzfR9tHJgP7g6Lg==" style="max-height: 85px;max-width: 87px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;In &amp;quot;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/2012/05/28/device-is-secure/" rel="nofollow ugc noopener" target="_blank" title="Device is secure?"&gt;Device is Secure&lt;/a&gt;&amp;quot; I had a case where this was a false alarm. But recently there has been a report in the &lt;a class="jive-link-external-small" href="https://community.freescale.com/message/304737" rel="nofollow ugc noopener" target="_blank" title="Forum post on secure device"&gt;Freescale Forum&lt;/a&gt; that this can be a real problem with the Freescale &lt;span&gt;&lt;span class="e14-init-shown" id="addProduct-atBWUokr-linked" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2191861&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2191861&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank"&gt;FRDM-KL25Z&lt;/a&gt;&lt;/span&gt;&lt;span class="e14-init-hidden" id="addProduct-atBWUokr-unlinked"&gt;FRDM-KL25Z&lt;/span&gt;&lt;/span&gt; Freedom board I’m using too. I was not able to reproduce this on my end, so a reader of this blog who sent me a binary file to reproduce it.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Well, I was really scared to try that &amp;quot;killer&amp;quot; file on my board, but well, that board is not that expensive, and I have 5 pieces of silicon at hand from a sample order &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":-)" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g" /&gt;&lt;/a&gt; . So I took some risk, and programmed that binary using the &lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/2012/04/30/flashing-with-a-button-and-a-magic-wand/" rel="nofollow ugc noopener" target="_blank" title="Flashing with a Button (and a Magic Wand)"&gt;simple flash programmer&lt;/a&gt;. And indeed, when I wanted to debug it again, I got that dialog with my black Freedom board:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;text-align:center;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/253x120/__key/communityserver-wikis-components-files/00-00-00-01-49/8473.contentimage_5F00_22265.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/8473.contentimage_22265.png-253x120.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=TIfn4ToFX0rIuz%2FCMLo9zFh6M0LNcizsgrvZtgMzs3w%3D&amp;amp;se=2026-10-13T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=6GRWa13wsiT1KKp8mZ8O0g==" style="max-height: 120px;max-width: 253px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:center;"&gt;&lt;span style="color:#808080;"&gt;&lt;em&gt;Device is Secure. Erase to unsecure?&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;But even if I try ‘yes’ several times, it fails to unsecure the device through &lt;a class="jive-link-wiki-small" href="/products/devtools/kinetiskl2freedomboard/w/documents/10682/tutorial-how-to-use-the-opensda-on-the-freescale-frdm-kl25z-freedom-board"&gt;OpenSDA&lt;/a&gt;:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;text-align:center;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/508x282/__key/communityserver-wikis-components-files/00-00-00-01-49/8877.contentimage_5F00_22266.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/8877.contentimage_22266.png-508x282.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=96o0gtPt8L2lheQfalZrxjuSiVR%2B%2FSH9Zx%2BgcS8aJys%3D&amp;amp;se=2026-10-13T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=W/U26+f5AgTGo6Drkj/SZQ==" style="max-height: 282px;max-width: 508px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:center;"&gt;&lt;span style="color:#808080;"&gt;&lt;em&gt;Console log&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Several things to consider:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;I knew my board is fine (power supply/etc). It is just that program I have flashed to the device.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Looking at the schematics: That &lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/2012/10/23/completing-the-frdm-kl25z-board/" rel="nofollow ugc noopener" target="_blank" title="Completing the FRDM-KL25Z Board"&gt;R25&lt;/a&gt; resistor which can or cannot be on the board did not make a difference.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;I had the experience that unsecuring with &lt;a class="jive-link-external-small" href="http://www.pemicro.com/osbdm" rel="nofollow ugc noopener" target="_blank" title="OSBDM Site"&gt;OSBDM/OSJTAG&lt;/a&gt; seems not to work in all cases. The P&amp;amp;E Multilink does a much better job in my view, so I always have one on my desk, even if using a board with OSJTAG, OSBDM or OpenSDA&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;But: I have ordered the JTAG headers for the Freedom board, and they have not arrived yet, so no way to use the Multilink &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":-(" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif?m=1129645325g" /&gt;&lt;/a&gt; .&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;How to solve it?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;I knew from the Freescale forum that P&amp;amp;E had released new drivers *after* the &lt;a class="jive-link-wiki-small" href="/products/devtools/kinetiskl2freedomboard/w/documents/10457/freescale-codewarrior-for-mcu10-3-beta-is-now-available-tool-for-the-kinetis-l-freedom-frdm-kl25z"&gt;MCU10.3 beta release&lt;/a&gt;. And indeed, they solve my above problem &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":-)" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g" /&gt;&lt;/a&gt; . That &amp;quot;device is secure&amp;quot; shows up, and after one or two unsecure attempts I have access to my board again &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":-)" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g" /&gt;&lt;/a&gt; .&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Integrating these files into Eclipse and MCU10.3 is relatively easy, if you follow the instructions below:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;1. &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":!:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g" /&gt;&lt;/a&gt; This patch is for MCU10.3beta only! I assume it is *not* working for any other CodeWarrior release!&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;2. This is provided ‘as is’ &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":!:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g" /&gt;&lt;/a&gt; , so make backups as necessary (noted in the steps below)!&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;br /&gt;3. Close Eclipse/CodeWarrior if it is running.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;4. Browse to this folder: &lt;strong&gt;&amp;lt;MCU10.3beta&amp;gt;\MCU\bin\plugins\support\ARM&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;br /&gt;5. This folder has a subfolder named ‘gdi’. &lt;strong&gt;Zip that folder (as a backup)&lt;/strong&gt;. Then remove the ‘gdi’ folder. It is *not* enough to rename that folder, as CodeWarrior still might load the DLLs. Or move that folder completely outside of your installation folder to a place somewhere else.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;br /&gt;6. Download &lt;a class="jive-link-external-small" href="http://www.steinerberg.com/EmbeddedComponents/Examples/FreedomBoard/gdi%20Unsecure%20Patch%20for%2010.3beta.zip" rel="nofollow ugc noopener" target="_blank"&gt;the zip file from here&lt;/a&gt; to your machine, and copy it into the folder from above step (&lt;strong&gt;&amp;lt;MCU10.3beta&amp;gt;\MCU\bin\plugins\support\ARM&lt;/strong&gt;).&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;br /&gt;7. That zip file has a patched/modified version of the gdi folder. Unpack it as &lt;strong&gt;&amp;lt;MCU10.3beta&amp;gt;\MCU\bin\plugins\support\ARM\gdi&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;br /&gt;8. Restart Eclipse/CodeWarrior. Now you should be able to unsecure the board again. At least it worked for me &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":-)" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g" /&gt;&lt;/a&gt; .&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Happy Unsecuring&amp;nbsp; &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":-)" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g" /&gt;&lt;/a&gt; &lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: kl25, freescale, kinetis, frdm-kl25z, kinetis-l, unsecured, freedom&lt;/div&gt;
</description></item></channel></rss>