Tool/software: Code Composer Studio
Hi everyone,
I am trying to install CSL3.07 on CCSv6.1 I have never done it before and I am having a hard time. I posted to the CCS forum was told to ask my ask questions here. My previous posts that show the steps I took are here: https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/583301/2144003.
I am still having some problems. Please have a look at the pic below. I believe all "nand" related errors are because, the functions shown in the error tab are defined both in csl_nand.c and csl_emif.c and declared both in csl_nand.h and csl_emif.h (names of the functions are same, only the arguments are of different type). When I tried go to one of the function's declaration I am given 2 options, as seen in the pic, to go to as CCS finds 2 declarations (and also 2 definitions). If I remove lets say csl_emif.c the errors disappear. I won't be using either emif or nand. If you say it will be a viable solution, I can get rid of them but still want to know why the files were created this way and correct way to use them.
Another problem is the linker file. I found a suitable linker file on the forum that enables the use of printf and I am using that one ( given in: https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/215845/761954 ). It seems that I need to customize the linker to my needs. I have started reading 9.6.4 in www.ti.com/.../spru280i.pdf as suggested in one of the post. If have suggested solutions I would like to hear them (especially if you think this is not a part of the installation process). My log console is given below the pic.
For both of my problems what I want to know is, did you have similar problems too while installing CSL or it is just me doing some fundamental mistake. It is the first time I am installing CSL.
My main is simply this:
#include <stdio.h>
#include "csl_sysctrl.h"
/*
* main.c
*/
int main(void)
{
SYS_setEBSR(CSL_EBSR_FIELD_PPMODE, CSL_EBSR_PPMODE_0);
return 0;
}
**** Build of configuration Debug for project DSP5515 ****
"E:\\Texas\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../src/csl_emif.c'
'Invoking: C5500 Compiler'
"E:/Texas/ccsv6/tools/compiler/C5500 Code Generation Tools 4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="E:/Texas/bios_5_42_02_10/packages/ti/bios/include" --include_path="E:/Texas/c55_csl_3.07/inc" --include_path="E:/Texas/bios_5_42_02_10/packages/ti/rtdx/include/c5500" --include_path="E:/Texas/ccsv6/tools/compiler/C5500 Code Generation Tools 4.4.1/include" --include_path="E:/Texas/bios_5_42_02_10/packages" --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="src/csl_emif.pp" --obj_directory="src" "../src/csl_emif.c"
'Finished building: ../src/csl_emif.c'
' '
'Building target: DSP5515.out'
'Invoking: C5500 Linker'
"E:/Texas/ccsv6/tools/compiler/C5500 Code Generation Tools 4.4.1/bin/cl55" -v5515 --memory_model=large -g --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=algebraic -z -m"DSP5515.map" --stack_size=0x200 --heap_size=0x400 -i"E:/Texas/ccsv6/tools/compiler/C5500 Code Generation Tools 4.4.1/lib" -i"E:/Texas/ccsv6/tools/compiler/C5500 Code Generation Tools 4.4.1/include" --reread_libs --display_error_number --warn_sections --xml_link_info="DSP5515_linkInfo.xml" --rom_model --sys_stacksize=0x200 -o "DSP5515.out" "./main.obj" "./src/csl_audioClass.obj" "./src/csl_cdc.obj" "./src/csl_dat.obj" "./src/csl_dma.obj" "./src/csl_emif.obj" "./src/csl_gpio.obj" "./src/csl_gpt.obj" "./src/csl_hid.obj" "./src/csl_i2c.obj" "./src/csl_i2c_ioExpander.obj" "./src/csl_i2s.obj" "./src/csl_intc.obj" "./src/csl_irqplug.obj" "./src/csl_lcdc.obj" "./src/csl_mcbsp.obj" "./src/csl_mcspi.obj" "./src/csl_mem.obj" "./src/csl_mmcsd.obj" "./src/csl_mmcsd_ataIf.obj" "./src/csl_msc.obj" "./src/csl_nand.obj" "./src/csl_pll.obj" "./src/csl_rtc.obj" "./src/csl_sar.obj" "./src/csl_sdio.obj" "./src/csl_spi.obj" "./src/csl_sysctrl.obj" "./src/csl_uart.obj" "./src/csl_uhpi.obj" "./src/csl_usb.obj" "./src/csl_wdt.obj" "./src/evm5515.obj" "./src/evm5515_gpio.obj" "./src/evm5515_i2c.obj" "./src/vectors.obj" "../C5515.cmd" -l"libc.a"
<Linking>
error #10056: symbol "_NAND_enableHwECC" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
error #10056: symbol "_NAND_setup" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
>> Compilation failure
error #10056: symbol "_NAND_readNBytes" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
error #10056: symbol "_NAND_hasCacheProg" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
error #10056: symbol "_NAND_hasCopyBack" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
error #10056: symbol "_NAND_hasRandomWrite" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
error #10056: symbol "_NAND_setAddress" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
error #10056: symbol "_NAND_setLatchEnableOffset" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
error #10056: symbol "_NAND_sendCommand" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
error #10056: symbol "_NAND_isStatusWriteProtected" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
error #10056: symbol "_NAND_readECC" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
error #10056: symbol "_NAND_writeNBytes" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
error #10056: symbol "_NAND_getBankInfo" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
error #10056: symbol "_NAND_disableHwECC" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
error #10056: symbol "_NAND_hasRandomRead" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
error #10056: symbol "_NAND_checkCommandStatus" redefined: first defined in
"./src/csl_emif.obj"; redefined in "./src/csl_nand.obj"
warning #10247-D: creating output section ".switch" without a SECTIONS
specification
"../C5515.cmd", line 74: error #10099-D: program will not fit into available
memory. placement with alignment/blocking fails for section ".text" size
0x20835 page 0. Available memory ranges:
DARAM1 size: 0x2000 unused: 0x2000 max hole: 0x2000
"../C5515.cmd", line 80: error #10099-D: program will not fit into available
memory. run placement with alignment/blocking fails for section ".bss" size
0x29ec page 0. Available memory ranges:
DARAM5 size: 0x2000 unused: 0x2000 max hole: 0x2000
"../C5515.cmd", line 72: error #10099-D: program will not fit into available
memory. placement with alignment/blocking fails for section "vectors" size
0x200 page 0. Available memory ranges:
VECS size: 0x100 unused: 0x100 max hole: 0x100
error #10010: errors encountered during linking; "DSP5515.out" not built
gmake: *** [DSP5515.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****


