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.

Error during running H264 HP Encoder in release mode !!!! .....

Other Parts Discussed in Thread: SYSBIOS, TMS320C6678

Hi ,

I am using the C6678 evm for running the H264 HP Encoder.

CCS v5.3 on linux ubuntu 12.04 lts.

I tried to run the H264 HP encoder in debug mode I got the output.

But when I tried to run in release mode I am getting different type of errors -

INTERNAL ERROR: /opt/ti/ccsv5/tools/compiler/c6000_7.4.1/bin/lnk6x aborted

This is a serious problem.  Please contact Customer
Support with this message and a copy of the input file
and help us to continue to make the tools more robust.

I didn't include any linker cmd file but it is showing the errors in linker.cmd file which is present in debug folder .

----------------------------- ......

 
Building target: h264hpvenc_ti_c66x.out
Invoking: C6000 Linker
"/opt/ti/ccsv5/tools/compiler/c6000_7.4.1/bin/cl6x" -mv6600 --abi=eabi -Ooff -g --define="C6600" --define=xdc_target_types__=ti/targets/std.h --define=xdc_target_name__=C66 --display_error_number --diag_warning=225 -z -m"h264hpvenc_ti_c66x.map" -i"/opt/ti/ccsv5/tools/compiler/c6000_7.4.1/lib" -i"/opt/ti/ccsv5/tools/compiler/c6000_7.4.1/include" -i"/opt/ti/Codecs/C66x_h264hpvenc_01_00_00_01_ELF/packages/ti/sdo/codecs/h264hpvenc/Lib" --reread_libs --define=6600 --warn_sections --rom_model -o "h264hpvenc_ti_c66x.out" -l"./configPkg/linker.cmd"  "./C66X/h264hpvenc_ti_shmemmanager.obj" "./C66X/h264hpvenc_ti_mcIpc.obj" "./C66X/h264hpvenc_ti_edmaConfig.obj" "./C66X/h264hpvenc_ti_GateMPBarrier.obj" "./Common/h264hpvenc_ti_testwrapper.obj" "./Common/h264hpvenc_ti_testapp.obj" "./Common/h264hpvenc_ti_mc_api.obj" "./Common/h264hpvenc_ti_config.obj" "./Common/h264hpvenc_ti_buffermanager.obj" "./Common/alg_malloc.obj" "./Common/alg_create.obj" -lh264hpvenc_ti.le66 -l"libc.a"
<Linking>
"./configPkg/linker.cmd", line 346: warning #10097: memory range not found:
   ERAM on page 0
"./configPkg/linker.cmd", line 346: error #10265: no valid memory range(null)
   available for placement of ".external_cached_mem"
"./configPkg/linker.cmd", line 346: error #10099-D: program will not fit into
   available memory.  run placement with alignment fails for section
   ".external_cached_mem" size 0x19012507
"./configPkg/linker.cmd", line 341: warning #10097: memory range not found:
   ERAM on page 0
"./configPkg/linker.cmd", line 341: error #10265: no valid memory range(null)
   available for placement of ".inputbuffer_mem"
"./configPkg/linker.cmd", line 341: error #10099-D: program will not fit into
   available memory.  run placement with alignment fails for section
   ".inputbuffer_mem" size 0x23dc120
"./configPkg/linker.cmd", line 347: warning #10097: memory range not found:
   ERAM on page 0
"./configPkg/linker.cmd", line 347: error #10265: no valid memory range(null)
   available for placement of ".shared_mem_DDR2"
"./configPkg/linker.cmd", line 347: error #10099-D: program will not fit into
   available memory.  run placement with alignment fails for section
   ".shared_mem_DDR2" size 0x2000000
"./configPkg/linker.cmd", line 340: warning #10097: memory range not found:
   ERAM on page 0
"./configPkg/linker.cmd", line 340: error #10265: no valid memory range(null)
   available for placement of ".outPutBuffMem"
"./configPkg/linker.cmd", line 340: error #10099-D: program will not fit into
   available memory.  run placement with alignment fails for section
   ".outPutBuffMem" size 0xc00000
"./configPkg/linker.cmd", line 324: warning #10097: memory range not found:
   ERAM on page 0
"./configPkg/linker.cmd", line 324: error #10265: no valid memory range(null)
   available for placement of ".const"
"./configPkg/linker.cmd", line 324: error #10099-D: program will not fit into
   available memory.  placement with alignment fails for section ".const" size
   0xdf36
"./configPkg/linker.cmd", line 337: warning #10097: memory range not found:
   ERAM on page 0
"./configPkg/linker.cmd", line 337: error #10099-D: program will not fit into
   available memory.  run placement with alignment fails for section ".tables"
   size 0x0
"./configPkg/linker.cmd", line 342: warning #10097: memory range not found:
   ERAM on page 0
"./configPkg/linker.cmd", line 342: error #10099-D: program will not fit into
   available memory.  run placement with alignment fails for section
   ".output_buffer" size 0x0
"./configPkg/linker.cmd", line 343: warning #10097: memory range not found:
   ERAM on page 0
"./configPkg/linker.cmd", line 343: error #10099-D: program will not fit into
   available memory.  run placement with alignment fails for section ".ERAM"
   size 0x0
"./configPkg/linker.cmd", line 344: warning #10097: memory range not found:
   ERAM on page 0
