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.

Compiler/AM5728: ICSS EMAC example build error

Part Number: AM5728


Tool/software: TI C/C++ Compiler

processor_sdk_rtos_am57xx_6_00_00_07

ICSS_EMAC_BasicExample_idkAM571x_wSoCLib_C66Testproject; build OK.

ICSS_EMAC_BasicExample_idkAM572x_wSoCLib_C66Testproject: build fail:

build the created ICSS_EMAC example, the idkAM571x build successful, the idkAM572x build fail.

fail build message as below: 

Building target: "ICSS_EMAC_BasicExample_idkAM572x_wSoCLib_C66Testproject.out"
Invoking: C6000 Linker
"C:/ti/ccs901/ccs/tools/compiler/ti-cgt-c6000_8.3.2/bin/cl6x" -mv6600 --define=USE_BIOS --define=SOC_AM572x --define=idkAM572x --define=C66X -g --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_warning=225 --diag_warning=994 --diag_warning=262 --diag_wrap=off --display_error_number --entry_hook=ti_utils_entry --exit_hook=ti_utils_exit --entry_parm=address --exit_parm=address -z -m"ICSS_EMAC_BasicExample_idkAM572x_wSoCLib_C66Testproject.map" -i"C:/ti/ccs901/ccs/tools/compiler/ti-cgt-c6000_8.3.2/lib" -i"C:/ti/ccs901/ccs/tools/compiler/ti-cgt-c6000_8.3.2/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="ICSS_EMAC_BasicExample_idkAM572x_wSoCLib_C66Testproject_linkInfo.xml" --rom_model -o "ICSS_EMAC_BasicExample_idkAM572x_wSoCLib_C66Testproject.out" "./icss_emacFwConfig.obj" "./main_dsp.obj" "./test_common_utils.obj" -l"configPkg/linker.cmd" -l"C:/ti/pdk_am57xx_1_0_15/packages/ti/drv/icss_emac/firmware/icss_dualemac/bin/am572x/c66x/REV2/icss_dualemac_PRU0.bin" -l"C:/ti/pdk_am57xx_1_0_15/packages/ti/drv/icss_emac/firmware/icss_dualemac/bin/am572x/c66x/REV2/icss_dualemac_PRU1.bin" -l"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV2.cmd" -l"C:/ti/pdk_am57xx_1_0_15/packages/ti/drv/icss_emac/firmware/icss_dualemac/bin/am572x/c66x/REV1/icss_dualemac_PRU0.bin" -l"C:/ti/pdk_am57xx_1_0_15/packages/ti/drv/icss_emac/firmware/icss_dualemac/bin/am572x/c66x/REV1/icss_dualemac_PRU1.bin" -l"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd" -llibc.a
<Linking>
"C:/ti/pdk_am57xx_1_0_15/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_15/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_15/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
"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 34: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0
"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 32: error #10265: no valid memory range(null) available for placement of "PRU1_REV1_EXT"
"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 32: error #10099-D: program will not fit into available memory. run placement with alignment fails for section "PRU1_REV1_EXT" size 0x1000
"C:/ti/pdk_am57xx_1_0_15/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_15/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_15/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_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 21: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0
"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 19: error #10265: no valid memory range(null) available for placement of "PRU0_REV1_EXT"
"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 19: error #10099-D: program will not fit into available memory. run placement with alignment fails for section "PRU0_REV1_EXT" size 0x1000
"C:/ti/pdk_am57xx_1_0_15/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_15/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_15/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_15/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_15/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_15/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_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 26: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0
"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 22: error #10265: no valid memory range(null) available for placement of "PRU1_REV1_IMEM"
"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 22: error #10099-D: program will not fit into available memory. run placement with alignment fails for section "PRU1_REV1_IMEM" size 0x2000
"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 31: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0
"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 27: error #10265: no valid memory range(null) available for placement of "PRU1_REV1_DMEM"
"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 27: error #10099-D: program will not fit into available memory. run placement with alignment fails for section "PRU1_REV1_DMEM" size 0x2000
"C:/ti/pdk_am57xx_1_0_15/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_15/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_15/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_15/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_15/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_15/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_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 13: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0
"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 9: error #10265: no valid memory range(null) available for placement of "PRU0_REV1_IMEM"
"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 9: error #10099-D: program will not fit into available memory. run placement with alignment fails for section "PRU0_REV1_IMEM" size 0x2000
"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 18: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0
"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 14: error #10265: no valid memory range(null) available for placement of "PRU0_REV1_DMEM"
"C:/ti/pdk_am57xx_1_0_15/packages/ti/build/pruss/lnk_c66_m4_REV1.cmd", line 14: error #10099-D: program will not fit into available memory. run placement with alignment fails for section "PRU0_REV1_DMEM" size 0x2000
"configPkg/linker.cmd", line 175: warning #10097: memory range not found: APP_CACHED_DATA_MEM on page 0
"configPkg/linker.cmd", line 175: error #10265: no valid memory range(null) available for placement of ".const"
"configPkg/linker.cmd", line 175: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".const" size 0x5dd6
"configPkg/linker.cmd", line 163: warning #10097: memory range not found: APP_CODE_MEM on page 0
"configPkg/linker.cmd", line 163: error #10265: no valid memory range(null) available for placement of ".text"
"configPkg/linker.cmd", line 163: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".text" size 0x2ec80
"configPkg/linker.cmd", line 177: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0
"configPkg/linker.cmd", line 177: error #10265: no valid memory range(null) available for placement of ".fardata"
"configPkg/linker.cmd", line 177: error #10099-D: program will not fit into available memory. run placement with alignment fails for section ".fardata" size 0x4004b62
"configPkg/linker.cmd", line 187: warning #10097: memory range not found: APP_CACHED_DATA_MEM on page 0
"configPkg/linker.cmd", line 187: error #10099-D: program will not fit into available memory. run placement with alignment fails for section ".plt" size 0
"configPkg/linker.cmd", line 191: warning #10097: memory range not found: APP_CACHED_DATA_MEM on page 0
"configPkg/linker.cmd", line 191: error #10099-D: program will not fit into available memory. placement with alignment fails for section "xdc.meta" size 0x140
../../master/ELFLNK/build.c:2624:internal fatal error #10251: ("xdc.meta:icss_emac_c66_wSoCLib_pe66.oe66")

INTERNAL ERROR: C:\ti\ccs901\ccs\tools\compiler\ti-cgt-c6000_8.3.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, reproducible
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_BasicExample_idkAM572x_wSoCLib_C66Testproject.out' failed
gmake[1]: *** [ICSS_EMAC_BasicExample_idkAM572x_wSoCLib_C66Testproject.out] Error 1
makefile:144: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****

Same result for ICSS_EMAC_SwitchExample_idkAM571x_wSoCLib_C66Testproject (OK) and ICSS_EMAC_SwitchExample_idkAM572x_wSoCLib_C66Testproject (fail)