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/TCI6630K2L: Problem with Keystone II boot examples

Part Number: TCI6630K2L

Tool/software: TI C/C++ Compiler

I have TCIEVMK2LX evaluation board with TCI6630K2L processor. I uploaded my own code with debugger to RAM but now I want to put an application in a NAND Flash.

I've found a tutorial. I can't download git repository because server refuses a connection. So I downloaded an archive from web page,but there are only examples for K2E and K2H, not K2L. Nevertheless, I tried use a K2H nandImage.dat. I've run a writer but it can't work with 2GiB NAND Flash on the TCIEVMK2LX. Fortunately I found a solution on your forum. Of course, image doesn't work. I found that it was caused by differences between K2H and K2L and I tried to compile image from sources. Of course, compilation doesn't work too. I got:

make DEVICE=K2H -C ./nand/singleStage
make[1]: Entering directory `/d/test/keystone2_boot_examples-keystone2_boot_examples/examples/k2l/nand/singleStage'
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.7.LTS/bin/armcl -k --endian=little -mv7A8 --code_state=32 -g --abi=ti_arm9_abi --diag_warning=225 -iC:/TI/pdk_keystone2_3_01_01_04/packages -iC:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.7.LTS/include -iC:/TI/pdk_keystone2_3_01_01_04/packages/ti/csl/lib/k2h/c66 -i../../../../include -eo.obja ../../../../common/setEntryPoint.s
fatal error: As of version 15.3.0.STS of the ARM CGT, COFF ABI support
   (ti_arm9_abi) is discontinued. If COFF ABI support is needed for your
   application, please use ARM CGT version 5.2.x.
make[1]: *** [nandImage.dat] Error 1
make[1]: Leaving directory `/d/test/keystone2_boot_examples-keystone2_boot_examples/examples/k2l/nand/singleStage'
make: *** [singleStage] Error 2

I remove --abi=ti_arm9_abi, but now I have:

C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.7.LTS/bin/armcl -z -m nand.map -iC:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.7.LTS/lib -iC:/TI/pdk_keystone2_3_01_01_04/packages -iC:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.7.LTS/include -i../../../../include -iC:/TI/pdk_keystone2_3_01_01_04/packages/ti/csl/lib/k2h/c66 --reread_libs --warn_sections --rom_model -o nand.out  pll.obj uart.obj Stage1.obj setEntryPoint.obja -l"libc.a" ../../build/singleStage.cmd
<Linking>

 undefined     first referenced
  symbol           in file
 ---------     ----------------
 _main         setEntryPoint.obja
 _main_func_sp setEntryPoint.obja

error: unresolved symbols remain
warning: entry-point symbol other than "_c_int00" specified:  "myStart"
error: errors encountered during linking; "nand.out" not built

>> Compilation failure

What am I doing wrong?