Dear Microfelix,
The Kinetis devices have an option to be permanently secured ie. It is not possible to unsecure the device even with a mass erase Depending on how you secured the device it is possible that this is the situation. It depends on what value is programmed to the security locations.
Refer to this post for some more description:
https://community.freescale.com/thread/77368
or search the forums for "secured kinetis" for some more discussion.
You can also try the following but it will only work if you have not permanently secured the device:
- Open or create a project for your target.
- Open Run->Debug Configurations...
- Select a configuration that applies to your project (it will start with the same name). In this example is was TryUnsecure_MK40X256VMD100_INTERNAL_FLASH_PnE OSJTAGThis was for a K40 device rather than K60
- Select the Main tab at right and then click the Edit button under Remote System
- Make sure the Connections tab is selected and then check the Always Mass Erase on Connect checkbox. You can also turn on logging if you wish.
- Close the dialogues and then try debugging the project.
If this doesn't work I suspect the device is permanently secured.
Bye