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.

MCSDK 2.01.02.06 IBL build errors

When trying to build the evm_c6657_spi target in the IBL directory of the MCSDK, I get the below error. It seems like this build target has not been tested. Is this target supported?

 

/opt/ti/mcsdk_2_01_02_06/tools/boot_loader/ibl/src/make# make evm_c6657_spi
rm -f ../util/symExtract/symExtract_unix
cat ibl_c665x/ibl_objs_template.inc | sed -e s/ENDIAN_TAG/le/g > ibl_c665x/ibl_objs.tmp
cl6x -ppo -DIBL_CFG_I2C_MAP_TABLE_DATA_BUS_ADDR=0x51 -DEXCLUDE_I2C -DENDIAN_TAG=le ibl_c665x/ibl_objs.tmp
cp -f ibl_c665x/ibl_objs.pp ibl_c665x/ibl_objs.inc
cl6x -z -o ibl_c665x/ibl_c665x.out -m ibl_c665x/ibl_c665x.le.map  ibl_c665x/ibl.cmd /opt/ti/ccsv5/tools/compiler/c6000_7.4.2/lib/rts64plus.lib
<Linking>
error: symbol "_hwDevInfo" redefined: first defined in
   "../hw/c64x/make/nandemif25.le.oc"; redefined in
   "../hw/c64x/make/nandgpio.le.oc"
error: errors encountered during linking; "ibl_c665x/ibl_c665x.out" not built

>> Compilation failure
make[2]: *** [iblMain] Error 1
make[2]: Leaving directory `/opt/ti/mcsdk_2_01_02_06/tools/boot_loader/ibl/src/make'
make[1]: *** [le_target] Error 2
make[1]: Leaving directory `/opt/ti/mcsdk_2_01_02_06/tools/boot_loader/ibl/src/make'
make: *** [evm_c6657_spi] Error 2

  • Hi David,

    You nedd to make changes in below two files to compile IBL for c6657 with spi option.

    1) <IBL_INSTALL_DIR>/src/hw/c64x/make/makefile

          Change line #71 from "CSRC+= nandemif25.c nandgpio.c spi.c nandspi.c noremif25.c norspi.c emif25.c spiutil.c c66x_uart.c" to "CSRC+= nandemif25.c spi.c nandspi.c noremif25.c norspi.c emif25.c spiutil.c c66x_uart.c"

    2) <IBL_INSTALL_DIR>/src/make/Makefile

        Change line #345 from "make -f makestg1 ARCH=c64x TARGET=c665x I2C=no I2C_BUS_ADDR=0x51 I2C_MAP_ADDR=0x500 ENDIAN_MODE=little CEXCLUDES=I2C SPI_DEFS='$(EVM_667x_SPI_DEFS)' c66x" to "make -f makestg1 ARCH=c64x TARGET=c665x I2C=no I2C_BUS_ADDR=0x51 I2C_MAP_ADDR=0x500 ENDIAN_MODE=little CEXCLUDES='I2C NAND_GPIO' SPI_DEFS='$(EVM_667x_SPI_DEFS)' c665x"

    Then try to compile using the same command.

    Thanks & Regards,

    Rakesh Modi

  • Rakesh, thanks. This built successfully. I'm hoping someone from the MCSDK team will reply to let us know if this will be fixed in future releases.

    Regards,
    David