I'm using KL05Z32M4 device and I'm tring to sequre the code for reading .
I've read the tuturials and manuals and undestood the FSEC(SEC) register.
I enable the FSEC(SEC) using the PEX and verify the register supposed to have 11 insead of 10.
I generate the code and compile my project. I generate even HEX file and check the 0x40C address and it was 0xBF (11 at the LSBs).
I flash the device using the "Flash file to target" (CodeWarrior 10.3), select the right device (for configuration file) and check the results:
the debugger manage to connect with no problem the device (using "CodeWarrior Connect" profile).
I check the memory with this prespective the the address 0x40C was 0XBE (10 at the SEC register).
I've tried even to edit and create a custom version of the Configuration XML file and set the "Action_Secure_Device_0="true" and "Action_Secure_Device_1="true".
nothig was changed.
I've created a Task for the Flash including pre-erase the device and verify after the programming and the results was:
Erase Command Succeeded.
Beginning Operation ...
Flash Operation. ...
Reading 0x000000C0 bytes starting from address 0x00000000
Reading 0x00000D0C bytes starting from address 0x00000400
Data Mismatch at address: 0x0000040C. Expected: 0xBF. Actual: 0xBE
Error: Program Command Failed. ...Program with Verify failed.
Error: Program Command Failed....Program with Verify failed."
What am I doing wrong? Help!