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.

conflict between BIOS and XDC

Other Parts Discussed in Thread: CCSTUDIO

as  we know that  dap/bios will  generate  a cmd file,  but   xdctools will generate not  only  one  cmd file .

when  i  use the  bios  and the xdctools  separately ,they all worked  well.

but when i  write  and  *.cfg file  to  use xdctools   and  create  a  *.tcf file  with  dsp/bios ,   build the project  will  trigger  more than  twenty  errors . 

such  as :   error: symbol _BIOS_init   is  defined  multiple times:
            (&Project path) \xdcconfig\package\cfg\XDC_BIOS_x64Pcfg.o64P and  (&Project path)\Debug\\XDC_BIOScfg.obj

my cfg file  as follows:

var System = xdc.useModule("xdc.runtime.System");
var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global');
osalGlobal.runtimeEnv = osalGlobal.DSPBIOS;
osalGlobal.defaultMemSegId = "DDR2";

      I have read an example project  provied by TI :(C:\dvsdk_1_01_00_15\examples\video_encdec\evmDM6437), this project  use both the dsp/bios and xdctools, but  without  such problem  i  mentioned.     

               I 'm sure that the buildOption of my project and the video_encdec project    is   same(I have compared of them several times).

      Does anybody has ever faced this problem?  or  you may know how to config  it  ,please tell me .I really  appreciate  of you .  an example program such as "hello world " would be better .

  • Hello Aaron,

    Can you provide some more details of your environment? What versions of CCS/BIOS/XDCtools are you using? Is it possible to attach your project to this post so that we can take a look at what's going on (click on the "Options" tab for this post and then click on "Add/Update") ?

     

    Regards

    Amit

  • Aaron,

    I've had similar issues in the past.  Have you seen this post:

    http://e2e.ti.com/support/embedded/f/355/t/5285.aspx

    Perhaps it will help you.

    Best regards,
    Brad

     

  • the  demo has uploaded.

    the building enviroment is:

     

    target: dm6437

    ccs3.3

    dsp/bios 5.31.07

    xdc : 2.95.02

     

    Sorry to reply so later.

    XDC_BIOS.rar
  • thanks for your reply.  I have read that post,however, i still cann't  achieve my goal.

    the following is just part of that post:

    "

    Part 1 - RTSC Configuration Project

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

    1. Create a RTSC configuration project by clicking on "File -> New -> RTSC Configuration Project" . Do not select BIOS6 or any of the other products that show up in the RTSC configuration settings page  

    "

         well, i wonder to know the version of  CCS used here.    i use CCS3.3 here,  and i did't find where to   " creat a RTSC  configuration project  ".   there are only  two menu item : "Source file"、"DSP/BIOS configuration"  in the "File-New" menu item.

    I have find some articles about xdc and bios useage on wiki.ti web site:

    http://processors.wiki.ti.com/index.php/Using_XDCtools_with_BIOS_5     

    however this article is intentionally thin.  I still  cann't find the main reason ?

  • Hello Aaron,

    Sorry for the delay in responding to your query.

    The information that Brad had provided is relevant for CCS4 users. Since you are using CCS3.3 it is not relevant for you.

    I could reproduce your problem. Some background on this issue:

    'tcf' is the legacy content configuration format that is used by BIOS5. In the BIOS5 build flow 'tcf' scripts are evaluated using the legacy 'tconf' tool. 'tcf' has been superseded by the 'cfg' scripts which are more generalized and can be used to consume any RTSC content like - BIOS6, Codec Engine etc.. XDCtools ships a tool named 'configuro' that can be used to evaluate both 'tcf' and 'cfg' scripts. In your particular case you have both the 'tcf' and 'cfg' files in your project. In order for the build to succeed only the 'configuro' tool need to be invoked.  When both 'tconf' and 'configuro' are executed you will see linker errors. 

    This problem can be easily resolved by excluding the 'tcf' file from your build - right click on the tcf file and then select "File Specific Options...". Click on the "General" tab and then check the "Exclude file from build" checkbox. This will prevent the tconf tool from running. However the 'configuro' tool will evaluate both the 'cfg' and 'tcf' files and you should be able to build your application successfully.

    Regards

    Amit

     

     

  • Really appreciate of you . Followed  by your suggestion ,  i  have  compiled the program  with no error happened .

    While , May be i'm too careless,  before you told me , i've never find the answer in any book or any website.    whether  this is your  experience  or  can I find  it  explained  in any books (especially  TI's)?     

    thanks again.

  • Aaron Kelly said:

    While , May be i'm too careless,  before you told me , i've never find the answer in any book or any website.    whether  this is your  experience  or  can I find  it  explained  in any books (especially  TI's)?     

    Aaron,

    I didn't find the answer in any documents or wiki pages as well. Therefore I have added this information to the CCStudio FAQ. Thanks for pointing this out.

    Regards

    Amit