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
Hello,
Can you post here the “jlink.exe erase_all_pin.jlk” command output? with the reset asserted.
Best Regards,
Luis
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
Please,
Post the complete printout of the script.
Which K20? 50, 72, 100Mhz?
Best Regards,
Luis
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
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.
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.
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