Hello all
I download the "C66x_jpegenc_02_02_00_01_ELF" and "JPEG Baseline Profile Encoder (v02.02.00) on C66x User's Guide.pdf" on web.
But, Description of "User's Guide" and "C66x_jpegenc_02_02_00_01_ELF" don't match.
I create a new project on ccs5.0.3 then add sourcecodes and build successful. Then debuging "TestAppEncoder.out" , it can not go main.
the key for the problem is as follow. In TestAppEncoder.c line 395
if ((handle = (IALG_Handle)ALG_create ( (IALG_Fxns *) &DMJPGE_TIGEM_IDMJPGE, // change to "(IALG_Fxns *)NULL" can go main (IALG_Handle) NULL, (IALG_Params *) ¶ms)) == NULL) { printf("\nFailed to Create Instance... Exiting for this configuration.."); continue; }
What's the problem?
Do you have a new sample , it can run on ccs5.0.3 correctly ?
Hi,
The test application of C66x JPEGENC uses a custom C66x platform which is included in the codec package itself. Not sure which platform was selected when you created your project. If it was not the right one, it can cause the issue you are observing.
We do not recommend creating the project from scratch. Instead, please import the project from the release package. If there is any issue during the project importing, compilation, and execution, please let us know and we can help fix it.
Thanks,
Hongmei
Hi Hongmei:
First, I tried to import the project. And it was transformed into ccs5 automatically(the original is ccs4). Messagebox "Update Managed Build Project" pop up, I click "Yes".Then, I changed Build Varibales Change BIOS_CG_ROOT from "C:\CCStudio_4.2.3\bios_6_31_00_18" to "C:\Program Files\Texas Instruments\bios_6_32_04_49" Change FRAMEWORK_ROOT from "C:\CCStudio_4.2.3\ccsv4\framework_components_3_20_02_29" to "C:\Program Files\Texas Instruments\framework_components_3_22_02_08" Change XDC_ROOT from "C:\CCStudio_4.2.3\xdctools_3_20_08_88" to "C:\Program Files\Texas Instruments\xdctools_3_22_01_21"Then, Add JPEGENC_ROOT "C:\Program Files\Texas Instruments\Codecs\C66x_jpegenc_02_02_00_01_ELF\packages\ti\sdo\codecs\jpegenc\App" to Resource->Linked Resources
Then, build project, found 34 errors Description Resource Path Location Type cannot find file "./configPkg/linker.cmd" TestAppEncoder C/C++ Problem errors encountered during linking; "TestAppEncoder.out" not built TestAppEncoder C/C++ Problem Linking failed. Check the Console window for details. TestAppEncoder Unknown C/C++ Problem no valid memory range(NULL) available for placement of ".bss" TestAppEncoder C/C++ Problem no valid memory range(NULL) available for placement of ".const" TestAppEncoder C/C++ Problem no valid memory range(NULL) available for placement of ".fardata" TestAppEncoder C/C++ Problem no valid memory range(NULL) available for placement of ".neardata" TestAppEncoder C/C++ Problem no valid memory range(NULL) available for placement of ".stack" TestAppEncoder C/C++ Problem no valid memory range(NULL) available for placement of ".switch" TestAppEncoder C/C++ Problem no valid memory range(NULL) available for placement of ".text" TestAppEncoder C/C++ Problem placement fails for object ".const", size 0xbe9 (page 0) TestAppEncoder C/C++ Problem placement fails for object ".stack", size 0x2000 (page 0) TestAppEncoder C/C++ Problem placement fails for object ".switch", size 0x48 (page 0) TestAppEncoder C/C++ Problem placement fails for object ".text", size 0xd360 (page 0) TestAppEncoder C/C++ Problem run placement fails for object ".bss", size 0x30 (page 0) TestAppEncoder C/C++ Problem run placement fails for object ".data", size 0x0 (page 0) TestAppEncoder C/C++ Problem run placement fails for object ".fardata", size 0x250 (page 0) TestAppEncoder C/C++ Problem run placement fails for object ".init_array", size 0x0 (page 0) TestAppEncoder C/C++ Problem run placement fails for object ".intDataMem", size 0x0 (page 0) TestAppEncoder C/C++ Problem run placement fails for object ".neardata", size 0x10 (page 0) TestAppEncoder C/C++ Problem run placement fails for object ".rodata", TestAppEncoder C/C++ Problem run placement fails for object ".rodata", size 0x0 (page 0) TestAppEncoder C/C++ Problem run placement fails for object "JPEGIENC_TI_cSect", size 0x0 (page 0) TestAppEncoder C/C++ Problem run placement fails for object "JPEGIENC_TI_dSect", size 0x0 (page 0) TestAppEncoder C/C++ Problem run placement fails for object "JPEGIENC_TI_uSect", size 0x0 (page 0) TestAppEncoder C/C++ Problem Unresolved symbol _sysbios_BIOS_start__E in file ./Obj/TestAppEncoder.obj .xdchelp /TestAppEncoder 0 C/C++ Problem Unresolved symbol _sysbios_family_c66_Cache_getMar__E in file ./Obj/TestAppEncoder.obj .xdchelp /TestAppEncoder 0 C/C++ Problem Unresolved symbol _sysbios_family_c66_Cache_setMar__E in file ./Obj/TestAppEncoder.obj .xdchelp /TestAppEncoder 0 C/C++ Problem Unresolved symbol _sysbios_family_c66_Cache_setSize__E in file ./Obj/TestAppEncoder.obj .xdchelp /TestAppEncoder 0 C/C++ Problem Unresolved symbol _sysbios_family_c66_Cache_wbInv__E in file ./Obj/TestAppEncoder.obj .xdchelp /TestAppEncoder 0 C/C++ Problem Unresolved symbol _sysbios_family_c66_Cache_wbInvAll__E in file ./Obj/TestAppEncoder.obj .xdchelp /TestAppEncoder 0 C/C++ Problem Unresolved symbol _sysbios_knl_Task_Object__create__ in file S ./Obj/TestAppEncoder.obj .xdchelp /TestAppEncoder 0 C/C++ Problem Unresolved symbol _sysbios_knl_Task_Params__init__ in file S ./Obj/TestAppEncoder.obj .xdchelp /TestAppEncoder 0 C/C++ Problem unresolved symbol Ipc_start, first referenced in ./Obj/TestAppEncoder.obj TestAppEncoder C/C++ Problem
Would you please give me a sample which can run on ccs5?
Since JPEG Encoder is verified with the specific set of tools as listed below, please use the same versions instead of changing to the newer versions.
bios_6_31_00_18
framework_components_3_20_02_29
xdctools_3_20_08_88
Please correct the above, clean the build, and then retry the compilation. If there are still errors, please provide the complete log from the very beginning.
Hi Hongmei,
I change the bios,framework and xdctools to the same version.
BIOS_CG_ROOT "C:\Program Files\Texas Instruments\bios_6_31_00_18"
FRAMEWORK_ROOT "C:\Program Files\Texas Instruments\framework_components_3_20_02_29"
XDC_ROOT "C:\Program Files\Texas Instruments\xdctools_3_20_08_88"
Then, Clean and rebuild, there are 6 errors as follow
#error xdc_target_types__ must be defined to name a target-specific header containing definitions of xdc_Int8, xdc_Int16, ... .xdchelp /TestAppEncoder 76 C/C++ Problem #error xdc_target_types__ must be defined to name a target-specific header containing definitions of xdc_Int8, xdc_Int16, ... .xdchelp /TestAppEncoder 76 C/C++ Problem #error xdc_target_types__ must be defined to name a target-specific header containing definitions of xdc_Int8, xdc_Int16, ... .xdchelp /TestAppEncoder 76 C/C++ Problem #error xdc_target_types__ must be defined to name a target-specific header containing definitions of xdc_Int8, xdc_Int16, ... .xdchelp /TestAppEncoder 76 C/C++ Problem #error xdc_target_types__ must be defined to name a target-specific header containing definitions of xdc_Int8, xdc_Int16, ... .xdchelp /TestAppEncoder 76 C/C++ Problem Linking failed. Check the Console window for details. TestAppEncoder Unknown C/C++ Problem
Double click the error, it pop up "Quick Fix" dialog, and prompted "var target = xdc.useModule('target');"
Details see attachment.1781.build_log.txt
According to the log, the "xdc.tools.configuro" command is not correctly executed due to the extra "ti.platform.custom66x" as highlighted below.
"... xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platform.custom66x -r whole_program -c "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000" ti.platform.custom66x "../JpegEncApp6678.cfg".
Can you please check your project settings to see if this extra "ti.platform.custom66x" can be removed?
Two other observations from your log:
1) the cgtool used for compilation is the default one coming with CCS: "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000". Can you please change that to "Code Generation Tool version 7.2.2" as specified in JPEGENC docs?
2) for RTSC "Products and Repositories", please have only items under "Other Repositories" checked as shown below.
Hi hongmei,
Problem resolved. Thanks a lot.
Hi I have exactly the same problem, but my problem does not solve.
I use CCS5.2.0.
Do you have any suggestion
Hi Lucifar,
Please clean and rebuild the test application, and provide the complete log from the very beginning of the compilation.