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.

convert DSP/BIOS program into a SYS/BIOS program and using the SYS/BIOS version that comes with CCS 5.2.

    I am trying to convert DSP/BIOS program into a SYS/BIOS program and using the SYS/BIOS version that comes with CCS 5.2.

In DSP/BIOS program(CCS 3.3), there is BUFFER MANAGER MODULE, and under that EVENT BUFFER is configured STATICALLY. Now i need to configure the BUFFER MANAGER MODULE in CCS 5.2 statically,but there is no such module available in CCS 5.2. how can i find it?

This is how i have used it in my program  :  BUF_free(&MYBuffer, DataPkt);

Error given was :  BUF_free is undefined,MYBiffer is undefined.

please help me to configure this BUFFER MANAGER satatically in CCS 5.2..

  • Sunil,

    From your description, I'm assuming that you don't really need to convert to using SYS/BIOS and that you simply want to upgrade to CCS 5.2 and continue using DSP/BIOS.

    If that is the case, then CCS 5.2 provides an import utility specifically for this operation.

    Under the 'File' menu, select 'Import'. Within the 'Import' dialog, open the 'Code Composer Studio' sub-path and select the 'Legacy CCSv3.3 Projects' option.

    The tool will then guide you through the process.

    Hopefully, you'll end up with a converted project that will then build against the DSP/BIOS product delivered with CCS 5.2.

    For help using the project import wizard, click on the '?' icon in the import tool's dialog box.

    Alan

  •  Alan,

       i tried doing it, but still it was throwing errors .So what i am doing now is ,i tried to port the whole file by changing the API's such as, TSK_sleep to Task_sleep,QUE_PUT to Queue_put.. like wise.

    and i am using HEAP BUFFER(SYS/BIOS ,CCS 5.2)  insted of BUFFERS as found in DSP/BIOS in CCS 3.3.I faced no problem with that.

    but now i can't find the "BUF_maxbuff(buf)" in HEAP BUFFER(SYS/BIOS ,CCS 5.2) . can guide me on this. please

    sunil.

  • Sunil,

    I understand you to mean that you are using 'HeapBuf' as your equivalent to the legacy 'BUF' module.

    Below is the implementation of BUF_maxbuff() as provided in our legacy support code:

    /*  
     *  ======== BUF_maxbuff ========
     */
    Uns BUF_maxbuff(BUF_Handle buf)
    {
        HeapBuf_ExtendedStats stats;

        /*
         *  The total number of allocated buffers at any one point in time will be
         *  written to the stats struct.
         */
        HeapBuf_getExtendedStats((HeapBuf_Handle)buf, &stats);

        return (stats.maxAllocatedBlocks);
    }

    Apparently the 'maxAllocatedBlocks' field of the HeapBuf_ExtendedStats structure is the equivalent to the return value of the legacy BUF_maxbuff() API.

    There are other examples of legacy-to-SYS/BIOS translation functions you might need in the packages/ti/bios directory of your SYS/BIOS installation.

    Alan

  • Refer to http://e2e.ti.com/support/embedded/bios/f/355/p/243008/850120.aspx#850120 for details about getting stats with HeapBuf.

  • Alan

       Thank you,

    Sunil