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.

UPP Examples, build cannot find PMI, PSCL, etc.

Configuration

CCS 4.2.2, recent install, includes bios 5.41.10.36, and bios 5.41.10.36

NDK 2.20.03.24

NSP 1.00.00.09

PSP Drivers 1.30.01 

PSP Drivers 2.10.01

XDS100v2 from Spectrum Digital

C6748 SOM and EVM kit from Logic PD

Problem

1. Import uPP examples from the PSP Drivers 1.30.01, with the following selections:

Tool Verfsion 7.2.0

BIOS 5.41.10.36

do not select "common root for all migrated projects"

2. Re build the project.   The console output from the build is as follows.  Notice that it cannot find the PMI and PSCL files.

 

**** Build of configuration Debug for project uppSampleEvmB ****

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all

'Building file: C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmB/build/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;" "C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmB/build/uppsample.tcf"

'Finished building: C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmB/build/uppsample.tcf'

' '

'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/uppSampleEvmB/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/evmB/../../../../../.." --include_path="/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/uppSampleEvmB/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/evmB/../../../../../.." --include_path="/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 file: C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmB/src/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/uppSampleEvmB/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/evmB/../../../../../.." --include_path="/packages" --issue_remarks --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="uppSample_io.pp" "C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmB/src/uppSample_io.c"

'Finished building: C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmB/src/uppSample_io.c'

' '

'Building file: C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmB/src/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/uppSampleEvmB/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/evmB/../../../../../.." --include_path="/packages" --issue_remarks --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="uppSample_main.pp" "C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmB/src/uppSample_main.c"

'Finished building: C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmB/src/uppSample_main.c'

' '

'Building target: C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmB/bin/Debug/uppSampleEvmB.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"C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmB/bin/Debug/uppSampleEvmB.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/uppSampleEvmB" -i"C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmB/build/ccs3" -i"/lib" -i"/packages" -i"C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmB/../../../../../.." -i"/packages/ti/pmi/lib" -i"/packages/ti/pscl/lib" --reread_libs --rom_model -o "C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmB/bin/Debug/uppSampleEvmB.out" -l"./uppsamplecfg.cmd" "./uppSample_main.obj" "./uppSample_io.obj" "./uppsamplecfg_c.obj" "./uppsamplecfg.obj" -l"../uppSample_Debug.cmd"

<Linking>

"./uppsamplecfg.cmd", line 417: remark: object ".printf" is not allocated, but

error: cannot find file "pscl.a674"

is being placed as part of allocated object "GROUP_1"

error: cannot find file "pmi.a674"

error: cannot find file "pmi_ctl_evm6748.a674"

error: cannot find file "pscl_cfg_evm6748.a674"

undefined first referenced

symbol in file

--------- ----------------

_PMI_getModuleState C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/lib/bios6748.a674<pwrm_rel674.o674>

_PMI_init C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/lib/pwrm.a674<pwrm_ini.o674>

_PMI_setModuleState C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/lib/bios6748.a674<pwrm_rel674.o674>

_PSCL_getNumSetpoints C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/lib/pwrm.a674<pwrm_nsp674.o674>

_PSCL_getSetpoint C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/lib/pwrm.a674<pwrm_gsp674.o674>

_PSCL_initialize C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/lib/pwrm.a674<pwrm_ini.o674>

_PSCL_querySetpoint C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/lib/pwrm.a674<pwrm_spi674.o674>

error: unresolved symbols remain

error: errors encountered during linking; "C:/Program Files/Texas

Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/e

vmB/bin/Debug/uppSampleEvmB.out" not built

>> Compilation failure

gmake: *** [C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evm6748/uppEvm/evmB/bin/Debug/uppSampleEvmB.out] Error 1

gmake: Target `all' not remade because of errors.

Build complete for project uppSampleEvmB

  • Mitch,

    If you are creating a new project that uses PWRM you’ll need to add the PSCL and PMI library locations to the linker search path.  Please see a couple of mentions of how to do this in the “Known Issues” section of the DSP/BIOS release notes (typically located here: C:/Program Files/Texas Instruments/bios_5_41_10_36/Bios_5_41_10_36_release_notes.html).

    Regards,
    Scott

  • Hi Mitch,

     

    It looks like the UPP project is unable to link to the ‘pscl’ and ‘pmi’ libraries. Please make sure these libraries are added in the (library search path) – as shown in the snapshot below.

    NOTE: Make sure the “BIOS_CG_ROOT” environment variable is set appropriately.

    “BIOS_CG_ROOT” is set to - Shown in the snapshot(Macros field of configuration settings) below.

     

     

    Hope this solves your issue.. Let me know the results.

     

    Thanks & regards,

    Raghavendra

  • What it had was  ${env_var:BIOS_INSTALL_DIR}/packages/ti/pmi/lib"  and the same for the pscl.

    Doesn't that mean something is broken in the ccsv3.3 legacy project import function?

    I also needed to install the EDMA package.  I finally read the installation notes in the user guide.  It did not occur to me to read the user guide before installing it. 

    But, what it has for the edma packages is also prefaced by "env_var".  Is that okay?

     

  • Hi Mitch,

     

    First of all, make sure you are bulding the PSP package either using CCSv3.3 or CCSv4. Because, the build setup for both are quiet different.

    Please refer to the section 1.4.1 of the C6748_BIOSPSP_Userguide. It clearly mentions which environment variables have to be created, and what these variables have to be set to. Following all the steps would certainly build the PSP package successfully both on CCSv3.3 and CCSv4. 

    NOTE: There are two installers available for a BIOS package. One for CCSv3.3 setup and other CCSv4 setup. When the BIOS package for CCSv4 setup is installed, it creates a MACRO "BIOS_CG_ROOT" in CCSv4 and takes reference to BIOS from this MACRO. Whereas, in CCSv3.3 it takes reference to BIOS directly from environment variable "BIOS_INSTALL_DIR".

    Edma packages need not be prefaced by "env_var". 

    IMPORTANT Environment variables to be set:

    "BIOS_INSTALL_DIR"

    "BIOS5PSP_INSTALL_DIR"

    "EDMA3LLD_BIOS5_INSTALLDIR"

    Also refer to section 1.5.3 of the C6748_BIOSPSP_Userguide to get a better insight towards building the BIOS PSP Driver Modules.

    Thanks & regards,

    Raghavendra