"./configPkg/linker.cmd", line 344: error #10099-D: program will not fit into
   available memory.  run placement with alignment fails for section
   ".extMem_Pool" size 0x0
"./configPkg/linker.cmd", line 350: warning #10097: memory range not found:
   ERAM on page 0
"./configPkg/linker.cmd", line 350: error #10099-D: program will not fit into
   available memory.  placement with alignment fails for section "xdc.meta"
   size 0x138
ELFLNK/build.c:2515:internal fatal error #10251:
   ("xdc.meta:h264hpvenc_pe66.oe66")

INTERNAL ERROR: /opt/ti/ccsv5/tools/compiler/c6000_7.4.1/bin/lnk6x aborted


This is a serious problem.  Please contact Customer
Support with this message and a copy of the input file
and help us to continue to make the tools more robust.


>> Compilation failure
gmake: *** [h264hpvenc_ti_c66x.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

............................

I made the required modifications before running in release mode,(like set as BulidConfiguration->SetActive->Release and in RTSC configuration also)

Though doing all this required changes, I am getting this above errors.

Please tell me the solution for this .

-Studinstru

  • Hi Studinstru,

    I haven't tried using CCS5.3 on Ubunto but I tried using CCS5.2  on Windows and would like to share some changes in the project properties that I had to make in order to build without errors in "release" mode

    In Properties -> Build -> Variables tab, Please update paths EDMA3LLD_ROOT, FC_ROOT, IPC_ROOT, SYSBIOS_ROOT, XDAIS_ROOT accordingly with your system.

    In Properties -> Build -> File Search Path, please change library path (--search_path, -i) to "../../../../../Lib"

    In Properties -> Build -> Advanced Options -> Predifined Symbols please add in (--define)
    xdc_target_types__=ti/targets/std.h
    C6600
    xdc_target_name__=C66

    Properties -> Build -> Include Options please add --include path "../../../../../../../../../"

    Then clean project and build.

    Please let me know if these changes works for you if not I would try to build it on a Linux machine tomorrow

    Thanks,

    Paula

  • Hi paula,

    I made the required modification as you mentioned in your above post ,but still the same issue was there.

    I reinstall the .bin of this H264 HP Encoder and I GOT THE OUTPUT IN RELEASE MODE.

    Still I  have some doubt in running the HP Encoder (Performance related and generic) :

    1) I ran the HP Encoder in release mode by setting  all cores (core 0....core7(ncores=8)) through the configuration file of  encoder but still I am not getting good performance for that encoder ??

    2) When I tried to find out the cycles required to run the code and enable the MACRO  for getting the cycles the the same code is giving the error like _TSC_ENABLE() and _TSC_READ() as  undefined symbol ... and showing error ....How is the way to find out the number of cycles for encoding ???

    3) Whether the mentioned optimized code is  the only code which is available for public use (Encoder/Decoder) ??

    Please address my all above mentioned questions ....

    -Studinstru

  • Hi Studinstru,

    1) what is your input resolution?

    2) You are getting the error because tsc_h.asm is missing. Please see attached file. Please locate .asm file in the same folder in which h264hpvenc_ti_testapp.c is currently located (C66x_h264hpvenc_01_00_00_01_ELF\packages\ti\sdo\codecs\h264hpvenc\App\Client\Test\Src\Common). Then close the project in CCS, reopen, check that tsc_h.asm is there and recompile

    1513.tsc_h.asm

    3) Yes these are optimized codecs. Further optimizations are in process for H.264 HP enc which will be published in a near future.

    Thank you,

    Paula

  • Thanks Paula for your reply.

    But I am trying to run the HP H264 Encoder and Decoder on c6678 evm board.

    I am using different inputs for encoder as well as Decoder (704*480 ,1280*720,1920*1080(full HD),QCIF,CIF too) .

    But still I am not getting the accurate result as per the Datasheet/Release note.

    One thing to mention is that I am using the encoder as well as decoder code as it is (same as downloaded from the ti website) .

    I want to use both the codes for my application if they are achieving the mentioned performance in data sheet.

    Please mention the system configuration also to achieve the results as per data sheet.

    My system configuration is :

    OS    : UBUNTU 12.04 LTS (64 Bit)

    RAM:  4GB

    CCSv: 5.3

    HW :TMS320C6678 EVM

    Please let me know the modifications required to get this achievement .

    -Studinstru

  • Hi Studinstru,

    Roughly how much is difference in performance that you are getting compare to results in data sheet?

    Also, in order to compare apples with apples, in case of the encoder, you will need to enable same encoding tools and configuration paramaters (e.g CABAC/CAVLC, bitrate, VBR/CBR, GOP, etc) as the ones used for encoding in the data sheet. Similarly, for the decoder, please check that your input clips have similar features (GOP, tools, Profile/level, number of MVs, etc) as the ones use to profile in the the data sheet in order to get similar results. 

    Thank you,

    Paula

  • Hi Paula,

    AS per I come to know that the HP Decoder is not real time and it is giving 6 fps only .

    Also I tried to run the same with one input with b slice cabac and full hd,I got like 5 fps near about.

    Please tell me when the optimized codec Ti will release ??

    -Studinstru

  • Hi Studinstru, could you please confirm for which resolution you are getting 5 or 6 fps?

    thank you,

    Paula 

  • Its fullHD 1920 X1080

  • It is delay an issue in your application?