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.

TI RTOS image_processing demo for AM572x Windows build problem with imglib include file references

Other Parts Discussed in Thread: SYSBIOS

I have been able to build the image_processing demo on Linux with only a few problems.  With regards to Windows 10 I can build it from the command line with gmake but now am referencing the project directly and importing into CCS 6.1.2, as I did on Linux, so I can enhance it.  I did not do a copy on the project and am using the one in the TI RTOS directory.  After resolving some issues with the .cfg script and loadCapsule path issues I can build the Demo_Host but fail with MMCSD_FatfsConsole_AM572X_Evm_c66xImageProcessingDemo_DSP1 and DSP2 projects when it attempts to find include files contained in a zipped archive within imglib_c66x_3_1_1_0/components:

**** Build of configuration Debug for project MMCSD_FatfsConsole_AM572X_Evm_c66xImageProcessingDemo_DSP1 ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/dsp1/Dsp1.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_31_02_38_core/xs" --xdcpath="C:/ti/ipc_3_40_01_08/packages;C:/ti/bios_6_42_02_29/packages;C:/ti/pdk_am57xx_1_0_0/packages;C:/ti/uia_2_00_03_43/packages;C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/myPlatforms;c:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/shared;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p myAM572x_DSP1 -r debug -c "C:/ti/ccsv6/tools/compiler" "C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/dsp1/Dsp1.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring Dsp1.xe66 from package/cfg/Dsp1_pe66.cfg ...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
making C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/dsp1/src/sysbios/sysbios.ae66 ...
gmake[1]: Entering directory `C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/dsp1/src/sysbios'
cle66 C:/ti/bios_6_42_02_29/packages/ti/sysbios/BIOS.c ...
asme66 C:/ti/bios_6_42_02_29/packages/ti/sysbios/family/c64p/Exception_asm.s64P ...
asme66 C:/ti/bios_6_42_02_29/packages/ti/sysbios/family/c64p/Hwi_asm.s62 ...
asme66 C:/ti/bios_6_42_02_29/packages/ti/sysbios/family/c64p/Hwi_asm_switch.s62 ...
asme66 C:/ti/bios_6_42_02_29/packages/ti/sysbios/family/c64p/Hwi_disp_always.s64P ...
asme66 C:/ti/bios_6_42_02_29/packages/ti/sysbios/timers/dmtimer/Timer_asm.s64P ...
asme66 C:/ti/bios_6_42_02_29/packages/ti/sysbios/family/c62/TaskSupport_asm.s62 ...
are66 BIOS.obj c64p_Exception_asm.obj c64p_Hwi_asm.obj c64p_Hwi_asm_switch.obj c64p_Hwi_disp_always.obj dmtimer_Timer_asm.obj c62_TaskSupport_asm.obj ...
gmake[1]: Leaving directory `C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/dsp1/src/sysbios'
Build of libraries done.
cle66 package/cfg/Dsp1_pe66.c ...
'Finished building: C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/dsp1/Dsp1.cfg'
' '
'Building file: C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/dsp1/mcip_core.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv6/tools/compiler/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti/ccsv6/tools/compiler/include" --include_path="C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x" --include_path="C:/ti/uia_2_00_03_43/packages" --include_path="C:/ti/imglib_c66x_3_1_1_0/inc" -g --define=SOC_AM572x --define=USE_BIOS --define=C66X --define=NSS_GEN2 --define=IO_CONSOLE --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --display_error_number --diag_wrap=off --diag_warning=225 --diag_warning=994 --diag_warning=262 --preproc_with_compile --preproc_dependency="mcip_core.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/dsp1/mcip_core.c"
"C:/ti/imglib_c66x_3_1_1_0/inc/imglib.h", line 14: fatal error #1965: cannot open source file "ti/imglib/src/IMG_boundary_16s/IMG_boundary_16s.h"
1 catastrophic error detected in the compilation of "C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/dsp1/mcip_core.c".
Compilation terminated.

