Hi marc,
Yes, the "HC12MultilinkCyclonePro"->"Unsecure" menu from the CodeWarrior will execute the "P&E_Multilink_USB_Erase_unsecure_hcs12xe.cmd" command file.
If you look into this file, you could see commands like:
wb 0x104 0xFF // FPROT all protection disabled
wb 0x114 0xFF // EPROT all protection disabled
Since MCU is in special mode, debugger could modify FPROT and EPROT registers directly and disable protection prior execute mass erase command.
So, MCU could be fully erased and this way also unsecured.
Note: If I remember correctly, there was one erratum for one of very old S12UF32 masksets. These MCUs were not possible to unsecured by mass erase. However this is already deep history.
Another option for unsecure is using Unsecure12 tool from P&E:
http://www.pemicro.com/downloads/download_file.cfm?download_id=16
Unsecure_12 Help Files:
http://www.pemicro.com/downloads/download_file.cfm?download_id=14
Note: For downloading is necessary registration. This tool could be used only for PEmicro and OSBDM BDM interfaces.
I am afraid that I am not aware of any special way, how to permanently secure the microcontroller.
I hope it helps you.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------