problems about implemention  xgate code runnint out of ram in codewarrior  thanks for help!

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

problems about implemention  xgate code runnint out of ram in codewarrior  thanks for help!

跳至解决方案
935 次查看
jeffzxg
Contributor I

hello:

     I am using codewarrior v4.6 to compiler code for 9s12xdt256, when create new project for xdt256, I choose multi core(HCS12X  XGATE in ram) option, but I can not find any code in project soure code that perform this copy function.

    In project prm file

   

PLACEMENT
      XGATE_VECTORS,         

      XGATE_STRING,           

      XGATE_CONST,           
      XGATE_CODE,             

      XGATE_STRING_RAM,      

      XGATE_CONST_RAM,        

      XGATE_CODE_RAM,         

      XGATE_DATA             

                        INTO  RAM_FC /*, RAM_FD */;

END

 

      if i use #pragma to place xgate code into XGATE_CODE_RAM segment, what should the linker and compiler do, does it automaticly linker some code to perform copy function?

      if I want to run xgate code out of ram, what should i do in codewarrior, do i need to write special function in order to complete this task?

                                                                           thanks!

标签 (1)
标记 (1)
0 项奖励
1 解答
363 次查看
CompilerGuru
NXP Employee
NXP Employee

The same hc12 code in start12.c which is coping the values of intialized variables is used to copy the XGATE code into RAM. So you should not have to do anything (except not to remove the HCS12X startup code...).

 

Daniel

在原帖中查看解决方案

0 项奖励
1 回复
364 次查看
CompilerGuru
NXP Employee
NXP Employee

The same hc12 code in start12.c which is coping the values of intialized variables is used to copy the XGATE code into RAM. So you should not have to do anything (except not to remove the HCS12X startup code...).

 

Daniel
0 项奖励