How to link correctly Blackfin Image Processing Toolbox in order to run in ADZS-BF707-BLIP2

Hi,

I am trying to run some image processing filters using the Blackfin Image Processing Toolbox in the ADZS-BF707-BLIP2 kit. When i use the example from BLIP,  (FrameCapture_ClassDriver_ASX340) and link manually the Blackfin Image Processing Tollbox, it works:


'Building target: FrameCapture_Test_ASX340.dxe'
'Invoking: CrossCore Blackfin Linker'
ccblkfn -proc ADSP-BF707 -si-revision any -TC:/Users/boby/cces/workspace/FrameCapture_Test_ASX340/system/startup_ldf/app.ldf -no-mem -LC:/Users/boby/cces/workspace/FrameCapture_Test_ASX340/Debug/system/startup_ldf -LC:/Analog\ Devices/SoftwareModules/ImageProcessingToolbox-BF-Rel2.4.0/Lib-Production-CCES -flags-link -MDDEBUG,-MDCORE0 -flags-link -e -add-debug-libpaths -no-utility-rom -flags-link libadi_image_tool_box_cces_bf70x.dlb -o FrameCapture_Test_ASX340.dxe @input-file.txt  -flags-link -od,.\.
'Finished building target: FrameCapture_Test_ASX340.dxe'
' '

09:53:24 Build Finished (took 19s.643ms)

But when i create my one program and try to link it using systemn.svc i have the next error:

'Building target: CameraASX340.dxe'
'Invoking: CrossCore Blackfin Linker'
ccblkfn -proc ADSP-BF707 -si-revision any -TC:/Users/boby/cces/workspace/CameraASX340/system/startup_ldf/app.ldf -no-mem -LC:/Users/boby/cces/workspace/CameraASX340/Debug/system/startup_ldf -LC:/Analog\ Devices/SoftwareModules/ImageProcessingToolbox-BF-Rel2.4.0/Lib-Production-CCES -flags-link -MDDEBUG,-MDCORE0 -flags-link -e -add-debug-libpaths -no-utility-rom -flags-link libadi_image_tool_box_cces_bf70x.dlb -o CameraASX340.dxe @input-file.txt  -flags-link -od,.\.

[Error li1021]  The following symbols referenced in processor 'P0' could not be resolved:
        'adi_UYVY2RGB(const unsigned char *, unsigned char *, unsigned int) [__Z12adi_UYVY2RGBPKhPhj]' referenced from 'src\CameraASX340.doj'

Linker finished with 1 error
cc3089: fatal error: Link failed (code:1)
make: *** [CameraASX340.dxe] Error 1

When i compare both of them, they are runnnig the same configuration, but i can not find why my own does not work.

My own Program:

ccblkfn -proc ADSP-BF707 -si-revision any -TC:/Users/boby/cces/workspace/CameraASX340/system/startup_ldf/app.ldf             -no-mem -LC:/Users/boby/cces/workspace/CameraASX340/Debug/system/startup_ldf             -LC:/Analog\ Devices/SoftwareModules/ImageProcessingToolbox-BF-Rel2.4.0/Lib-Production-CCES -flags-link -MDDEBUG,-MDCORE0 -flags-link -e -add-debug-libpaths -no-utility-rom -flags-link libadi_image_tool_box_cces_bf70x.dlb -o CameraASX340.dxe             @input-file.txt  -flags-link -od,.\.

From example FrameCapture_ClassDriver_ASX340:

ccblkfn -proc ADSP-BF707 -si-revision any -TC:/Users/boby/cces/workspace/FrameCapture_Test_ASX340/system/startup_ldf/app.ldf -no-mem -LC:/Users/boby/cces/workspace/FrameCapture_Test_ASX340/Debug/system/startup_ldf -LC:/Analog\ Devices/SoftwareModules/ImageProcessingToolbox-BF-Rel2.4.0/Lib-Production-CCES -flags-link -MDDEBUG,-MDCORE0 -flags-link -e -add-debug-libpaths -no-utility-rom -flags-link libadi_image_tool_box_cces_bf70x.dlb -o FrameCapture_Test_ASX340.dxe @input-file.txt  -flags-link -od,.\.

I follow the Steps which come in the Image Tool Product Reference Guide:

3.1  Using Native APIs of Blackfin Image  Processing Toolbox 

    1.   Include adi_image_tool_box.h file. This has declarations of all the APIs supported by  
         Blackfin Image Processing Toolbox library.  

    2.   Include adi_image_tool_box_defines.h file. This has declarations of all the MACROs and  
         object data types provided by Blackfin Image Processing Toolbox library.  

    3.   Include adi_tool_chain.h file. This has tool specific macros defined.  

    4.   Include adi_float16.h to support float16 operations.  

    5.   Include the required Blackfin Image Processing Toolbox library. If using VisualDSP++  
         tool-chain, then add the path <pkg_dir>/include/ folder in the “Additional include  
         directories” in the Project Options. Also add the path <pkg_dir>/Lib-Production-VDSP/ in  
         the “Search directories” in the Project linker options. Where <pkg_dir> is  
         ImageProcessingToolbox-BF-Rel2.4.0. If using CrossCore® Embedded Studio 1.1.0 tool  
         chain, then add “Blackfin Image Processing Toolbox [2.4.0]” as an addin using system.svc.  

    6.   Allocate L3 memory for input and output image buffers.  

    7.   Add appropriate memory sections in LDF. (Refer to Memory Sections)  

    8.   Read the input into Input L3 buffer.  

    9.   Call the required primitive with appropriate arguments.  

    10. Output is available in output L3 buffer that is sent as an argument. 

I really would like know what i am missing in order to use the Blackfin Image Processing ToolBox.

Thanks in advance