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.

cache usage with sysbios 6.31

Other Parts Discussed in Thread: SYSBIOS

Hi all,

I was using CCS 4.0 with C6472 EVM and using DSP/Bios 5.41.03.17 for accessing cache api's (BCACHE_setSize, BCACHE_wbInvAll, BCACHE_setMar) in and my binary was in Coff format.

Recently I migrated to CCS V4.2.0.09000 with cgtools 7.2.0B2 and sysbios 6.3.04.27 for generating binary in ELF format also.I understand from the bios user guide and getting started guide that i need to use rtsc package to access cache api's in elf/coff mode.

I managed to build binary in coff mode using config file created by rtsc wizard.

I changed build setting from legacy coff to eabi(elf)

When i tried to build my binary,i am getting error "error: --abi=eabi not supported when producing TI-COFF output files
fatal error: cannot continue with specified options; aborting"

But I couldn't figure out how to use the same config file for building my binary in elf. Below I've pasted the config file i am using

--------------------------------------------------------------------------------------------------------------------------

/*
 *  ======== Binary.cfg ========
 *
 */
 
/*var System = xdc.useModule('xdc.runtime.System');*/
/*var SysStd = xdc.useModule('xdc.runtime.SysStd');*/
/* Configure SysStd to send System_printfs to standard out */
/*System.SupportProxy = SysStd;*/

/*var BIOS = xdc.useModule('ti.sysbios.BIOS');*/
/*var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');*/
/*var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');*/

/*
 * The BIOS module will create the default heap for the system.
 * Specify the size of this default heap.
 */
/*BIOS.heapSize = 0x2000;*/

/*var Task  = xdc.useModule ("ti.sysbios.knl.Task");*/


var Cache = xdc.useModule('ti.sysbios.family.c64p.Cache');
Cache.initSize.l2Size = Cache.L2Size_64K;

-------------------------------------------------------------------------------------------------------------------------

Any help in building my binary would be appreciated.

Regards,

Swami

 

 

  • Swami,

     

    Are you using makefiles or CCS projects? if you are using a CCS project you should be able to right click on your project and select build settings.  Then in the dialog that opens there is an item on the left that will be called CCS settings or something similar that will enable you to change some of the initial settings used when creating the project.  One of those should be for ABI.

    Regards,

    John

     

  • John,

    I've already changed setting of output format from legacy coff to eabi(elf) in  ccs build properties and runtme lib is changed from rts64plus.lib to rts64plus_elf.lib.

    I tried with this changes before and it didnt work,getting the same error.

     

  • After changing the output format from Legacy COFF to EABI in CCS Build properties, did you also change the RTSC target from ti.targets.C64P to ti.targets.elf.C64P? Please see the attached screenshot. After you modify the target to ti.targets.elf.C64P, you need to re-select the appropriate platform. I was able to create a RTSC project using one of the SYSBIOS example templates, build it for COFF ABI and then change to EABI and get it to build.