Edit PE generated code?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Edit PE generated code?

ソリューションへジャンプ
573件の閲覧回数
hesamakbarian
Contributor II

Hi,

Does anybody know ether i can change and revise generated code from PE, and the next time i will recompile i will still have my revised code included?

for instance, i would like to add a piece of code to the main function and want to have it always

even if i change some peripherals in PE.

Thanks

0 件の賞賛
1 解決策
454件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Hesam Akbarian,

     Actually, you can realize the code not modified by configure some items.

     If you just want the main function not be modified, please write your code below the comments like:

     /* User includes (#include below this line is not maintained by Processor Expert) */

    /* Write your local variable definition here */

   /* Write your code here */

   Then your main code will not be modified even you generate the PE code again.

    But if you don't want the CPU.c or component.c not be changed, please do like the following:

56.jpg

Just choose "Don't write generated component modules", the the according code will be lock when you generate the new PE code.

I hope my answer will help you!

If you still have question, please let me know!

Best regards!

Jingjing

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
454件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Hello,

this article shows several options you have:

Disable my Code Generation | MCU on Eclipse

455件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Hesam Akbarian,

     Actually, you can realize the code not modified by configure some items.

     If you just want the main function not be modified, please write your code below the comments like:

     /* User includes (#include below this line is not maintained by Processor Expert) */

    /* Write your local variable definition here */

   /* Write your code here */

   Then your main code will not be modified even you generate the PE code again.

    But if you don't want the CPU.c or component.c not be changed, please do like the following:

56.jpg

Just choose "Don't write generated component modules", the the according code will be lock when you generate the new PE code.

I hope my answer will help you!

If you still have question, please let me know!

Best regards!

Jingjing

0 件の賞賛