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.