Processor Expert Macro-Language

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

Processor Expert Macro-Language

跳至解决方案
1,762 次查看
phongdiep
Contributor I

1. Do you know any command in Processor Expert Macro-Language to conserve the code of the user on an generated code file. Normaly when i click generate proccessor expert code on code warrior, the files are regenerated and the code that the user changed on the generated code files will be lost and the generated code files will be rewrited.

2. On "Processor Expert Macro-Language Reference Manual" document i found the command

%EMBED_CODE[!][+] <id>, %EMBED_END [msg]

and it give me an example to use the command

        %EMBED_CODE! <specific> initialization
        /* Begin of <specific> initialization, DO NOT MODIFY
        LINES BELOW */
        // ### initialization code here ##
        /* End <specific> initialization, DO NOT MODIFY LINES
       ABOVE */ 
       %EMBED_END <specific> initialization was updated

but when i paste these code to my driver file ( of my component on component wizard). and when I generate code on code warrior using that components the code warrior display an error

 

          INTERNAL ERROR: at line 159: %EMBED_END without %EMBED_CODE (file:  Drivers\sw\mycomponent.drv) ex5  Comp1 Processor Expert Errors

do you know the way to uses that command?

Thank and best regard!

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,355 次查看
ProcessorExpert
Senior Contributor III

Hello,

 

regarding %EMBED_CODE macro command. This command should be described in the attached document and it should behaves according the documentation. Could you please double check that you have used it correctly? In case your problem persist - could you please post here your Component to analyze the problem?

 

Related to your latest question: please find the "2.2.3 Access to inherited item symbols" secion in the attached document.

 

best regards
Vojtech Filip
Processor Expert Support Team

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,355 次查看
phongdiep
Contributor I

Another question,

 3. Is there any macro command can disable/enable an inherited component?

Thank and best regard!

0 项奖励
回复
1,356 次查看
ProcessorExpert
Senior Contributor III

Hello,

 

regarding %EMBED_CODE macro command. This command should be described in the attached document and it should behaves according the documentation. Could you please double check that you have used it correctly? In case your problem persist - could you please post here your Component to analyze the problem?

 

Related to your latest question: please find the "2.2.3 Access to inherited item symbols" secion in the attached document.

 

best regards
Vojtech Filip
Processor Expert Support Team

0 项奖励
回复