AnsweredAssumed Answered

Secured & Mass Erase Disabled Kinetis K60N512 Device

Question asked by HU Q on Sep 17, 2012
Latest reply on Feb 15, 2013 by antonio66

Hi

 

I am working on TWR-K60N512 board. It was working fine some days ago but due to growing size of code,

Flash Configuration Filed (0x400 to 0x40C) of Program Flash Area has been updated accidentally.

Now I am unable to connect to the board and load the program in Program Flash.

 

********************************************************************************************

When I try to connect using JLINK (JLink.exe), Following message is displayed.

********************************************************************************************

 

SEGGER J-Link Commander V4.42b ('?' for help)

Compiled Feb 14 2012 15:27:02

DLL version V4.42b, compiled Feb 14 2012 15:26:46

Firmware: J-Link ARM V8 compiled Aug  1 2012 13:40:47

Hardware: V8.00

S/N: 58006903

VTarget = 3.267V

Info: TotalIRLen = 4, IRPrint = 0x01

Info: ARM AP[0]: 0x24770011, AHB-AP

Info: ARM AP[1]: 0x001C0000, JTAG-AP

 

****** Error: Secured Kinetis device detected but mass erase is disabled.

No APB-AP found.

No devices found on JTAG chain. Trying to find device on SWD.

Info: Found SWD-DP with ID 0x2BA01477

 

****** Error: Secured Kinetis device detected but mass erase is disabled.

Info: Found SWD-DP with ID 0x2BA01477

 

****** Error: Secured Kinetis device detected but mass erase is disabled.

No device found on SWD.

Did not find any core.

Info: TotalIRLen = 4, IRPrint = 0x01

Info: ARM AP[0]: 0x24770011, AHB-AP

Info: ARM AP[1]: 0x001C0000, JTAG-AP

 

****** Error: Secured Kinetis device detected but mass erase is disabled.

No APB-AP found.

No devices found on JTAG chain. Trying to find device on SWD.

Info: Found SWD-DP with ID 0x2BA01477

 

****** Error: Secured Kinetis device detected but mass erase is disabled.

Info: Found SWD-DP with ID 0x2BA01477

 

****** Error: Secured Kinetis device detected but mass erase is disabled.

No device found on SWD.

Did not find any core.

J-Link>

 

*******************************************************************************************

When I try to unlock the board (unlock kinetis), following message is displayed

*******************************************************************************************

J-Link>unlock kinetis

Found SWD-DP with ID 0x2BA01477

Unlocking device...Unlock via debug port is disabled. Unlock failed.

Timeout while unlocking device.

J-Link>

 

**********************************

Unsecure Command of JLINK

**********************************

I have also tried to check unsecure command but JLINK Commander V4.42b does not support it for K60N512

 

****************************

CodeBench with JLINK

****************************

When connecting K60N512 using CodeBench & JLINK, following error message is displayed.

 

arm-none-eabi-sprite: J-Link error: Secured Kinetis device detected but mass erase is disabled.

No APB-AP found.

arm-none-eabi-sprite: error: Couldn't find a J-Link device

arm-none-eabi-sprite: waiting for GDB connection, to pass error along

 

**********************

Using CodeWarrior

**********************

 

When trying to connect the K60N512 board using CodeWarrior and OSBDM/OSJTAG,

a pop up message is displayed (twice) saying

 

"Device is secure, Mass erase is

disabled. Try to unsecure

anyways?"

 

If I say yes, then another popup message is displayed saying

 

"An error occurred while connecting to the interface hardware or target specified in launch configuration dialog. ......"

 

I also tried by enabling the following option

 

"Always Mass Erase on Connect"

 

but no success.

 

 

*****************

Is there any solution (Hardware/Software) to

- Unsecure the device

- Mass erase should be enabled.

 


Outcomes