Hello,
It´s not possible to disable code generation of CPU component in CW Classic. In this case it´s necessary to freeze the whole project using "Freeze Generated Code" menu command from "Processor Expert" menu. You can find more details also in PE help: User Interface > Main Menu > Freeze Generate Code
There are also options "User code before PE initialization" and "User code after PE initialization" in Build options tab in CPU component that allow add a user code into CPU initialization function (__initialize_hardware, _EntryPoint, etc.).
Could you please specify what exactly do you need to do?
best regards
Vojtech Filip
Processor Expert Support Team