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.

Dm6467 codec engine example failed in running

Can any one gives a suggestion on this?

[Issue] Dm6467 codec engine example failed in running

[Description]

     The prebuild codec engine example runs successfully, while the application file built by me failed.

[Test step]

1.Copy files under directory /opt/dvsdk_1_40_02_33/codec_engine_2_10_02/examples/apps/sanity_test/davinci/DM6467/
    app.out video_copy.x64P to the NFS and run ./app.out on the target.

2. Build the project under directory and copy below file to NFS, /opt/dvsdk_1_40_02_33/codec_engine_2_10_02/examples/ti/sdo/ce/examples/servers/video_copy/evmDM6467/video_copy.x64P
/opt/dvsdk_1_40_02_33/codec_engine_2_10_02/examples/ti/sdo/ce/examples/apps/video_copy/dualcpu/evmDM6467/app.out

then run ./app.out on the target

3. Replace the app.out in step 2 by by the one  in step 1,then run ./app.out on the target

[Result]

1.Pass

# ./app.out
App-> Application started.
[DSP] @0x0000024e:[T:0x00000000] servers.video_copy.evmDM6467 - main> Welcome t.
CEapp-> Allocating contiguous buffer for 'input data' of size 1024...
CEapp-> Allocating contiguous buffer for 'encoded data' of size 1024...
CEapp-> Allocating contiguous buffer for 'output data' of size 1024...
App-> Processing frame 0...
App-> Processing frame 1...
App-> Processing frame 2...
App-> Processing frame 3...
App-> Processing frame 4...
App-> Finished encoding and decoding 4 frames
App-> Application finished successfully.

2. Failed

# ./app.out
video copy begin
App-> Application started.
@0x000ca2f4:[T:0x40946b60] OP - Processor_create_d> Loading and starting DSP se
@0x000ca4b2:[T:0x40946b60] OP - Processor_delete_d> Closing remote transport FA.
@0x000ca54c:[T:0x40946b60] OP - Processor_delete_d> Stopping DSP FAILED, status0
@0x000ca5cc:[T:0x40946b60] OP - Processor_delete_d> Closing pool FAILED, status0
@0x000ca62d:[T:0x40946b60] OP - Processor_delete_d> Detaching from DSP FAILED, 0
@0x000ca68b:[T:0x40946b60] OP - Processor_delete_d> Destroying DSP FAILED, stat0
@0x000ca70e:[T:0x400176d8] CE - rserverOpen: can't start 'video_copy.x64P'; Prod
CEapp-> ERROR: can't open engine video_copy
App-> Application FAILED.

3. Pass the same as step 1.

 

  • Here are logs by setting CE_DEBUG=3

    1.PASS

    @1,021,236us: [+0 T:0x40946b60 S:0x40946514] OM - Memory_alloc> Enter(0xe0)
    @1,021,352us: [+0 T:0x40946b60 S:0x40946514] OM - Memory_alloc> return (0x3f7e0)
    @1,021,508us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> Adding DSP segment #0 to Link configuration: name='DDR2', startAddress=0x8fa00000, sizeInBytes=0x400000, shared=1
    @1,021,681us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> Adding DSP segment #1 to Link configuration: name='DSPLINKMEM', startAddress=0x8fe00000, sizeInBytes=0x100000, shared=1
    @1,021,847us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> Adding DSP segment #2 to Link configuration: name='RESET_VECTOR', startAddress=0x8ff00000, sizeInBytes=0x80, shared=0
    @1,022,009us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> Adding DSP segment #3 to Link configuration: name='DDRALGHEAP', startAddress=0x88000000, sizeInBytes=0x7a00000, shared=0
    @1,022,170us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> DOPOWERCONTROL was=0; now=0
    @1,024,102us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> Attaching to DSP PROC...
    @1,031,529us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> Opening MSGQ pool...
    @1,031,926us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> Loading video_copy.x64P on DSP (1 args)...
    @1,053,496us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> Starting DSP PROC...
    @1,063,275us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> Opening remote transport...
    @1,063,682us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> return (1)

    2.Failed

    @1,158,330us: [+0 T:0x40946b60 S:0x40946514] OM - Memory_alloc> Enter(0xe0)
    @1,158,443us: [+0 T:0x40946b60 S:0x40946514] OM - Memory_alloc> return (0x407e0)
    @1,158,570us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> Adding DSP segment #0 to Link configuration: name='DDR2', startAddress=0x8fa00000, sizeInBytes=0x400000, shared=1
    @1,158,737us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> Adding DSP segment #1 to Link configuration: name='DSPLINKMEM', startAddress=0x8fe00000, sizeInBytes=0x100000, shared=1
    @1,158,900us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> Adding DSP segment #2 to Link configuration: name='RESET_VECTOR', startAddress=0x8ff00000, sizeInBytes=0x80, shared=0
    @1,159,059us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> Adding DSP segment #3 to Link configuration: name='DDRALGHEAP', startAddress=0x88000000, sizeInBytes=0x7a00000, shared=0
    @1,159,220us: [+2 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> DOPOWERCONTROL was=0; now=0
    @1,162,942us: [+7 T:0x40946b60 S:0x4094652c] OP - Processor_create_d> Loading and starting DSP server 'video_copy.x64P' FAILED, status=[0x80008008] (look for error code 'DSP_EBASE + 0x8' in dsplink*/packages/dsplink/gpp/inc/errbase.h)
    @1,163,162us: [+0 T:0x40946b60 S:0x4094650c] OP - Processor_delete_d> Enter (proc=0x407b8)
    @1,163,284us: [+2 T:0x40946b60 S:0x4094650c] OP - Processor_delete_d> Closing remote transport...
    @1,163,429us: [+6 T:0x40946b60 S:0x4094650c] OP - Processor_delete_d> Closing remote transport FAILED, status=0x80008002.
    @1,163,564us: [+2 T:0x40946b60 S:0x4094650c] OP - Processor_delete_d> Stopping DSP...
    @1,163,701us: [+6 T:0x40946b60 S:0x4094650c] OP - Processor_delete_d> Stopping DSP FAILED, status=0x80008000
    @1,163,828us: [+2 T:0x40946b60 S:0x4094650c] OP - Processor_delete_d> Closing pool...
    @1,163,964us: [+6 T:0x40946b60 S:0x4094650c] OP - Processor_delete_d> Closing pool FAILED, status=0x80008000
    @1,164,090us: [+2 T:0x40946b60 S:0x4094650c] OP - Processor_delete_d> Detaching from DSP...
    @1,164,227us: [+6 T:0x40946b60 S:0x4094650c] OP - Processor_delete_d> Detaching from DSP FAILED, status=0x80008000
    @1,435,960us: [+2 T:0x40946b60 S:0x4094650c] OP - Processor_delete_d> Destroying DSP... (object, that is)
    @1,436,095us: [+6 T:0x40946b60 S:0x4094650c] OP - Processor_delete_d> Destroying DSP FAILED, status=0x80008000
    @1,436,223us: [+0 T:0x40946b60 S:0x409464e4] OM - Memory_free> Enter(0x407e0, 0x0)

     

     

  • Forgot to say, I had already solved the problem by rebuild cmem, dsplink,combos.

     This is resulted from the old combos not rebuilt.