Hi,
I am trying to use bios in codec engine with a linux setup for DM6446. I started off with spraai6a (Creating a TMS320DM6446 Audio Encode Example Using XDC Tools) and the associated example source code. The example builds an audio encoder, audio server and the gpp linux app. The linux app links to the encoder .a470MV library. The questions I have are
1) How would I modify this setup to use bios in the codec engine? For e.g if I use a TSK_sleep() in the encoder process function, the C64P lib is built but the MVARM9 library cannot be built while the gpp app needs the .a470MV lib.
2) How can bios components be used in a library which will be used by an CE encoder/decoder? For e.g if I want to use clk prd or log_printf a tci file can be used to setup the trace or prd but how / where in the build chain does one specify that the tci file needs to be used for building the library?
3) Setting up clk so that CLK_getltime() and CLK_gethtime() can be used. The CE example samples don't load dm6446 specific params ( utils.loadPlatform("ti.platforms.evmDM6446"); ), instead they modify the generic platform.
var params = {
clockRate: 567,
catalogName: "ti.catalog.c6000",
deviceName: "DM6446",
regs: device_regs,
mem: mem_ext
};
utils.loadPlatform("ti.platforms.generic", params);
bios.CLK.RESETTIMER = 1;
bios.CLK.HIRESTIME = 1;
bios.CLK.ENABLEHTIME = 1;
bios.CLK.MICROSECONDS = 1000.0000;
bios.CLK.TIMERSELECT = "Timer 0";
bios.CLK.OBJMEMSEG = bios.DDR2;
bios.CLK.TIMMODE = "32-bit unchained";
Anything else needs to be set?
Thanks