Hi,
I have MC9S12C64CFA25, with Code Warrior Classic v5.9.0 installed.
I am a newbie on Code Warrior classic. The PE generated code is commented as:
** THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : AD1.c
** Project : TestA
** Processor : MC9S12C64CFA25
** Component : ADC
** Version : Component 01.630, Driver 01.19, CPU db: 2.87.403
** Compiler : CodeWarrior HC12 C Compiler
** Date/Time : 5/4/2017, 1:46 PM
But the original project generated with comments (from a different PC):
** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : Vectors.C
** Project : FS200_V
** Processor : MC9S12C64CFA25
** Version : Bean 02.001, Driver 02.01, CPU db: 2.87.395
** Compiler : CodeWarrior HC12 C Compiler
** Date/Time : 8/13/2010, 11:25 AM
** Abstract :
** This bean "MC9S12C32_48" implements properties, methods,
** and events of the CPU.
I guess they are similar. But I prefer to generate code as bean-beased, instead of component-based. How to make a selection for bean-based code generation? I have seen bean library in the installation folder. Do I need to enable or something?
Thank you,
David Zhou
Hi David,
Roughly, we can classify processor expert components as CPU component and non-CPU component.
for non-CPU component (for example ADC component), we can right click then choose "don't write generated component modules". thus all this component generated files will not be overwritten.
However this feature can't work for CPU component.
Does this answer your question?
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Jennie,
Thank you for your reply.
Sorry I didn't state my question clearly. My project is created by someone else long timer ago with classic V5.0.
Now I am using classic V5.2. With V5.0 all PE component code is generated as beans, while V5.2 is generated as components. They are not in the same format. For example, #define TIMER_INTERVAL 0x10U for bean code
while component code may be in the format of #define TIMER_INTERVAL 16.
Because we have made many changes to the generated code, it is very difficult to find the differences if generated code is in different format. So I want to have the same format as the previous V5.0. Your web site only has V5.2 classic available to download.
Thank you,
David Zhou