>> Compilation failure
gmake: *** [mcip_core.obj] Error 1
'Building file: C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/dsp1/mcip_core_task.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv6/tools/compiler/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti/ccsv6/tools/compiler/include" --include_path="C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x" --include_path="C:/ti/uia_2_00_03_43/packages" --include_path="C:/ti/imglib_c66x_3_1_1_0/inc" -g --define=SOC_AM572x --define=USE_BIOS --define=C66X --define=NSS_GEN2 --define=IO_CONSOLE --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --display_error_number --diag_wrap=off --diag_warning=225 --diag_warning=994 --diag_warning=262 --preproc_with_compile --preproc_dependency="mcip_core_task.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/dsp1/mcip_core_task.c"
'Finished building: C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/dsp1/mcip_core_task.c'
' '
'Building file: C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/dsp1/mcip_slave_main.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv6/tools/compiler/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti/ccsv6/tools/compiler/include" --include_path="C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x" --include_path="C:/ti/uia_2_00_03_43/packages" --include_path="C:/ti/imglib_c66x_3_1_1_0/inc" -g --define=SOC_AM572x --define=USE_BIOS --define=C66X --define=NSS_GEN2 --define=IO_CONSOLE --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --display_error_number --diag_wrap=off --diag_warning=225 --diag_warning=994 --diag_warning=262 --preproc_with_compile --preproc_dependency="mcip_slave_main.pp" --cmd_file="configPkg/compiler.opt" "C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/dsp1/mcip_slave_main.c"
'Finished building: C:/ti/processor_sdk_rtos_am57xx_2_00_00_00/demos/image_processing/ipc/evmam572x/dsp1/mcip_slave_main.c'
' '
gmake: Target `all' not remade because of errors.

**** Build Finished ****

This works fine on Linux and when using gmake from Windows command line.  One issue I did have is imglib_c66x_3_1_1_0 was not automatically seen by CCS upon loading (Windows 10) and I had to go into Windows->Preferences...->RTSC and tell it was there after which it added it.  imglib_c66x_3_2_0_1 is not recognized at all under Windows, even when attempt to reference manually.  Installation after download appeared to work properly and all is installed in C:\ti.

If I unzip the components archive in imglib_c66x_3_1_1_0 and copy it to imglib_c66x_3_1_1_0\inc directory it does appear to build correctly.  Is there possibly a problem with the installation process of imglib on Windows?  Linux works fine and does not have any issues.  Installation results look similar.

  • I moved your thread to the device forum.
  • I will ask the RTOS team to look at this.
  • Kevin Halloran said:
     imglib_c66x_3_2_0_1 is not recognized at all under Windows, even when attempt to reference manually.  
    Installation after download appeared to work properly and all is installed in C:\ti.

    I can reproduce this by downloading and installing the standalone package for imglib_c66x_3_2_0_1 from here

    Please see my post in the CCS forum. I believe that the reason CCS is unable to "discover" this package is because the \eclipse folder within imglib_c66x_3_2_0_1 is missing
    the \features and \plugins sub-folders. 

    Can someone please take a look and confirm the issue?

  • Hi Aarti,

    On my windows 7 machine, the CCS discovery issue doesn`t occur with IMGLIB 3.1.1 that is included in the processor SDK so that may not be the root cause of this issue. If you have downloaded Processor SDK in custom location, then you need to add the path manually for the library package to be detected. This has been described here:

    processors.wiki.ti.com/.../Processor_SDK_RTOS_Setup_CCS

    Is this issue specific to Windows10??

    Regards,
    Rahul

    PS: 

    Kevin,

    We recommend that you use imglib 3.1.1 which is shipped with the SDK for building the SDK components. We are planning the updated version of the IMGLIB in the upcoming releases.

  • Hi Rahul,

    Rahul Prabhu said:
    If you have downloaded Processor SDK in custom location, then you need to add the path manually for the library package to be detected.

    Yes, I am aware of that and am able to get CCS to discover IMGLIB 3.1.1 after manually adding the path to the SDK.

    The issue I see is with IMLIB 3.2.0.1. I installed it using the standalone installer (from here) into the default c:\ti (which should be automatically picked up by CCS). However, it is not. And manually pointing to it does not help either. 

    I am using Windows 7, so shouldn't be specific to Windows 10.

  • CSS discovery did not work on IMGLIB 3.1.1 which was installed by the SDK in the standard location c:\ti. Only after I manually discovered it and unzipped the archived components to the 'c:/ti/imglib_c66x_3_1_1_0/inc' directory did it work properly. All the other components from the SDK did discover properly. I am using Windows 10 so may be specific to it, although deleting it and manually installing it via download did not work for auto-discovery either. Linux had no issues with 3.1.1. As noted by Aarti the 3.2.0.1 installation is missing some eclipse files so it does not work on either platform. I am working fine and figured out a workaround (manual discovery/unzip), was just reporting the issues I found so you could try and fix it in future releases and help anyone else that may have the same issue.

    Regards,

    Kev