How to modify the generated code?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to modify the generated code?

1,288 次查看
zhmwu
Contributor I

I try to output a PWM signal from S9KEAZN8AMFK chip and I use Processor Expert to generate the code I want. 

I set the initial conditions in the component properties tab below (which results in a 50% ratio PWM). Open the generated PWM1.c and attempt to modify the ratio. But even if I change the RatioStore value in the PWM1.c file to 0x0000U, the chip still outputs a 50% ratio PWM signal. The only way I can change it is by editing the component properties down below. Am I doing it wrong? Please help me.

Capture.PNG

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

1,229 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello  Zhouming Wu,

If you just want to modify code in PWM.C file, after modify, you need enable " Don't Write Generated Component Modules" as blow, or the generate code will replace your own code:

pastedImage_1.png


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复