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.

SYS/BIOS with psp 3.0.1.0: including/building cslr

Other Parts Discussed in Thread: OMAPL138

Hi -

I've been able to download and link to my project the psp tools for SYS/BIOS on OMAPL138. I am trying to #include the clsr but it does not show up under /biospsp_03_00_01_00/drivers in my includes path. I figured I needed to build it as referenced in the user's guide:



Execute the following command
C:\Program Files\Texas Instruments\biospsp_xx_yy_zz_aa> gmake cslr
I've had quite the trouble trying to build this to include it in my project.

The directory I have all my packages in is C:/ti/ because the spaces in "Program Files/Texas Instruments" were not playing nicely. This is where biospsp v3.0.1.0 and xdctools v3.23.00.32 are located.

I first "set ROOTDIR=C:\ti\biospsp_03_00_01_00". I assume cygwin must be used because all the makefiles are written for UNIX. Below is the error I receive:



$ gmake cslr
# Configuring XDC packages for cslr_evm6748_example_uart:c6xdsp:debug
C:/ti/xdctools_3_23_00_32/gmake -C C:/ti/biospsp_03_00_01_00/cslr\evm6748\examples\uart xdc_configuro PLATFORM=c6748-evm CORE=c6xdsp PROFILE_c6xdsp=debug
gmake[1]: Entering directory `C:/ti/biospsp_03_00_01_00/cslr/evm6748/examples/uart'
# Invoking configuro...
a+x maketemp_configuro_cmd_c6xdsp.bat
maketemp_configuro_cmd_c6xdsp.bat

C:\ti\biospsp_03_00_01_00\cslr\evm6748\examples\uart>C:/ti/xdctools_3_23_00_32/xs xdc.tools.configuro --generationOnly -o obj/c6748-evm/c6xdsp/debug/cslr_evm6748_example_uart_configuro -t ti.targets.elf.C674 -p ti.platforms.evm6748 -r whole_program -c C:/ti/C6000C~1.1 -b C:/ti/biospsp_03_00_01_00/config.bld uartExample.cfg
making package.mak (because of package.bld) ...
js: "C:\ti\xdctools_3_23_00_32\packages\xdc\tools\configuro\template\compiler.opt.xdt", line 66: Error: template generation of 'compiler.opt' failed: Error: C:/ti/C6000C~1.1 cannot be found. Ensure that rootDir for the C674 target is set correctly in ./config.bld
"./package.bld", line 60
xdctools_3_23_00_32\gmake.exe: *** Deleting file `package.mak'
xdctools_3_23_00_32\gmake.exe: *** No rule to make target `linker.cmd'. Stop.
Warning: directory "C:/ti/edma3_lld_02_11_02_04/packages" on package path does not exist
js: "C:/ti/xdctools_3_23_00_32/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [xdc_configuro] Error 1
gmake[1]: Leaving directory `C:/ti/biospsp_03_00_01_00/cslr/evm6748/examples/uart'
gmake: *** [cslr_evm6748_example_uart] Error 2


I can't find any clues in config.bld or the C6000 folder in xdctools on what needs to be done next. This all seems very unusual to be jumping through all these hoops to get CSLR in my project - am I even on the right track here?

//edit for formatting, this was not very user friendly :(

Thanks,

Marshall

  • I failed to mention some edits I had to make in C:/ti/biospsp_03_00_01_00/env.mk

    I adjusted INTERNAL_SW_ROOT to be C:/ti/biospsp_03_00_01_00

    I adjusted EXTERNAL_SW_ROOT to be C:/ti

    I adjusted UTILS_INSTALL_DIR to be C:/ti/xdctools_3_23_00_32

    I just recently discovered:

    # DSP - Since same toolchain does not support COFF and ELF, there are two entries
    # This would go away when one version supports both formats
    CODEGEN_PATH_DSP = $(EXTERNAL_SW_ROOT)/C6000C~1.1
    CODEGEN_PATH_DSPELF = $(EXTERNAL_SW_ROOT)/C6000C~1.1
    
    
    Which looks related to my problem.
  • Hi Marshall,

    Marshall Schiring said:
    I am trying to #include the clsr but it does not show up under /biospsp_03_00_01_00/drivers in my includes path.

    The cslr is placed under the /biospsp_03_00_01_00/ directory.

    Please refer the "C6748_BIOSPSP_Userguide" regarding all the tools required and environment variable setting. Accordingly, modify the env.mk file of the biospsp package. If you refer section 1.5.1.1 it explains about setting environment variable "CGTOOLS"; Make sure the CG tools is installed and the appropriate directory is specified in the "CGTOOLS" environment variable.

    Hope this helps..

    Best Regards,

    Raghavendra

  • So I just have to add another distinct include path for cslr... which will need to be updated every revision of psp.

    I don't get why it wasn't just included by default when you include the psp under project->properties->general->RTSC?

    Either way, thanks for the clarification Raghavendra.

    Marshall

  • Marshall,

    None of this sys/bios  and psp stuff is as straightforward as it should be.

    ~Brian