TWR-KW2x secured and mass erase disabled, how to unsecure?

cancel
Showing results for 
Search instead for 
Did you mean: 

TWR-KW2x secured and mass erase disabled, how to unsecure?

952 Views
raheleh
Contributor II

I have a TWR-KW24D512 board and I programmed it with the Freescale test tool using the OpenSDA port. I just loaded a demo WirelessUART application in it.

It works fine but if I want to program it using JTAG i get the following message.

Kinetis (connect): Secured Kinetis device detected but mass erase is disabled.

Kinetis (connect): Failed to unsecure Kinetis device.

Abort debug session?

The environment is IAR.

How can I unsecure the device in IAR? please check the attachment for the error window.

Thank you!

Tags (2)
0 Kudos
1 Reply

239 Views
AngelC
Senior Contributor I

Hello Raheleh,

To unlock the KW24 device you may use the Jlink commander utility. Please go to segger’s website and download the Software and documentation pack for Windows.

Link: https://www.segger.com/jlink-software.html

After downloaded and installed, please open the JLink.exe file of SEGGER’s installation folder with Jlink connected to the PC and the TWR-KW2x board. A command window will prompt.

Using the command line, type “unlock kinetis”. You should see something as follows:

Capture.PNG.png

After done that, you should be able to use the TWR-KW2x board with IAR and Jlink without any issues.

Regards,

AngelC

0 Kudos