This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

error: symbols in the reserved far sections cannot be accessed as near; symbol "numEdma3Instances" in the far section and sysbios linking error

Other Parts Discussed in Thread: SYSBIOS, TDA2

 undefined                  first referenced                                                                                                                                                                         
  symbol                        in file                                                                                                                                                                              
 ---------                  ----------------                                                                                                                                                                         
 EDMA3_DRV_close            /opt/ti/VISION_SDK_02_06_00_00/ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/tda2xx-evm/66/debug/edma3_lld_drv_sample.ae66<sample_init.oe66>          
 EDMA3_DRV_create           /opt/ti/VISION_SDK_02_06_00_00/ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/tda2xx-evm/66/debug/edma3_lld_drv_sample.ae66<sample_init.oe66>          
 EDMA3_DRV_delete           /opt/ti/VISION_SDK_02_06_00_00/ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/tda2xx-evm/66/debug/edma3_lld_drv_sample.ae66<sample_init.oe66>          
 EDMA3_DRV_initXbarEventMap /opt/ti/VISION_SDK_02_06_00_00/ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/tda2xx-evm/66/debug/edma3_lld_drv_sample.ae66<sample_tda2xx_int_reg.oe66>
 EDMA3_DRV_open             /opt/ti/VISION_SDK_02_06_00_00/ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/tda2xx-evm/66/debug/edma3_lld_drv_sample.ae66<sample_init.oe66>          
 lisrEdma3CCErrHandler0     /opt/ti/VISION_SDK_02_06_00_00/ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/tda2xx-evm/66/debug/edma3_lld_drv_sample.ae66<sample_tda2xx_int_reg.oe66>
 lisrEdma3ComplHandler0     /opt/ti/VISION_SDK_02_06_00_00/ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/tda2xx-evm/66/debug/edma3_lld_drv_sample.ae66<sample_tda2xx_int_reg.oe66>
 lisrEdma3TC0ErrHandler0    /opt/ti/VISION_SDK_02_06_00_00/ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/tda2xx-evm/66/debug/edma3_lld_drv_sample.ae66<sample_tda2xx_int_reg.oe66>
 lisrEdma3TC1ErrHandler0    /opt/ti/VISION_SDK_02_06_00_00/ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/tda2xx-evm/66/debug/edma3_lld_drv_sample.ae66<sample_tda2xx_int_reg.oe66>
 lisrEdma3TC2ErrHandler0    /opt/ti/VISION_SDK_02_06_00_00/ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/tda2xx-evm/66/debug/edma3_lld_drv_sample.ae66<sample_tda2xx_int_reg.oe66>
 lisrEdma3TC3ErrHandler0    /opt/ti/VISION_SDK_02_06_00_00/ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/tda2xx-evm/66/debug/edma3_lld_drv_sample.ae66<sample_tda2xx_int_reg.oe66>
 lisrEdma3TC4ErrHandler0    /opt/ti/VISION_SDK_02_06_00_00/ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/tda2xx-evm/66/debug/edma3_lld_drv_sample.ae66<sample_tda2xx_int_reg.oe66>
 lisrEdma3TC5ErrHandler0    /opt/ti/VISION_SDK_02_06_00_00/ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/tda2xx-evm/66/debug/edma3_lld_drv_sample.ae66<sample_tda2xx_int_reg.oe66>
 lisrEdma3TC6ErrHandler0    /opt/ti/VISION_SDK_02_06_00_00/ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/tda2xx-evm/66/debug/edma3_lld_drv_sample.ae66<sample_tda2xx_int_reg.oe66>
 lisrEdma3TC7ErrHandler0    /opt/ti/VISION_SDK_02_06_00_00/ti_components/drivers/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/tda2xx-evm/66/debug/edma3_lld_drv_sample.ae66<sample_tda2xx_int_reg.oe66>

error: unresolved symbols remain
error: errors encountered during linking; "app_dsp" not built

