Other Parts Discussed in Thread: SYSBIOS,
Tool/software: Code Composer Studio
Hello
I am working on AM5718IDK. I have a requirement to use the subset of ICSS_EMAC_BasicExample_idkAM571x_wSoCLib_C66Testproject example project with MAC to MAC communication from DSP. For that, I have modified the existing auto generated project(pdkProjectCreate.bat) and working fine. Then I have developed a new BIOS project from existing modified source code. I have included platform as ti.platforms.idkAM571X and C:\ti\pdk_am57xx_1_0_13\packages\ti\build\pruss\lnk_c66_m4_REV2.cmd linker file as you added in the original sample project.
while compering the linker file generated by project
orginal project
-l"E:\SDR-MP-SC\pru1_2\ICSS_EMAC_BasicExample_idkAM571x_wSoCLib_C66Testproject\Debug\configPkg\package\cfg\icss_emac_c66_wSoCLib_pe66.oe66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\icss_emac\test\am571x\c66\bios\src\sysbios\sysbios.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\pruss\lib\am571x\c66\release\ti.drv.pruss.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\icss_emac\lib\am571x\c66\release\ti.drv.icss_emac.profiling.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\board\lib\idkAM571x\c66\release\ti.board.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\spi\lib\c66\release\ti.drv.spi.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\gpio\lib\c66\release\ti.drv.gpio.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\i2c\lib\am571x\c66\release\ti.drv.i2c.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\uart\lib\c66\release\ti.drv.uart.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\utils\profiling\lib\c66\release\ti.utils.profiling.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\csl\lib\am571x\c66\release\ti.csl.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\osal\lib\tirtos\c66\release\ti.osal.ae66"
-l"C:\ti\bios_6_73_01_01\packages\ti\targets\rts6000\lib\ti.targets.rts6000.ae66"
-l"C:\ti\bios_6_73_01_01\packages\ti\targets\rts6000\lib\boot.ae66"
--retain="*(xdc.meta)"
--args 0x0
-heap 0x0
-stack 0x1000
MEMORY
{
L2SRAM (RWX) : org = 0x800000, len = 0x40000
OCMC_RAM1 (RWX) : org = 0x40300000, len = 0x80000
APP_CODE_MEM : org = 0x80001000, len = 0x2ff000
APP_CACHED_DATA_MEM : org = 0x80300000, len = 0x1400000
APP_UNCACHED_DATA_BLK3_MEM : org = 0xa0000000, len = 0x200000
APP_CACHED_DATA_BLK1_MEM : org = 0x81700000, len = 0xf400000
APP_CACHED_DATA_BLK2_MEM : org = 0x90b00000, len = 0x8000000
}
my new project
-l"E:\SDR-MP-SC\pru1_2\icss_emac_ethernet\Debug\configPkg\package\cfg\icss_emac_c66_wSoCLib_pe66.oe66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\icss_emac\test\am571x\c66\bios\src\sysbios\sysbios.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\pruss\lib\am571x\c66\release\ti.drv.pruss.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\icss_emac\lib\am571x\c66\release\ti.drv.icss_emac.profiling.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\board\lib\idkAM571x\c66\release\ti.board.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\spi\lib\c66\release\ti.drv.spi.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\gpio\lib\c66\release\ti.drv.gpio.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\i2c\lib\am571x\c66\release\ti.drv.i2c.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\drv\uart\lib\c66\release\ti.drv.uart.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\utils\profiling\lib\c66\release\ti.utils.profiling.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\csl\lib\am571x\c66\release\ti.csl.ae66"
-l"C:\ti\pdk_am57xx_1_0_13\packages\ti\osal\lib\tirtos\c66\release\ti.osal.ae66"
-l"C:\ti\bios_6_73_01_01\packages\ti\targets\rts6000\lib\ti.targets.rts6000.ae66"
-l"C:\ti\bios_6_73_01_01\packages\ti\targets\rts6000\lib\boot.ae66"
--retain="*(xdc.meta)"
--args 0x0
-heap 0x0
-stack 0x1000
MEMORY
{
L2SRAM (RWX) : org = 0x800000, len = 0x40000
OCMC_RAM1 (RWX) : org = 0x40300000, len = 0x80000
EXT_RAM : org = 0x80000000, len = 0x80000000
}
while building my new project following error message is coming
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
"C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 4 all -O
Building file: "C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/icss_emac/test/am571x/c66/bios/icss_emac_c66_wSoCLib.cfg"
Invoking: XDCtools
"C:/ti/xdctools_3_50_08_24_core/xs" --xdcpath="C:/ti/bios_6_73_01_01/packages;C:/ti/edma3_lld_2_12_05_30C/packages;C:/ti/pdk_am57xx_1_0_13/packages;C:/ti/bios_6_73_01_01/packages/ti/platforms/idkAM571X;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.idkAM571X -r release -c "C:/ti/ti-cgt-c6000_8.2.2" --compileOptions "-g" "C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/icss_emac/test/am571x/c66/bios/icss_emac_c66_wSoCLib.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring icss_emac_c66_wSoCLib.xe66 from package/cfg/icss_emac_c66_wSoCLib_pe66.cfg ...
generating custom ti.sysbios library makefile ...
Linking with library ti.drv.pruss:./lib/am571x/c66/release/ti.drv.pruss.ae66
Linking with library ti.drv.icss_emac:./lib/am571x/c66/release/ti.drv.icss_emac.profiling.ae66
Linking with library ti.board:./lib/idkAM571x/c66/release/ti.board.ae66
Linking with library ti.drv.spi:./lib/c66/release/ti.drv.spi.ae66
Linking with library ti.drv.gpio:./lib/c66/release/ti.drv.gpio.ae66
Linking with library ti.drv.i2c:./lib/am571x/c66/release/ti.drv.i2c.ae66
Linking with library ti.drv.uart:./lib/c66/release/ti.drv.uart.ae66
Linking with library ti.utils.profiling:./lib/c66/release/ti.utils.profiling.ae66
Linking with library ti.csl:./lib/am571x/c66/release/ti.csl.ae66
Linking with library ti.osal:./lib/tirtos/c66/release/ti.osal.ae66
Starting build of library sources ...
making C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/icss_emac/test/am571x/c66/bios/src/sysbios/sysbios.ae66 ...
gmake[1]: Entering directory `C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/icss_emac/test/am571x/c66/bios/src/sysbios'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/icss_emac/test/am571x/c66/bios/src/sysbios'
Build of libraries done.
cle66 package/cfg/icss_emac_c66_wSoCLib_pe66.c ...
Finished building: "C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/icss_emac/test/am571x/c66/bios/icss_emac_c66_wSoCLib.cfg"
Building file: "../source/icss_emacFwConfig.c"
Invoking: C6000 Compiler
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6600 --include_path="E:/SDR-MP-SC/pru1_2/icss_emac_ethernet" --include_path="C:/ti/bios_6_73_01_01/packages/ti/posix/ccs" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --define=USE_BIOS --define=SOC_AM571x --define=idkAM571x --define=C66X --define=am5718 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="source/icss_emacFwConfig.d_raw" --obj_directory="source" --cmd_file="configPkg/compiler.opt" "../source/icss_emacFwConfig.c"
Finished building: "../source/icss_emacFwConfig.c"
Building file: "../source/main_dsp.c"
Invoking: C6000 Compiler
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6600 --include_path="E:/SDR-MP-SC/pru1_2/icss_emac_ethernet" --include_path="C:/ti/bios_6_73_01_01/packages/ti/posix/ccs" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --define=USE_BIOS --define=SOC_AM571x --define=idkAM571x --define=C66X --define=am5718 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="source/main_dsp.d_raw" --obj_directory="source" --cmd_file="configPkg/compiler.opt" "../source/main_dsp.c"
"C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c66/Cache.h", line 721: warning #48-D: incompatible redefinition of macro "Cache_wait" (declared at line 344 of "C:/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/knl/Cache.h")
"C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c66/Cache.h", line 729: warning #48-D: incompatible redefinition of macro "Cache_inv" (declared at line 341 of "C:/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/knl/Cache.h")
"C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c66/Cache.h", line 730: warning #48-D: incompatible redefinition of macro "Cache_wb" (declared at line 342 of "C:/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/knl/Cache.h")
"C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c66/Cache.h", line 731: warning #48-D: incompatible redefinition of macro "Cache_wbInv" (declared at line 343 of "C:/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/knl/Cache.h")
"C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c66/Cache.h", line 737: warning #48-D: incompatible redefinition of macro "Cache_Module_name" (declared at line 345 of "C:/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/knl/Cache.h")
"C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c66/Cache.h", line 738: warning #48-D: incompatible redefinition of macro "Cache_Module_id" (declared at line 346 of "C:/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/knl/Cache.h")
"C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c66/Cache.h", line 739: warning #48-D: incompatible redefinition of macro "Cache_Module_startup" (declared at line 347 of "C:/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/knl/Cache.h")
"C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c66/Cache.h", line 740: warning #48-D: incompatible redefinition of macro "Cache_Module_startupDone" (declared at line 348 of "C:/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/knl/Cache.h")
"C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c66/Cache.h", line 741: warning #48-D: incompatible redefinition of macro "Cache_Module_hasMask" (declared at line 349 of "C:/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/knl/Cache.h")
"C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c66/Cache.h", line 742: warning #48-D: incompatible redefinition of macro "Cache_Module_getMask" (declared at line 350 of "C:/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/knl/Cache.h")
"C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c66/Cache.h", line 743: warning #48-D: incompatible redefinition of macro "Cache_Module_setMask" (declared at line 351 of "C:/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/knl/Cache.h")
"C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c66/Cache.h", line 744: warning #48-D: incompatible redefinition of macro "Cache_Object_heap" (declared at line 352 of "C:/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/knl/Cache.h")
"C:/ti/bios_6_73_01_01/packages/ti/sysbios/family/c66/Cache.h", line 745: warning #48-D: incompatible redefinition of macro "Cache_Module_heap" (declared at line 353 of "C:/ti/xdctools_3_50_08_24_core/packages/xdc/runtime/knl/Cache.h")
"../source/main_dsp.c", line 176: warning #179-D: variable "info" was declared but never referenced
"../source/main_dsp.c", line 177: warning #179-D: variable "numPorts" was declared but never referenced
Finished building: "../source/main_dsp.c"
Building file: "../source/test_common_utils.c"
Invoking: C6000 Compiler
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6600 --include_path="E:/SDR-MP-SC/pru1_2/icss_emac_ethernet" --include_path="C:/ti/bios_6_73_01_01/packages/ti/posix/ccs" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --define=USE_BIOS --define=SOC_AM571x --define=idkAM571x --define=C66X --define=am5718 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="source/test_common_utils.d_raw" --obj_directory="source" --cmd_file="configPkg/compiler.opt" "../source/test_common_utils.c"
"../source/test_common_utils.c", line 361: warning #179-D: variable "i" was declared but never referenced
Finished building: "../source/test_common_utils.c"
Building target: "icss_emac_ethernet.out"
Invoking: C6000 Linker
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6600 --define=USE_BIOS --define=SOC_AM571x --define=idkAM571x --define=C66X --define=am5718 -g --diag_warning=225 --diag_wrap=off --display_error_number -z -m"icss_emac_ethernet.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/pruss/lib/am571x/c66/release" -i"C:/ti/ti-cgt-c6000_8.2.2/lib" -i"C:/ti/ti-cgt-c6000_8.2.2/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="icss_emac_ethernet_linkInfo.xml" --rom_model -o "icss_emac_ethernet.out" "./source/icss_emacFwConfig.obj" "./source/main_dsp.obj" "./source/test_common_utils.obj" -l"configPkg/linker.cmd" -lti.drv.pruss.ae66 -l"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd" -l"C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/icss_emac/firmware/icss_dualemac/bin/am571x/c66x/REV2/icss_dualemac_PRU0.bin" -l"C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/icss_emac/firmware/icss_dualemac/bin/am571x/c66x/REV2/icss_dualemac_PRU1.bin" -llibc.a
<Linking>
"configPkg/linker.cmd", line 175: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0
"configPkg/linker.cmd", line 175: error #10265: no valid memory range(null) available for placement of ".fardata"
"configPkg/linker.cmd", line 175: error #10099-D: program will not fit into available memory. run placement with alignment fails for section ".fardata" size 0x4002cce
"configPkg/linker.cmd", line 161: warning #10097: memory range not found: APP_CODE_MEM on page 0
"configPkg/linker.cmd", line 161: error #10265: no valid memory range(null) available for placement of ".text"
"configPkg/linker.cmd", line 161: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".text" size 0x25e20
"configPkg/linker.cmd", line 173: warning #10097: memory range not found: APP_CACHED_DATA_MEM on page 0
"configPkg/linker.cmd", line 173: error #10265: no valid memory range(null) available for placement of ".const"
"configPkg/linker.cmd", line 173: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".const" size 0x377b
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 18: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 14: error #10265: no valid memory range(null) available for placement of "PRU0_REV2_DMEM"
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 14: error #10099-D: program will not fit into available memory. run placement with alignment fails for section "PRU0_REV2_DMEM" size 0x2000
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 13: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 9: error #10265: no valid memory range(null) available for placement of "PRU0_REV2_IMEM"
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 9: error #10099-D: program will not fit into available memory. run placement with alignment fails for section "PRU0_REV2_IMEM" size 0x2000
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 31: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 27: error #10265: no valid memory range(null) available for placement of "PRU1_REV2_DMEM"
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 27: error #10099-D: program will not fit into available memory. run placement with alignment fails for section "PRU1_REV2_DMEM" size 0x2000
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 26: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 22: error #10265: no valid memory range(null) available for placement of "PRU1_REV2_IMEM"
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 22: error #10099-D: program will not fit into available memory. run placement with alignment fails for section "PRU1_REV2_IMEM" size 0x2000
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 21: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 19: error #10265: no valid memory range(null) available for placement of "PRU0_REV2_EXT"
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 19: error #10099-D: program will not fit into available memory. run placement with alignment fails for section "PRU0_REV2_EXT" size 0x1000
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 34: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 32: error #10265: no valid memory range(null) available for placement of "PRU1_REV2_EXT"
"C:/ti/pdk_am57xx_1_0_13/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd", line 32: error #10099-D: program will not fit into available memory. run placement with alignment fails for section "PRU1_REV2_EXT" size 0x1000
"configPkg/linker.cmd", line 185: warning #10097: memory range not found: APP_CACHED_DATA_MEM on page 0
"configPkg/linker.cmd", line 185: error #10099-D: program will not fit into available memory. run placement with alignment fails for section ".plt" size 0x0
"configPkg/linker.cmd", line 189: warning #10097: memory range not found: APP_CACHED_DATA_MEM on page 0
"configPkg/linker.cmd", line 189: error #10099-D: program will not fit into available memory. placement with alignment fails for section "xdc.meta" size 0x100
../../master/ELFLNK/build.c:2612:internal fatal error #10251: ("xdc.meta:icss_emac_c66_wSoCLib_pe66.oe66")
INTERNAL ERROR: C:\ti\ti-cgt-c6000_8.2.2\bin\lnk6x.exe had an internal inconsistency and aborted
This is caused by a defect in the TI Linker.
TI Customer Support may be able to suggest a workaround to avoid this.
Upgrading to the newest version of the compiler may fix this problem.
Contact TI in the E2E support forums at http://e2e.ti.com under
"Development Tools", "TI C/C++ Compiler". See the link titled
"Submitting an issue".
We need to see this ENTIRE error message and a complete, reproducable
test case including ALL of the command-line options.
Include all of the object files, libraries, and linker command files
used to link the program.
>> Compilation failure
makefile:148: recipe for target 'icss_emac_ethernet.out' failed
gmake[1]: *** [icss_emac_ethernet.out] Error 1
makefile:144: recipe for target 'all' failed
gmake: *** [all] Error 2
**** Build Finished ****
Regards
Satheesh Kumar S