AnsweredAssumed Answered

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

Question asked by zheng xuguang on Dec 16, 2009
Latest reply on Dec 17, 2009 by CompilerGuru

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!

Outcomes