Hello @Hariprasath_eplane ,
Do I need to apply the license.dat file anywhere?
->> It should be located in the C:\Freescale\CW MCU v11.2\MCU directory.

Then restart CodeWarrior, open Help -> Freescale License, and you will be able to see its status.

Also, if the device enters secure mode, how do I erase it in CodeWarrior?
->> You can use flash programmer to erase the device with checking "Unprotect flash memory before erase":


For more information about flash programmer tool, you can refer to Program DSC with CodeWarrior for MCU ver11.x.
And how to generate the .pmpx in the codewarrier?
->> Codewarrior can't generate the .pmpx. It's generated by Freemaster. Please refer to FMSTERUG for more details.
BR
Celeste