工具与软件:
大家好、我正在尝试构建用于 I2C 引导的 IBL。 我遵循这些指示: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1048640/faq-processor-sdk-c665x-ibl-build-steps-on-windows-10-processor-family-c665x/3879673?tisearch=e2e-sitesearch&keymatch=FAQ%2525252520Rajarajan#3879673
但是、当运行"make"命令时、我会遇到许多错误:
$ make evm_c6657_i2c ENDIAN=little I2C_BUS_ADDR=0x51
make -f makestg1 I2C_BUS_ADDR=0x51 I2C_MAP_ADDR=0x500 \
ENDIAN_MODE=little ARCH=c64x TARGET=c665x EVM=c6657l SPI=no SPI_DEFS='SPI_MODE=1 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=1 SPI_CLKDIV=8 SPI_ROM=1' \
CEXCLUDES='COFF BIS NAND_GPIO' c665x
make[1]: Entering directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/make'
make -f makestg2 ARCH=c64x TARGET=c665x ENDIAN=little I2C_SIZE_BYTES=0x20000 I2C_BUS_ADDR=0x51 INTERNAL_UTILS= SPI_DEFS='SPI_MODE=1 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=1 SPI_CLKDIV=8 SPI_ROM=1' utils
make[2]: Entering directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/make'
make -C ../util/btoccs
make[3]: Entering directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/util/btoccs'
gcc -o b2ccs b2ccs.c
gcc -o b2i2c b2i2c.c
gcc -o ccs2b ccs2b.c
gcc -o bfaddsect bfaddsect.c
gcc -o bfmerge bfmerge.c
gcc -o ccs2bin ccs2bin.c
ccs2bin.c: In function 'parseit':
ccs2bin.c:74:14: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
if (!strcmp (argv[i], "-swap"))
^~~~~~
make[3]: Leaving directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/util/btoccs'
make -C ../util/romparse TARGET=c665x
make[3]: Entering directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/util/romparse'
Checking command line dependencies
same
make[3]: Leaving directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/util/romparse'
make -C ../util/i2cConfig c665x MAINDEFS='-DIBL_CFG_I2C_MAP_TABLE_DATA_BUS_ADDR=0x51 -DEXCLUDE_COFF -DEXCLUDE_BIS -DEXCLUDE_NAND_GPIO -DSPI_MODE=1 -DSPI_ADDR_WIDTH=24 -DSPI_NPIN=5 -DSPI_CSEL=2 -DSPI_C2TDEL=1 -DSPI_CLKDIV=8 -DSPI_ROM=1 -DPAD_FILE_ID_1=1 -DPAD_FILE_ID_2=1 -DINIT_EXE_FILE='"ibl_c665x/ibl_init.i2c.be.ccs"' -DEXE_FILE_1='""' -DEXE_FILE_2='"ibl_c665x/ibl.i2c.be.ccs"''
make[3]: Entering directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/util/i2cConfig'
make -f makestg2 ARCH=c64x I2C_BUS_ADDR=0x51 I2C_MAP_ADDR=0x500 TARGET=c665x c665x
make[4]: Entering directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/util/i2cConfig'
Checking command line dependencies
same
making hw
make -C ../../hw/c64x/make hw
make[5]: Entering directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/hw/c64x/make'
Checking command line dependencies
same
make[5]: Leaving directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/hw/c64x/make'
making device
make -C ../../device/c64x/make CDEFS='-DIBL_CFG_I2C_MAP_TABLE_DATA_BUS_ADDR=0x51 -DEXCLUDE_COFF -DEXCLUDE_BIS -DEXCLUDE_NAND_GPIO -DSPI_MODE=1 -DSPI_ADDR_WIDTH=24 -DSPI_NPIN=5 -DSPI_CSEL=2 -DSPI_C2TDEL=1 -DSPI_CLKDIV=8 -DSPI_ROM=1 -DPAD_FILE_ID_1=1 -DPAD_FILE_ID_2=1 -DINIT_EXE_FILE=ibl_c665x/ibl_init.i2c.be.ccs -DEXE_FILE_1= -DEXE_FILE_2=ibl_c665x/ibl.i2c.be.ccs' device
make[5]: Entering directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/device/c64x/make'
q -I -a -ele.oa -o$.da ../../../device/c64x/c64x.s
/bin/sh: q: command not found
make[5]: [c64x.da] Error 127 (ignored)
Checking command line dependencies
same
make[5]: Leaving directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/device/c64x/make'
cl6x -z -o i2cparam_c665x_le.out -m i2cparam_c665x_le.map i2cparam.le.oc ../../hw/c64x/make/i2c.le.oc ../../hw/c64x/make/pll.le.oc ../../hw/c64x/make/cfgpll.le.oc ../../hw/c64x/make/cfgpll2.le.oc ../../device/c64x/make/c64x.le.oa ../../hw/c64x/make/psc.le.oc ../../device/c64x/make/c665xutil.le.oc i2cparam.cmd "C:/ti/ccs930/ccs/tools/compiler/c6000_7.4.24"/lib/rts64plus.lib
<Linking>
../../master/DIAG/user_msg_api.c:217:internal fatal error #99926:
(ofile_error_handler(): <internal>: corrupted object file: attempting to
get ELF interface for non-ELF file)
INTERNAL ERROR: c:\ti\ccs930\ccs\tools\compiler\ti-cgt-c6000_8.3.5\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
make[4]: *** [c665x] Error 1
make[4]: Leaving directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/util/i2cConfig'
make[3]: *** [c665x] Error 2
make[3]: Leaving directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/util/i2cConfig'
make[2]: *** [utils] Error 2
make[2]: Leaving directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/make'
make[1]: *** [le_target] Error 2
make[1]: Leaving directory `/c/ti/pdk_c665x_2_0_16/packages/ti/boot/ibl/src/make'
make: *** [evm_c6657_i2c] Error 2
感谢你的帮助





