Tool/software: TI C/C++ Compiler
dsk6713bsl_test.zipTMS320C6713
Spectrum Digital DSK6713
I am building a simple app that reads a MEM Mic from McBSP0.
I want to use APIs MCBSP_open(), MCBSP_read(), MCBSP_write(), MCBSP_close().
I included libraries:
libc.a
"E:\ti\C6xCSL\lib_3x\csl6713.lib" TMS320C6000 Chip Support Library (CSL), v2.31.00.16 April 5, 2006.
"E:\ti\dsk6713\lib\dsk6713bsl.lib" Spectrum Digital DSK6713 library
In CCS Version: 7.2.0.00013, I Rebuild the project.
I got warnings about the csl6713.lib and dsk6713bsl.lib libraries.
'Building target: mems_mics.out'
'Invoking: C6000 Linker'
"E:/ti/ccsv7/tools/compiler/c6000_7.4.22/bin/cl6x" -mv6700 --abi=coffabi -g --define=CHIP_6713 --define=c6713 --diag_wrap=off --diag_warning=225 --display_error_number -z -m"mems_mics.map" --stack_size=0x800 --heap_size=0x800 -i"E:/ti/ccsv7/tools/compiler/c6000_7.4.22/lib" -i"E:/ti/ccsv7/tools/compiler/c6000_7.4.22/include" --reread_libs --diag_wrap=off --warn_sections --display_error_number --xml_link_info="mems_mics_linkInfo.xml" --rom_model -o "mems_mics.out" "./board_config.obj" "./main.obj" "../C6713.cmd" -llibc.a -l"E:/ti/C6xCSL/lib_3x/csl6713.lib" -l"E:/ti/dsk6713/lib/dsk6713bsl.lib"
<Linking>
warning #16002-D: build attribute vendor section TI missing in "E:/ti/C6xCSL/lib_3x/csl6713.lib<csl_emif.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "E:/ti/C6xCSL/lib_3x/csl6713.lib<csl_mcbsp.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "E:/ti/C6xCSL/lib_3x/csl6713.lib<csl_pll.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "E:/ti/C6xCSL/lib_3x/csl6713.lib<csl_irq.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "E:/ti/dsk6713/lib/dsk6713bsl.lib<dsk6713_dip.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "E:/ti/dsk6713/lib/dsk6713bsl.lib<dsk6713_led.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "E:/ti/dsk6713/lib/dsk6713bsl.lib<dsk6713.obj>": compatibility cannot be determined
'Finished building target: mems_mics.out'
My customer requires a project that has no suppressed warnings, so I can't use --diag_suppress=16002
I created a dsk6713bsl project from the dsk6713bsl source.
The C6000 Compiler flags were added: -mc6713
The new dsk6713bsl.lib links without the warnings.
The dsk6713bsl functions appear to be working as expected.
I created a CCS project from the CSL source.
The C6000 Compiler flags were added: -mc6713 and --define==CHIP_6713
The new csl6713.lib links without the warnings.
But now the program dies a call to puts().
It looks like puts() comes from liba.lib which is built from:
ti\ccsv7\tools\compiler\c6000_7.4.22\lib\src\fputs.c
It appears that linking to the newly compiled CSL library is causing functions in liba.lib to die.
I attached
the CSL library project: csl6713.zip
the DSK6713 library project: dsk6713bsl.zip
the test app: dsk6713bsl_test.zip
Any suggestions about how to re-build the CSL library so that it does not break liba.lib?
Thanks,
Bruce Graham
Senior Software Engineer