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.

How include bios lib in linux



Hi all

 I am presently working on dsp bios in  ccs.BCACHE functions are working fine by inluding the bios3430 or biosDM642.a64P.

  But the same program is build in linux  it showing "BCACHE_wb()"is undefined and

1. My query is how to include that other library in linux? or what shall do for the BCACHE functions to work in linux.

 2.My requirement is to  "in library side (codec engine)i am writing a simple prgram that enables dsp cache and some  some bcache functions" how to overcome from this problem.

3.I know codec engine is taking care of cache coherence . but i wanted to test bcahe functions in linux (dsp code) side. please help

 

 

Thanks & regards

suresh 

  • I have a clarifying question for you, just so that I am clear on what you are asking.

    Are you requesting information on how to build a DSP executable using DSP/BIOS on a LInux host machine, where the code generation tools and DSP/BIOS header and library files are on a Linux Host machine?

    If so, you can download DSP/BIOS for a Linux Host from the Target Content extranet site here.  In addition, you can obtain the Code Generation Tools for a Linux Host here.

  • Hi,

                I am able to use BCACHE api's in CCS by including biosDM420.l64p.

    I am building my codecs in codec engine and i want to use BCACHE API's in my application side. How can i use it? 

    When i give my processor as 64P in codec engine it is taking rts64plus.lib. If i want to use some other library which the C64P is not including how can i do that? 

    Thanks and Regards,

    SKCV

  • sureshkumar said:
    I am building my codecs in codec engine and i want to use BCACHE API's in my application side. How can i use it? 

    Just to be clear, note that BCACHE only applies to DSP applications, so when you say application I am assuming you mean your codec engine DSP executable. In general if you are building a DSP/BIOS project such libraries should already be included by the generated BIOS cmd file, so there may be something else going wrong here with your build process in Linux.

    sureshkumar said:
    When i give my processor as 64P in codec engine it is taking rts64plus.lib. If i want to use some other library which the C64P is not including how can i do that? 

    You can add an arbitrary library to your DSP executable build with the -l option (or --library) in the linker stage, so you would want to add -l biosDM420.l64p to your linker command file, or to the command you use to invoke the linker.

  • Thank u Bernie Thompson . just now i sorted that problem thank u very much...

    Please tell me how to generate map file in linux for my codec.

      * Just i want to know where exactly buffers are sitting. i know how to generate map file in ccs but i dont know in linux.

           please tell me the commands and wher exactly it to be given(either in make file or in cfg).

     Thanks&Regards

    suresh.

     

  • I am glad to hear the issue was resolved, as to the map file you just need to add --map_file=yourmapfilename to the linker command invocation or to the linker command file, this should cause the linker to generate the map file just like it does in CCS.

  • Hello sir i didn't get your answer. linker command file means tcf or tci or link.cmd?

    so if i want  to  name the map file as "h264_memory_map".

    --map= h264_memory_map  this is sufficient?

  • The linker command file is the .cmd file, the tcf and tci are BIOS configuration files.

    sureshkumar said:
    so if i want  to  name the map file as "h264_memory_map".

    --map= h264_memory_map  this is sufficient?

    That is right, though it may add a .map extention for you on the file name.

  • I tried to give the same --map=mapfile name in link.cmd file in my servers side but i did not get anything.  Can you please let me know a little bit closrly about this. This is very important for me. I am not using any .cmd files other than the tci and tccf bios configuration files. the link.cmd file in which i gave what you said has nothing and i gave waht u said in that...

    Please help me in this issue...

    Thanks and regards,

    SKCV.

  • The option Bernie mentioned was --map_file not --map...  Please read the fine manual for more details.  Ch 7 covers the linker.