help urgently TWR K60

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

help urgently TWR K60

3,536 Views
Microfelix
Contributor IV

 


I need help urgently.
while I was playing with the TWR board of K60, I was stuck on "SECURE".
Now when I try to erase the flash tells me he can not remove the "secure".

How can I fix it

Maurizio

12 Replies

2,263 Views
lukas
Contributor III

try to ulock using the j-link command line

0 Kudos
Reply

2,263 Views
Microfelix
Contributor IV

 

 

thanks lukas,

I'm with CodeWarrior multilink
Where are the j-link command and how future use.

Must be used with j-tag?

 

Maurizio

0 Kudos
Reply

2,263 Views
lukas
Contributor III

i unlock it by the IAR j-link.

I dont know how to unlock it with your tool.

0 Kudos
Reply

2,263 Views
Microfelix
Contributor IV

 

 

possible that there is no way to unlock the micro with CodeWarrior

 

Maurizio

0 Kudos
Reply

2,263 Views
pende
Contributor III

Hi,

there is a way to unlock it.

 

Refering to a service request from me:

 

"If chip secured, there need to use mass erase way to unsecure this chip."

 

1. Download

"CW_MCU_V10_1_EXAMPLES: CodeWarrior MCU 10.1 Software Examples.. "

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=TWR-K60N512-KIT&fpsp=1&tab=Design_Too...

 

2. open "Hello World" example in Codewarrior

 

3. Click on the Bolt icon - "Flash File to Target"

 

4. choose your target and configuration

 

5. Erase Device

 

 

Best Regards, Philip

 

 

--

and yes...only with JTAG / OSJTAG

 

 

 

 

0 Kudos
Reply

2,263 Views
Jeinstei
Contributor II

This method of erasing worked very well to erase the device, but the PE Micro driver with CW still seems to say that the device is secure. Oddly enough, IAR has no problems writing to the device.

 

What I can't understand is why CW isn't implementing my flash programmer task even when I have it set to execute!

0 Kudos
Reply

2,263 Views
Jeinstei
Contributor II

In the end, I hooked a Kwikstik up as a Jlink programmer (removing R113 to prevent the reset line being pulled down) and unsecured the device that way. The Jlink offers many more available options than the PE Micro.

2,263 Views
Microfelix
Contributor IV

 

 

thanks,


but unfortunately does not work.

 

Always ask me to remove the block, but then fails.

 

 

Maurizio

0 Kudos
Reply

2,263 Views
pgo
Senior Contributor V

Dear Microfelix,

 

The Kinetis devices have an option to be permanently secured ie. It is not possible to unsecure the device even with a mass erase  Depending on how you secured the device it is possible that this is the situation.  It depends on what value is programmed to the security locations.

 

Refer to this post for some more description:

https://community.freescale.com/thread/77368

 

or search the forums for "secured kinetis" for some more discussion.

 

You can also try the following but it will only work if you have not permanently secured the device:

  • Open or create a project for your target.
  • Open Run->Debug Configurations...
  • Select a configuration that applies to your project (it will start with the same name).  In this example is was TryUnsecure_MK40X256VMD100_INTERNAL_FLASH_PnE OSJTAGThis was for a K40 device rather than K60
  • Select the Main tab at right and then click the Edit button under Remote System
  • Make sure the Connections tab is selected and then check the Always Mass Erase on Connect checkbox.  You can also turn on logging if you wish.
  • Close the dialogues and then try debugging the project.

If this doesn't work I suspect the device is permanently secured.

 

Bye

 

0 Kudos
Reply

2,263 Views
Microfelix
Contributor IV

 

 

Hello

Thanks for the reply.

He had read the posts around the forum where they said that it was necessary to replace the micro provable.

What worries me is how I came to lock it.
I have absolutely no set, I just (wrongly) that the flash programmed via the "flash files to target" thinking that it would do so. Since then, it did not work anymore.
In fact I did not think that is absolutely irreversible Kinetis had this feature.

Now I know.


Then I read some 'documentation around and I figured out how to program the Task Kinetis through.

 

Maurizio


0 Kudos
Reply

2,263 Views
lukas
Contributor III

yes, It was also very strange for me to solve this problem - it is splodge on Kinetis

0 Kudos
Reply

2,263 Views
pende
Contributor III

okay so the Freescale service request has failed :smileyvery-happy:

 

I haven't testet this solution, it was another problem on my side.

 

So perhaps the only way is a J-Link from Segger or this one below.

 

http://www.pemicro.com/products/product_viewDetails.cfm?product_id=15320138&CFID=6458663&CFTOKEN=f7c...

 

I hope my K60 will never fall into this state, I dont have those tools either :smileysad:

 

My advice: Try a Service Request @Freescale

 

Regards

 

0 Kudos
Reply