element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Freedom development platform
  • Products
  • Dev Tools
  • Freedom development platform
  • More
  • Cancel
Freedom development platform
Documents Tutorial for FRDM-KL25Z: Unsecuring the Freescale Freedom Board
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Freedom development platform to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: FreescaleTools_and_Software
  • Date Created: 8 Nov 2012 1:05 PM Date Created
  • Last Updated Last Updated: 12 Mar 2013 5:03 PM
  • Views 850 views
  • Likes 0 likes
  • Comments 1 comment
Related
Recommended

Tutorial for FRDM-KL25Z: Unsecuring the Freescale Freedom Board

This tutorial was extracted from Erich Styger blog http://mcuoneclipse.wordpress.com with his agreement.

 

imageimage

 

In "Device is Secure" I had a case where this was a false alarm. But recently there has been a report in the Freescale Forum that this can be a real problem with the Freescale FRDM-KL25ZFRDM-KL25Z 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.

Well, I was really scared to try that "killer" 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 :-) . So I took some risk, and programmed that binary using the simple flash programmer. And indeed, when I wanted to debug it again, I got that dialog with my black Freedom board:

 

image

Device is Secure. Erase to unsecure?

 

 

But even if I try ‘yes’ several times, it fails to unsecure the device through OpenSDA:

 

image

Console log

  

 

 

Several things to consider:

  • I knew my board is fine (power supply/etc). It is just that program I have flashed to the device.
  • Looking at the schematics: That R25 resistor which can or cannot be on the board did not make a difference.
  • I had the experience that unsecuring with OSBDM/OSJTAG seems not to work in all cases. The P&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
  • But: I have ordered the JTAG headers for the Freedom board, and they have not arrived yet, so no way to use the Multilink :-( .

 

How to solve it?

I knew from the Freescale forum that P&E had released new drivers *after* the MCU10.3 beta release. And indeed, they solve my above problem :-) . That "device is secure" shows up, and after one or two unsecure attempts I have access to my board again :-) . 

Integrating these files into Eclipse and MCU10.3 is relatively easy, if you follow the instructions below:

 

1. :!: This patch is for MCU10.3beta only! I assume it is *not* working for any other CodeWarrior release!

2. This is provided ‘as is’ :!: , so make backups as necessary (noted in the steps below)!


3. Close Eclipse/CodeWarrior if it is running.

4. Browse to this folder: <MCU10.3beta>\MCU\bin\plugins\support\ARM


5. This folder has a subfolder named ‘gdi’. Zip that folder (as a backup). 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.


6. Download the zip file from here to your machine, and copy it into the folder from above step (<MCU10.3beta>\MCU\bin\plugins\support\ARM).


7. That zip file has a patched/modified version of the gdi folder. Unpack it as <MCU10.3beta>\MCU\bin\plugins\support\ARM\gdi


8. Restart Eclipse/CodeWarrior. Now you should be able to unsecure the board again. At least it worked for me :-) .

 

Happy Unsecuring  :-)

  • kl25
  • freescale
  • kinetis
  • frdm-kl25z
  • kinetis-l
  • unsecured
  • freedom
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply
  • fvolker
    fvolker over 13 years ago

    Perfect! This exact "secured" incident occured during my work with the Freedom board.  Like you, I had a part available, but kept putting off the soldering task, hoping someone would come along with a solution.  And this is indeed a solution.  I followed the steps you outlined to "patch up" the V10.3 beta and the board is alive and well!  Thanks for posting this most helpful info!

     

    Frank

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube