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.

Problem in running example projects for DM648

Other Parts Discussed in Thread: CCSTUDIO

Hello

I am using DM648 for the first time. I have installed CCS 3.3.80.11, dm648_dvsdk_setupwin32_1_10_00_26_080320, and dsp_bios_setupwin32_5_31_08_15_080318. I am able to run the demo application from the PC but when i try to build the example projects like Video_preview  for evm648 i get following errors.

-----------------------  video_preview_PAL.pjt - Debug  -----------------------
[video_preview.cfg] "C:\dvsdk_1_10_00_26_DM648\xdc_2_95_02\xs.exe" xdc.tools.configuro.ccs  --xdcpathsfile="xdcpaths.dat" -pti.platforms.evmDM648 -rdebug --tcf -t ti.targets.C64P -c "C:/CCStudio_v3.3/C6000/cgtools" --bios "C:/CCStudio_v3.3/bios_5_31_08" -o "xdcconfig" video_preview.cfg

Info: running XDC configuration using package path:
C:\dvsdk_1_10_00_26_DM648\codec_engine_1_20_02\packages
C:\dvsdk_1_10_00_26_DM648\codec_engine_1_20_02\examples
C:\dvsdk_1_10_00_26_DM648\framework_components_1_20_03\packages
C:\dvsdk_1_10_00_26_DM648\xdais_5_21\packages
C:\dvsdk_1_10_00_26_DM648\codecs_1_10_evmDM648\packages-evaluation
C:\dvsdk_1_10_00_26_DM648\ndk_1_92_00_22_eval\packages
C:\dvsdk_1_10_00_26_DM648\biosutils_1_00_02\packages
C:\dvsdk_1_10_00_26_DM648\pspdrivers_1_10_00_09\packages
C:\dvsdk_1_10_00_26_DM648\edma3_lld_1_03_01_01\packages
C:\dvsdk_1_10_00_26_DM648\examples\common\evmDM648
C:\CCStudio_v3.3\bios_5_31_08\packages
C:\dvsdk_1_10_00_26_DM648\xdc_2_95_02\packages


The configuration step is now running:

     17 [main] ? 0 init_cheap: Couldn't reserve space for cygwin's heap, Win32 error 487
C:\dvsdk_1_10_00_26_DM648\xdc_2_95_02\bin\sh.exe: *** AllocationBase 0x0, BaseAddress 0x61680000, RegionSize 0xC0000, State 0x10000

xdc_2_95_02\gmake.exe: *** [package.mak] Error 1

[i2c_params.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -@"=C:/dvsdk_1_10_00_26_DM648/examples/video_preview/evmDM648/xdcconfig/compiler.opt" -pdr -fr"./Debug" -d"_DEBUG" -d"_PAL" -d"CHIP_DM648" -d"DM648_SOC_BUILD" -mv64+ -@"../../video_preview/evmDM648/Debug.lkf" "i2c_params.c"
"i2c_params.c", line 17: fatal error: could not open source file "ti/sdo/pspdrivers/drivers/i2c/psp_i2c.h"
1 fatal error detected in the compilation of "i2c_params.c".
Compilation terminated.

>> Compilation failure

[video_preview.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -@"=C:/dvsdk_1_10_00_26_DM648/examples/video_preview/evmDM648/xdcconfig/compiler.opt" -pdr -fr"./Debug" -d"_DEBUG" -d"_PAL" -d"CHIP_DM648" -d"DM648_SOC_BUILD" -mv64+ -@"Debug.lkf" "video_preview.c"
"video_preview.c", line 27: fatal error: could not open source file "ti/sdo/pspdrivers/system/dm648/bios/evmDM648/video/fvid.h"
1 fatal error detected in the compilation of "video_preview.c".
Compilation terminated.

>> Compilation failure

[cfg.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -@"=C:/dvsdk_1_10_00_26_DM648/examples/video_preview/evmDM648/xdcconfig/compiler.opt" -pdr -fr"./Debug" -d"_DEBUG" -d"_PAL" -d"CHIP_DM648" -d"DM648_SOC_BUILD" -mv64+ -@"../Debug.lkf" "cfg.c"
Fatal error: could not open source file "cfg.c"
1 fatal error detected in the compilation of "cfg.c".
Compilation terminated.

>> Compilation failure

Build Complete,
  3 Errors, 0 Warnings, 0 Remarks.

Can anybody please help me with it.

Thanks alot!!

 

  • This is the first I have seen that odd "Couldn't reserve space for cygwin's heap, Win32 error 487" error, I am guessing that the XDC tool set has some portion of Cygwin within it.

    This error actually looks to be a more general Cygwin error and is probably beyond the scope of the TI software, a quick google search of the error turns up many results regarding this particular error from a variety of resources. Looking through one particular thread here it seems that many of the people getting the error were able to fix it by removing/disabling anti virus software, with these comments I would suspect something installed on your particular PC may be conflicting with the build process.

  • I agree with Bernie that the cygwin-related error is probably not directly related to the DVSDK software itself. The thread he linked to may be valuable in getting rid of that part of your errors.

    Related to the missing header files, this is generally because a few files must be modified so that they point to the the correct directories. Please see the following note from the DVSDK Release Notes (C:\dvsdk_1_10_00_26_DM648\release_notes_biosdvsdk_evmDM648.html):

    • For building the PSP and EDMA examples

      The PSP and EDMA examples have top level .dat files that set the correct component paths.   These files may need to be changed to reflect correct installation paths.  The files are:

      PSP
      dvsdk_1_10_00_26_DM648/pspdrivers_1_10_00_09/packages/ti/sdo/pspdrivers/common/psp_xdcpaths_common.dat

      EDMA
      dvsdk_1_10_00_26_DM648/edma3_lld_1_00_00_04/packages/ti/sdo/edma3/common/edma3_xdcpaths_common.dat



    Please be sure to update these files as necessary in order to properly build. You may or may not also need to update the C:\dvsdk_1_10_00_26_DM648\xdcpaths_evmDM648.dat file - I cannot recall offhand if this file is updated inside the installer.

  • Thanks for your guidance..

    I was able to solve the problem by replacing cygwin1.dll at \xdc_2_95_02\bin folder with the newer version from net.

    Also it seems there should be only one dll in your system for it to work fine. I removed the dll from C:\CCStudio_v3.3\bios_5_31_08\xdctools\bin folder .  I am not very sure about this as i was still getting the same error after keeping only dll in xdc directory. it was after i replaced this dll with the newer version that everything got sorted.

    All the header file paths also got resolved after this ( I have already followed the steps mentioned by you)

     

    Thanks for your help!!