>> Compilation failure
make[3]: *** [src/svs220jr18/video/app_dsp/app_dsp] Error 1
make[3]: Leaving directory `/svsbase/build_jr18_dsp'
make[2]: *** [src/svs220jr18/video/app_dsp/CMakeFiles/app_dsp.dir/all] Error 2
make[2]: Leaving directory `/svsbase/build_jr18_dsp'
make[1]: *** [src/svs220jr18/video/app_dsp/CMakeFiles/app_dsp.dir/rule] Error 2
make[1]: Leaving directory `/svsbase/build_jr18_dsp'
make: *** [app_dsp] Error 2
Hi,

I am trying to run the example code available in edma3_lld_02_12_00_20 .

This is edma package that I downloaded from below link :

software-dl.ti.com/.../index.html

 PFB linker command file (which comes with examples default one)


SECTIONS
{
.my_sect_iram > L2SRAM
.my_sect_ddr > L2SRAM

 

I tried to remove maximum liking error but I am unable to solve the linking errors mentioned in attachment .PFA.

I am using CCSv5.4 in windows (64 bit) .

edma3 version :edma3_lld_02_12_00_20 

CORE : C6657

EXAMPLE: edma3_drv_bios6_c6657_st_sample

CCS:v5.4

OS:Windows

Error:PFA

DSP:C66X

**** Build of configuration Debug for project edma3_drv_bios6_c6657_st_sample ****

/home/studinstru/Docker/ti/ccsv6/utils/bin/gmake -k all 
Building target: edma3_drv_bios6_c6657_st_sample.out
Invoking: C6000 Linker
"/home/studinstru/Docker/ti/ccsv6/tools/compiler/c6000_7.4.13/bin/cl6x" --cmd_file="/home/studinstru/Docker/ti/edma3_lld_02_12_00_20/examples/edma3_driver/simC6657/rtsc_config/Debug/configPkg/compiler.opt"  -mv6600 -g --diag_warning=225 --abi=eabi -z -m"edma3_drv_bios6_c6657_st_sample.map" --warn_sections -i"/home/studinstru/Docker/ti/ccsv6/tools/compiler/c6000_7.4.13/lib" -i"/home/studinstru/Docker/ti/ccsv6/tools/compiler/c6000_7.4.13/include" -i"/home/studinstru/Docker/ti/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/lib/66/debug" -i"/home/studinstru/Docker/ti/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/c6657-sim/66/debug" -i"/home/studinstru/Docker/ti/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/rm/lib/c6657-sim/66/debug" -i"/home/studinstru/Docker/ti/ccsv6/tools/compiler/c6000_7.4.13/lib" -i"/home/studinstru/Docker/ti/ccsv6/tools/compiler/c6000_7.4.13/include" -i"/home/studinstru/Docker/ti/bios_6_33_02_31/packages/ti/sysbios/syncs/lib/debug" --reread_libs --xml_link_info="edma3_drv_bios6_c6657_st_sample_linkInfo.xml" --rom_model -l"/home/studinstru/Docker/ti/edma3_lld_02_12_00_20/examples/edma3_driver/simC6657/rtsc_config/Debug/configPkg/linker.cmd" -o "edma3_drv_bios6_c6657_st_sample.out" "./common.obj" "./dma_chain_test.obj" "./dma_link_test.obj" "./dma_misc_test.obj" "./dma_ping_pong_test.obj" "./dma_poll_test.obj" "./dma_test.obj" "./main.obj" "./qdma_link_test.obj" "./qdma_test.obj" "../linker.cmd"  -ledma3_lld_drv_sample.ae66 -ledma3_lld_rm.ae66 -ledma3_lld_drv.ae66 -l"libc.a" -lti.sysbios.syncs.ae66e 
<Linking>
error: symbols in the reserved far sections cannot be accessed as near; symbol
   "numEdma3Instances" in the far section
   "/home/studinstru/Docker/ti/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sa
   mple/lib/c6657-sim/66/debug/edma3_lld_drv_sample.ae66<sample_c6657_cfg.oe66>
   (.const)" is accessed as near in the section "./main.obj(.text)"
error: symbols in the reserved far sections cannot be accessed as near; symbol
   "numEdma3Instances" in the far section
   "/home/studinstru/Docker/ti/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sa
   mple/lib/c6657-sim/66/debug/edma3_lld_drv_sample.ae66<sample_c6657_cfg.oe66>
   (.const)" is accessed as near in the section "./main.obj(.text)"
error: symbols in the reserved far sections cannot be accessed as near; symbol
   "numEdma3Instances" in the far section
   "/home/studinstru/Docker/ti/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sa
   mple/lib/c6657-sim/66/debug/edma3_lld_drv_sample.ae66<sample_c6657_cfg.oe66>
   (.const)" is accessed as near in the section "./main.obj(.text)"
error: symbols in the reserved far sections cannot be accessed as near; symbol
   "numEdma3Instances" in the far section
   "/home/studinstru/Docker/ti/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sa
   mple/lib/c6657-sim/66/debug/edma3_lld_drv_sample.ae66<sample_c6657_cfg.oe66>
   (.const)" is accessed as near in the section "./main.obj(.text)"
error: symbols in the reserved far sections cannot be accessed as near; symbol
   "numEdma3Instances" in the far section
   "/home/studinstru/Docker/ti/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sa
   mple/lib/c6657-sim/66/debug/edma3_lld_drv_sample.ae66<sample_c6657_cfg.oe66>
   (.const)" is accessed as near in the section "./main.obj(.text)"
error: symbols in the reserved far sections cannot be accessed as near; symbol
   "numEdma3Instances" in the far section
   "/home/studinstru/Docker/ti/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sa
   mple/lib/c6657-sim/66/debug/edma3_lld_drv_sample.ae66<sample_c6657_cfg.oe66>
   (.const)" is accessed as near in the section "./main.obj(.text)"
error: symbols in the reserved far sections cannot be accessed as near; symbol
   "numEdma3Instances" in the far section
   "/home/studinstru/Docker/ti/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sa
   mple/lib/c6657-sim/66/debug/edma3_lld_drv_sample.ae66<sample_c6657_cfg.oe66>
   (.const)" is accessed as near in the section "./main.obj(.text)"
error: symbols in the reserved far sections cannot be accessed as near; symbol
   "numEdma3Instances" in the far section
   "/home/studinstru/Docker/ti/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sa
   mple/lib/c6657-sim/66/debug/edma3_lld_drv_sample.ae66<sample_c6657_cfg.oe66>
   (.const)" is accessed as near in the section "./main.obj(.text)"

 undefined                       first referenced                                                                                                                                
  symbol                             in file                                                                                                                                     
 ---------                       ----------------                                                                                                                                
 ti_sysbios_knl_Semaphore_create /home/studinstru/Docker/ti/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/c6657-sim/66/debug/edma3_lld_drv_sample.ae66<sample_cs.oe66>
 ti_sysbios_knl_Semaphore_delete /home/studinstru/Docker/ti/edma3_lld_02_12_00_20/packages/ti/sdo/edma3/drv/sample/lib/c6657-sim/66/debug/edma3_lld_drv_sample.ae66<sample_cs.oe66>

error: unresolved symbols remain
error: errors encountered during linking; "edma3_drv_bios6_c6657_st_sample.out"
   not built

>> Compilation failure
gmake: *** [edma3_drv_bios6_c6657_st_sample.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****