Hello guo
You can unlock the flash by mass erase operation by CodeWarrior.
CodeWarrior 10.4 is an old version, please update to v10.6.4.
In Eclipse CodeWarrior v10.6.4, please create a target task for DSC Flash Programmer, and add the mass erase operation as below:

Or just download a new program into the MCU, and select ‘yes’ when debugger asks whether erase to unsecure.
In the CodeWarrior project with PE, to disable the flash security, please open CPU component, and go to ‘Internal peripheral ->Flash configuration field”.

Best Regards
Fiona Kuang
TIC - Technical Information Center
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct button. Thank you!
-----------------------------------------------------------------------------------------------------------------------