AnsweredAssumed Answered

what wrong here with ldf file

Question asked by thomas321 on Jun 21, 2011
Latest reply on Jun 21, 2011 by thomas321

I define one dmda2 in ldf file like following

 

 

#ifdef IDDE_ARGS
#define ARGV_START 0xc0000
  mem_argv { TYPE(DM RAM) START(0x000b8000) END(0x000b81ff) WIDTH(32) }
  seg_dmda { TYPE(DM RAM) START(0x000b8200) END(0x000bdfff) WIDTH(32) }
#else
  seg_dmda { TYPE(DM RAM) START(0x000b8000) END(0x000bdfff) WIDTH(32)     }
 
#endif 
  seg_pmalign { TYPE(PM RAM) START(0x000c0000) END(0x000c13FF) WIDTH(32) }
  //Block 2
//  seg_dmda2 { TYPE(DM RAM) START(0x000c1400) END(0x000c0000) WIDTH(32)                   }
  seg_stak { TYPE(DM RAM) START(0x000c1400) END(0x000c1fb3) WIDTH(32)                     }
  mem_ctdm { TYPE(DM RAM) START(0x000c1fb4) END(0x000c1fff) WIDTH(32)               }
  //Block3
  seg_dmalign { TYPE(DM RAM) START(0x000e0000) END(0x000e13FF) WIDTH(32) }
  seg_dmda2 { TYPE(DM RAM) START(0x000e1400) END(0x000e1fff) WIDTH(32)   }
'.........
        seg_dmalign
        {
            INPUT_SECTIONS( $OBJECTS(seg_dmalign) $LIBRARIES(seg_dmalign))
        } > seg_dmalign
        seg_pmalign
        {
            INPUT_SECTIONS( $OBJECTS(seg_pmalign) $LIBRARIES(seg_dmalign))
        } > seg_pmalign
       
       
        seg_dmda2
        {
            INPUT_SECTIONS( $OBJECTS(seg_dmda) $LIBRARIES(seg_dmda))
        } > seg_dmda2
When I locate one variable on dmda2 like this
section ("dmda2") int audio_work_buf_out[AUDIO_BLOCK_SIZE96+300];
I got error like this
[Warning li2060]  The following input section(s) that contain program code
        and/or data have not been placed into the executable for processor 'P0'
        as there are no relevant commands specified in the LDF:
        .\Debug\main.doj(dmda2)
[Error li1060]  The following symbols are referenced, but not mapped:
        '_audio_work_buf_out' referenced from .\Debug\main.doj(seg_pmco)
Linker finished with 1 error and 1 warning
cc3089: fatal error: Link failed
Tool failed with exit/exception code: 1.
Build was unsuccessful.
Please help to find what is wrong here.
Thank you very much
Thomas

Outcomes