Hello,
Regarding to “robustness” – please note that you are using peripheral initialization components that provide complete initialization options but cannot guarantee correct function in case of incorrect setup.
In general PE provides two set of component
1 - Peripheral Initializataion – they only initialize peripherals and they are by default always setup to match the after reset values. They are intended for the experienced users who know peripheral in more detail and know what is necessary to setup for proper function.
2 - LDD, High-level – they provides additional runtime SW layer and they also handle other modules like clockgate needed for proper functionality of the peripheral they use.
You can find more details in PE help: CodeWarrior for Microcontrollers V10.x > Processor Expert Manuals > Processor Expert Users Manual > Application Design > Basic Principles > Embedded Components > Component Categories
As you have noticed, the clockgate feature is disabled after reset on this Kinetis family so there is triggered an interrupt because that clock gate is disabled and you are trying to write into registers of the PIT module. Anyway, as it seems to be confusing for more users, we plan to add a warning to property that handles the clockgate to warn user that setting could lead to unwanted behavior.
Regarding HCS08 vs. Kinetis clockgate:
On most HCS08 MCUs peripheral clockgate is enabled after reset, so there is not this issue. However as far as I know there are a few exception where clockgate is disabled after reset but on HCS08 is not such interrupt as on Kinetis and the module just won´t run and you will not be able to write any value into peripheral registers.
Regarding other CodeWarrior issues, please enter a service request using the web: http://www.freescale.com/webapp/servicerequest.create_SR.framework
best regards
Vojtech Filip
Processor Expert Support Team