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.

Sys/Bios warning

Other Parts Discussed in Thread: SYSBIOS

Hi,

I have imported my  existing DSP BIOS project from CCS4 to CCS5. I am able to build the source code for the same, but with CCS5 I am getting following errors.  

#warn "The ti.sysbios.ipc.Event module is being deprecated. Please switch to ti.sysbios.knl.Event." 

#warn "The ti.sysbios.ipc.Semaphore module is being deprecated. Please switch to ti.sysbios.knl.Semaphore."

I want to know how I can supress these wannings. One of the forum I answers I have checked, that said you need to change the include option for this to work. But I dont know how I can do that in my project.

There is no change in the project source code. Only build environment is changed from CCS4 to CCS5.

Regards,

Sachin Deshmukh.

  • Hi Sachin,

    I expect you are using a different version of SYS/BIOS in CCS5. Can you look at the Project Properties->General->RTSC->Products and Repositories and see what version you are using.

    In your .cfg file, change

    xdc.useModule('ti.sysbios.ipc.Event') to

    xdc.useModule('ti.sysbios.knl.Event')

    In your source files change

    #include <ti/sysbios/ipc/Event.h>

    to

    #include <ti/sysbios/knl/Event.h>

    Do the same for Semaphore.

    Todd

  • Hi Todd.

     

    Following error were generated when I had changed the settings as per your advice. I am not getting any warnings now.

     Semaphore.supportsEvents must be set to 'false' when BIOS.libType == BIOS.LibType_Instrumented.  Set 'BIOS.libType = BIOS.LibType_Custom' to build a custom library or update your configuration. DSPBios.cfg /COVDSP_BiosConfig ti.sysbios.knl.Semaphore:supportsEvents XDCTools Configuration Marker.

    I am looking into it, but if you can help me get rid of this error.

     

    Regards,

    Sachin

     

  • Sachin,

    With the version of SYS/BIOS you are using now, the default is to use the instrumented library. The instrumented library has a relatively fixed configuration. This was to speed up build time and improve performance. In the instrumented library, Semaphore.supportsEvents being true is not allowed. If you want this feature, you must set following in your .cfg file

    BIOS.libType = BIOS.LibType_Custom;

    The SYS/BIOS files will be rebuilt within your project instead of using the instrumented library. Using the custom build actually has better performance and a smaller footprint (if you turn asserts and logging off in the BIOS module...refer to the documentation about this).

    Todd