Hello,
I am trying to set the security registers in the flash memory (FTFA_FSEC) using Codewarrior's Flash Programmer Task tool. I see there is an option of 'Secure/Unsecure' in the 'Add Action' menu on the Task editor pane, but it is grayed out. Why is this field grayed out?
If it helps, I am using Codewarrior 10.6 and am trying to set these security bits on a KL16Z micro. I am flashing it with the P&E Multilink Universal tool.
Any help would be appreciated! Thanks!
Hi Ryan,
The Secure/Unsecure Actions features were not implemented for CodeWarrior for MCU eclipse version, that is why you see the option disabled, but you could take a look to the following links for some basics about security:
How (not) to Secure my Microcontroller | MCU on Eclipse
http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4507.pdf
Hope it helps!
Best Regards,
Carlos Mendoza
Technical Support Engineer
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Carlos,
I guess that makes sense why those options would be disabled if they were never implemented. I know that I can clear a KB of flash out and rewrite the whole thing with the bits changed that I want to set the FSEC register in flash, but I would prefer not to have to use code space on the micro to do so. Do you have any other suggestions of how to actually set those bits in the 'elf' file or via Codewarrior at all?
The links you provided were informative about security features on the chip, but that was not my question.
Thanks,
-Ryan
Hi Ryan,
The security register cannot be set via CodeWarrior, if you want to modify the security register you have to write into the flash configuration field and after power cycle or reset the data in flash configuration field will be loaded automatically into flash security register.
Just as a reminder, if you are using J-Link to flash your device make sure you specify the device with “(allow security)” to allow Security Bit Programming, more information about this on the following link:
Preventing Reverse Engineering: Enabling Flash Security | MCU on Eclipse
Hope it helps!
Best Regards,
Carlos Mendoza
Technical Support Engineer
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------