Tasks: Copy a UPP Example to A New Project, Replace the Links with Files, and Fix the Build Properties
Example projects for the UPP interface are provided in PSP 1.30.01. If you import one of these projects, you may want to replace linked files with local copies of the actual files. This is important if you want to edit the project without corrupting the distribution tree.
The steps to import a UPP example and fix the build properties, were previously worked out and documented in "How to Import and Build the Upp Examples in CCS4" http://e2e.ti.com/support/embedded/f/355/p/108905/384860.aspx#384860.
(You may also be interested in "UPP Examples, How to Connect Evm Base Boards and Run the UPP Examples" , http://e2e.ti.com/support/embedded/f/355/p/109298/386385.aspx#386385, and see the Wiki at http://processors.wiki.ti.com/index.php/Using_the_uPP_EVM_example_applications_from_the_BIOS_PSP )
After the above, you have a project that builds but does not have local copies of its files. The procedure for adding the files was discussed in http://e2e.ti.com/support/embedded/f/355/p/113219/407966.aspx#407966. At the conclusion it was close enough to work out the rest.
The following is the procedure that seemed work to create a new project with local files that can be built and that can be edited without corrupting the distribution tree. (But check carefully, references outside the local project files can be not-so-easy to find.)
1. Copy the project to a new project.
In the C/C++ tab, right click on the project, choose copy, then choose paste and give the new copy a new name.
2. Replace the links with the actual files.
In the C/C++ windows, expand the project. Right click on the links for .c files, and the .tcf file choose "delete". Right click on the project and choose "add files...". In the add files dialog, browse to the distribution tree and select the files that were linked into the project. The files that you need to add are (a) all of the ".c" files (and ".h", if any), (b) the ".tcf" file, (c) uppSample.tci, (d) uppSample_Debug.cmd, and (e) uppSample_Release.cmd
3. Fix the build properties
Open the project build properties dialog (right click on the project and choose build properties). In "file search path", where it says "Include library file or command file (--library, -l)", select the cmd file entry and click the edit button (looks like a pencil), click "workspace..." and then browse to select the cmd file located in the workspace.
Don't forget to check and corrrect all of the build properties for both the debug and release builds, and make sure you leave it set to debug or release as needed.
4. Build the project
Here is what i got for output from the build
**** Build of configuration Debug for project uppInput ****
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all
'Building file: ../uppsample.tcf'
'Invoking: TConf Script Compiler'
"C:/Program Files/Texas Instruments/xdctools_3_20_08_88/tconf" -b -Dconfig.importPath="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages;" "../uppsample.tcf"
'Finished building: ../uppsample.tcf'
' '
'Building file: ../uppSample_io.c'
'Invoking: Compiler'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="C:/Projects/DSP_Preprocessor/uppInput/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmA/../../../../../.." --include_path="C:/Program Files/Texas Instruments/edma3_lld_01_11_02_05/packages" --issue_remarks --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="uppSample_io.pp" "../uppSample_io.c"
'Finished building: ../uppSample_io.c'
' '
'Building file: ../uppSample_main.c'
'Invoking: Compiler'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="C:/Projects/DSP_Preprocessor/uppInput/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmA/../../../../../.." --include_path="C:/Program Files/Texas Instruments/edma3_lld_01_11_02_05/packages" --issue_remarks --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="uppSample_main.pp" "../uppSample_main.c"
'Finished building: ../uppSample_main.c'
' '
'Building file: uppsamplecfg.s??'
'Invoking: Compiler'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="C:/Projects/DSP_Preprocessor/uppInput/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmA/../../../../../.." --include_path="C:/Program Files/Texas Instruments/edma3_lld_01_11_02_05/packages" --issue_remarks --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="uppsamplecfg.pp" "uppsamplecfg.s62"
'Finished building: uppsamplecfg.s??'
' '
'Building file: uppsamplecfg_c.c'
'Invoking: Compiler'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="C:/Projects/DSP_Preprocessor/uppInput/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmA/../../../../../.." --include_path="C:/Program Files/Texas Instruments/edma3_lld_01_11_02_05/packages" --issue_remarks --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="uppsamplecfg_c.pp" "uppsamplecfg_c.c"
'Finished building: uppsamplecfg_c.c'
' '
'Building target: uppInput.out'
'Invoking: Linker'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --issue_remarks --diag_warning=225 --abi=coffabi -z -m"uppInput.map" --warn_sections -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/lib" -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" -i"C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/lib/c6000" -i"C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/lib" -i"C:/Projects/DSP_Preprocessor/uppInput" -i"C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmA/build/ccs3" -i"/lib" -i"C:/Program Files/Texas Instruments/edma3_lld_01_11_02_05/packages" -i"C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmA/../../../../../.." -i"C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/pmi/lib" -i"C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/pscl/lib" --reread_libs --rom_model -o "uppInput.out" -l"./uppsamplecfg.cmd" "./uppsamplecfg_c.obj" "./uppsamplecfg.obj" "./uppSample_main.obj" "./uppSample_io.obj" -l"C:\Projects\DSP_Preprocessor\uppInput\uppSample_Debug.cmd" "../uppSample_Debug.cmd" "../uppSample_Release.cmd"
<Linking>
"./uppsamplecfg.cmd", line 417: remark: object ".printf" is not allocated, but
is being placed as part of allocated object "GROUP_1"
'Finished building target: uppInput.out'
' '
Build complete for project uppInput