I find a question of usbdm.
my project for test is in attachmpent.
In my project i place some variable in 0x400 that is flash confuration field in kl05z32.
when i use USBDM to debug the project,I can't find my data in 0x400.
But I find my data in 0x400,when I try to use jlink to debug my project.
I think you forgot to program flash confuration field in flash.
Original Attachment has been moved to: KL05Z32_Security.rar
When using the debugger USBDM programs the security area to a default value to allow debugging. It is a bit excessive and rewrites the whole 16 bytes to a default value of 0xFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFF.
Using the stand-alone programmer with "image" security option will program the image unchanged.