k20 secured and unsecuring failed

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

k20 secured and unsecuring failed

2,516 Views
jame
Contributor I

hi,i have two pcs of k20,one is ok,the other is bad,when i download program into it.the iar always says"timeout while unsecuing device"

 

how to solove the problem?

0 Kudos
17 Replies

1,750 Views
jame
Contributor I

and i use the erase_all_pin.jlk to solve it,it also can't unsecuring it.it always say "timeout"....

0 Kudos

1,750 Views
LuisCasado
NXP Employee
NXP Employee

Hi Jame,

 

Try the following:

 

1.       Power off the board

2.       Assert the reset pin and hold it asserted for the remainder of the process.

3.       Power on the board

4.       Execute  “jlink.exe erase_all_pin.jlk” .

6.       Release the reset pin

7.       Try to connect debugger

 

Best Regards,

 

Luis

0 Kudos

1,750 Views
jame
Contributor I

i follow it ,but it' s still says "timeout..."

0 Kudos

1,750 Views
LuisCasado
NXP Employee
NXP Employee

Hello,

 

Can you post here the “jlink.exe erase_all_pin.jlk”  command output? with the reset asserted.

 

Best Regards,

 

Luis

0 Kudos

1,750 Views
jame
Contributor I

hi,please see attached.i'm waitting for you

0 Kudos

1,750 Views
J2MEJediMaster
Specialist I

At the start of this thread, you said that you had two boards, one which worked, and one which didn't. If the boards are identical, set them side by side and compare them. Are all of the board jumpers the same? Is there any loose or bent components on the problem board? If jumpers match and there's nothing physically wrong with of the problem board, it might be some sort of hardware failure in a component.

 

---Tom

0 Kudos

1,750 Views
jame
Contributor I

yes.i already compared these two boards and everything is the same.

i think the problem must be caused by MCU.Maybe the mcu was broken by us,maybe the mcu just has the problem.

0 Kudos

1,750 Views
LuisCasado
NXP Employee
NXP Employee

Please,

 

Post the complete printout of the script.

Which K20?  50, 72, 100Mhz?

 

 

Best Regards,

 

Luis

0 Kudos

1,750 Views
jame
Contributor I

it's pk20dx256vll7

0 Kudos

1,750 Views
jame
Contributor I

by the way,you answer is too slow.

0 Kudos

1,750 Views
LuisCasado
NXP Employee
NXP Employee

Hello,

 

This is a 72Mhz part.  We really need to see the complete output of the script, the screens caps are only a portion.  The part we want to see is what is being read from ap register 0. 

 

Regards,

 

Luis

0 Kudos

1,750 Views
jamezhou
Contributor I

atteched is the complete output of script .

0 Kudos

1,750 Views
admin
Specialist II

From the looks of your script, the good news is that mass-erase is enabled so you are not permanently locked out even though the security bit is enabled. The bad news is that your chip is not responding to the mass-erase command which means there is no way to recover it. 

 

 

0 Kudos

1,750 Views
dead_cell
Contributor I

I'm so sorry but which could lead to such results? 

I have some trouble. I used example projects from freescale (IAR 6.30) for TWR-K20D50M. 

I have updated the *.icf file after that I can not download MCU, debugger displays an error.

0 Kudos

1,750 Views
jamezhou
Contributor I

is this final answer?

0 Kudos

1,750 Views
jamezhou
Contributor I

hi:

     attached is the .txt file for the complete script for your reference.

0 Kudos

1,750 Views
DarthVader
Contributor II

I am not sure if this will work for you. I've got similar problems and it worked for me.

 

execute

JLink.exe, connect the k20 board and after that, while pressing the reset button type

 

unlock kinetis

 

release the reset button then.

 

this should unlock your board.

 

hope this helps.

X

0 Kudos