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.

Warning about deprecated API when building SYS/BIOS .cfg file

Other Parts Discussed in Thread: SYSBIOS

Hi

I have a SYS/BIOS .cfg file that is giving a build warning:

warning: xdc.cfg.Program: "C:/ti/bios_6_35_04_50/packages/ti/bios/package.xs", line 58: ti.bios : Support for the legacy DSP/BIOS 5.x APIs has been deprecated. These APIs may not be supported in a future release of SYS/BIOS. Please update your code to use the equivalent SYS/BIOS APIs.

warning: ti.bios.MEM: "C:/ti/bios_6_35_04_50/packages/ti/bios/MEM.xs", line 360: ti.bios.MEM : Cannot change xdc.cfg.Program.stack. Parameter changed elsewhere

I have reduced the code in the .cfg file to the following and I still get the warning:

xdc.loadPackage('ti.bios.tconf');

bios.TSK.create("TSK_DRV");

bios.TSK.instance("TSK_DRV").fxn = "taskDrv";

bios.TSK.instance("TSK_DRV").stackSize = 2048;

bios.TSK.instance("TSKC_DRV").priority = 6;

bios.TSK.STACKSIZE = 2048;

bios.MEM.ARGSSIZE = 0;

Program.global.sysMinBufSize = 0x8000;

Program.stack = 8192;

I guess it is the last line that is causing the warning. Please will you suggest how I can fix it?

Best regards

David

  • David,
    the warning refers to any usage of DSP/BIOS packages and modules. You are using 'ti.bios.tconf' and its modules TSK,  and MEM. To avoid the warning and to be able to use newer releases of SYS/BIOS, you'll need to switch to SYS/BIOS packages and modules, such as 'ti.sysbios', Task and Memory.
    In the directory 'docs' of your SYS/BIOS installation, you can find "Bios Legacy App Note". Section 8.1 Updating the Configuration Files gives you an example of steps that you need to take to switch to the new configuration API.