一下内容来源于我的工作邮件,是关于Kinetis锁芯片和解锁的一些信息,希望对大家有用:
主题: RE: How to unlock K60 after it is locked
Greetings all,
I have run into this 2 other times in the last year and did not get clarity on what the cause was in either case. There have been two ways that I have been able to recover. First was to use the erase_all_pins.jlk script as I see you have attempted. The second was to create an empty project (I used CodeWarrior) and had CodeWarrior perform a mass-erase prior to the download.
To get to the bottom of what is going on, could you send me the following files from your project:
1. The linker configuration file (.lcf)
2. The vectors.c and vectors.h files
3. A generated mapfile.
The Kinetis devices have the memory protection and security register located between 0x400 and 0x417. We need to ensure that your projects are properly reserving this space so that it is not used for program code or data.
Also, can you please send all of the device markings (part number, version, batch) for the devices that have experience this problem.
There are two activities we need to accomplish:
1. Try all known approaches to recover the devices you are working with presently
2. Fix your projects so that this will not happen again!
I have already discussed this with the factory, and they will help me get to the bottom of this – we just need the information requested above!
Best regards,
Subject: RE: How to unlock K60 after it is locked
Daniel,
Larry is looking into with our Freescale FAE, Mike Maas. See attached email.
I’m carboning Mike on this email as well in case this information is helpful to him.
We haven’t seen the lockup issue here, but we don’t have as many towers running
as you do at SMZ.
MikeW
Subject: How to unlock K60 after it is locked
Hi MikeW,
Recently at SMZ site SW team met a headache problem. When we debugged on the Hermes circuit board, the main processor K60 was locked several times. Sometimes we can unlock it by using below methods.
1. First one: Input “unlock Kinetis” command by the J-Link Command tool.
2. Second one: Hold reset key which connects to the reset pin of kinetis, retry download
3. Third one: We got an erase_all_pin.jlk file on internet. Its operation procedure is as below.
(1) The version of IAR should be over 6.3
(2) Install the simulating driver Setup_JLinkARM_V436.zip
(3) Copy the erase_all_pin.jlk to the installation folder for your Segger JLink ARM “C:\Program Files\SEGGER\JLinkARM_V436i”
(4) Hold the reset key
(5) Power on the circuit board
(6) Use the CMD tool of PC to change directory to “C:\Program Files\SEGGER\JLinkARM_V436i”, then execute the script by typing “jlink.exe erase_all_pin.jlk”
(7) Release reset key
But this time although we tried all these three kinds of methods, we still cannot unlock the K60. As I know, the china agent of Freescale which is FutureElectronic also ever met such problems. And they also don’t know how to unlock K60.
The root cause may be we didn’t use a correct linker file (icf). But current we just had a little knowledge about it.
Do you know how to unlock it? As I know, St. Paul site has a good relationship with Freescale. Can you get some helps from Freescale directly? And if possible, you can also ask Freescale site to provide some related material about the linker file so that we don’t make the same mistake at later developing.
Thanks & Regards
Daniel Sun
|