How to modify the generated code?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to modify the generated code?

602 Views
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

Labels (1)
Tags (1)
0 Kudos
1 Reply

543 Views
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 Kudos