TI中文支持网
TI专业的中文技术问题搜集分享网站

dm6442有关video_copy.cfg的配置问题?

这是一个比较老的DVEVM版本,合众达dvevm_1_00_00_32,其中server端的video_copy.cfg 的配置如下:(后面附错误)请问里面的

Program.main = Program.system = null;该如何正确赋值?

video_copy.cfg:

/* set up OSAL */

var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global');
osalGlobal.runtimeEnv = osalGlobal.DSPLINK_BIOS;

/* get various codec modules; i.e., implementation of codecs */
var VIDDEC_COPY = xdc.useModule('codecs.viddec_copy.VIDDEC_COPY');
var VIDENC_COPY = xdc.useModule('codecs.videnc_copy.VIDENC_COPY');

/*
* ======== Server Configuration ========
*/
var Server = xdc.useModule('ti.sdo.ce.Server');
Server.threadAttrs.stackSize = 2048;
Server.threadAttrs.priority = Server.MINPRI;

Server.algs = [
{name: "viddec_copy", mod: VIDDEC_COPY, threadAttrs: {
stackSize: 4096, stackMemId: 0, priority: Server.MINPRI + 1}
},
{name: "videnc_copy", mod: VIDENC_COPY, threadAttrs: {
stackSize: 4096, stackMemId: 0, priority: Server.MINPRI + 1}
},
];

/*
* Note that we presume this server runs on a system with DSKT2 and DMAN3,
* so we configure those modules here.
*/

/* we can use DMA in certain codecs! */
VIDENC_COPY.useDMA = true;

/*
* ======== DSKT2 (XDAIS Alg. memory alocation ) configuration ========
*/
var DSKT2 = xdc.useModule('ti.sdo.fc.dskt2.DSKT2');
DSKT2.DARAM0 = "DDRALGHEAP";
DSKT2.DARAM1 = "DDRALGHEAP";
DSKT2.DARAM2 = "DDRALGHEAP";
DSKT2.SARAM0 = "DDRALGHEAP";
DSKT2.SARAM1 = "DDRALGHEAP";
DSKT2.SARAM2 = "DDRALGHEAP";
DSKT2.ESDATA = "DDRALGHEAP";
DSKT2.IPROG = "DDRALGHEAP";
DSKT2.EPROG = "DDRALGHEAP";
DSKT2.DSKT2_HEAP = "DDR";

DSKT2.DARAM_SCRATCH_SIZES = [ 1024, 1024, 0,0,0,0,0, /* … */ 0 ];
DSKT2.SARAM_SCRATCH_SIZES = [ 1024, 1024, 0,0,0,0,0, /* … */ 0 ];

print( Program.name + " .cfg> Warning: DSKT2 scratch sizes may be " +
"inappropriate for optimal allocation." );

/* turn debugging on explicitly for DSKT2 */
DSKT2.debug = true;

/*
* ======== DMAN3 (DMA manager) configuration ========
* We assume PaRams 0..95 are taken by the Arm drivers. We reserve
* all the rest, up to 127 (there are 128 PaRam sets on DM6446).
* DMAN3 takes TCC's 32 through 63 (hence the High TCC mask is 0xFFFFFFFF
* and the Low TCC mask is 0).
* TODO:H when we sync up with Arm driver writers we should review
* these numbers.
*/
var DMAN3 = xdc.useModule('ti.sdo.fc.dman3.DMAN3');
DMAN3.heapInternal = "L1DHEAP";
DMAN3.heapExternal = "DDR";

DMAN3.paRamBaseIndex = 96;
DMAN3.numPaRamEntries = 32;
DMAN3.tccAllocationMaskH = 0xffffffff;
DMAN3.tccAllocationMaskL = 0x00000000;

/* turn debugging on explicitly for DMAN3 */
DMAN3.debug = true;

Program.main = Program.system = null;

主要错误

codecs.videnc_copy.close() …
ti.sdo.ce.osal.close() …
error: xdc.cfg.Program: "/home/feng/dvevm_1_00_00_32/xdc_3_00_02/packages/xdc/runtime/package.xs", line 53: xdc.cfg.Prog ram : target modules are present, but Program.system == null
js: "/home/feng/dvevm_1_00_00_32/xdc_3_00_02/packages/xdc/cfg/Main.xs", line 163: exception from uncaught JavaScript thr ow: Error: Configuration failed!
"/home/feng/dvevm_1_00_00_32/xdc_3_00_02/packages/xdc/xs.js", line 144
gmake: *** [package/cfg/video_copy_x64Pcfg_c.c] Error 1
gmake: *** Deleting file `package/cfg/video_copy_x64Pcfg_c.c'
gmake: *** [package/cfg/video_copy_x64Pcfg_c.c] Deleting file `package/cfg/video_copy_x64Pcfg.cmd'
gmake: *** [package/cfg/video_copy_x64Pcfg_c.c] Deleting file `package/cfg/video_copy_x64Pcfg.s62'
make: *** [all] Error 2
[root@localhost video_copy]#

Chris Meng:

你好,

看看下面的论坛讨论是否对你有所帮助。

https://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/99/p/7021/27228#27228

赞(0)
未经允许不得转载:TI中文支持网 » dm6442有关video_copy.cfg的配置问题?
分享到: 更多 (0)