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.

DSPBIOS BUF Manager - Access statically defined Buffers

Hi!

I have read the section of the DSP/BIOS User´s guide about "Referencing Static DSP/BIOS Objects".  My question is extremely simple - still i could not figure out, how to USE a buffer, that was statically defined within the DSPBIOS BUF Manager. The generated header file declares a BUF_Obj in the Form " extern far BUF_Obj mybuffer ; " ,  now how to write data of a given data type into this buffer?

Thanks for the help and kind regards!

  • Franz,

    To first learn about DSP/BIOS, please go to the TI Wiki Pages and find the article C6000 Embedded Design Workshop Using BIOS. There is an archived version of the workshop for DSP/BIOS 5.41, and I am pretty sure it covers the BUF module in particular.

    To fully understand DSP/BIOS, you will need to read the entire User's Guide and not just a single section. For example, There is a section titled "Memory Allocation with the BUF Module". Also, you will want to review the relevant functions in the DSP/BIOS API Reference Guide, such as BUF_create and BUF_alloc.

    Regards,
    RandyP

     

    If you need more help, please reply back. If this answers the question, please click  Verify Answer  , below.

  • Hi again,

    So after reading various documents a bit more in depth, i found also this post

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

    where you tell that the BUF Manager is not used for "static buffers" , and  suggest the #pragma DATA_SECTION variant.

    Well, so i wanted to go this way and add a userdefined section within a self-defined linker command file. I created a new .cmd file that adds a new section to the configuration and also includes the automatically generated .cmd  file via

    -l autocfg.cmd

    as suggested in the DSPBIOS user guide.

    However, in the user`s guide it is also mentioned to

    "....put a checkmark in the User .cmd file for non-DSP/BIOS
    segments box in the Properties dialog for the MEM Manager".

    Apart from the fact I did not find a checkmark with exactly this name in the graphical tool: Do i have to write all the existing "User" sections (.text, .cio, .pinit, cinit,......?) also into my new .cmd file? Why would i want to do this? I just want to add ONE(!)  additional section...

    Maybe i miss some point (or the proper checlmark in my Version of DSPBIOS 5.xx )

    Any help would be very appreciated!

  • Franz,

    What is the xx for your version of DSP/BIOS 5? There were some changes between older and newer versions.

    Which version of CCS are you using, CCSvX.Y?

    Regards,
    RandyP

  • Hi Randy,

    My DSPBIOS Version is 5.40.02.22 and i use CCS V. 4.01

    Regards,

    Franz

    //EDIT: Corrected CCS version from 4.02 to 4.01

    //EDIT2: Ok, so placing varibales in a self - defined section actually works, the key was using the procedure described in this post (using a self-defined .cmd file, excluding this one from building, but specifiying it explicitely at the linker options)

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/126190.aspx

    So - is this THE standard way to do it or just a workaround for my version of CCS?. Why does my first approach not work?