Hello Vincent
You can unlock the flash by mass erase operation by CodeWarrior.
In Eclipse CodeWarrior v10.6, please create a target task for DSC Flash Programmer, and add the mass erase operation, please see the screenshot as below.

Or just download a new program into the MCU, and select ‘yes’ when debugger asks whether erase to unsecure.

Best Regards
Fiona Kuang
Technical Information & Commercial Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------