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.

CCS/TMS320C6657: optimize_with_debug is deprecated in CCS v9.1, how can I removed it to avoid warnings.

Expert 2875 points
Part Number: TMS320C6657
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Hi,

We are migrating from CCS v6.2 to v9.1 and find a lot of warnings.

1) optimize_with_debug is deprecated in CCS v9.1, how can I removed it to avoid warnings.

2) remark #2142-D: comparison between signed and unsigned operands.

3) line 20131: warning: statement is unreachable with this TI code:

/* Object__get__S */
xdc_Ptr ti_sysbios_knl_Clock_Object__get__S(xdc_Ptr oa, xdc_Int i)
{
     if (oa) {
          return ((ti_sysbios_knl_Clock_Object__ *)oa) + i;
     }

     if (ti_sysbios_knl_Clock_Object__count__C == 0) {
          return NULL;
     }

// the following line is flagged as unreachable in app_pe66.c which is generated by CCS tool.

     return ((ti_sysbios_knl_Clock_Object__ *)ti_sysbios_knl_Clock_Object__table__C) + i; 
}

Thank you.

Steve 

  • Hi,

    What version of SYS/BIOS are you using? What compiler version did you use in CCS v6.2 and which are you trying to use in v9.1?

    Are you against using the older compiler version in CCS 9.1? I expect that would be easiest route to get rid of the warnings. If you want to use the newer compiler, you'll need to move to a newer SYS/BIOS (which has changes to avoid these warning/remarks).

    Compilers are here: software-dl.ti.com/.../download.htm

    Todd
  • Hello,

    you can suppress any warning messages using properties like on a screen shot below:

    ad 1) check your linker command file and remove this option
    ad 2) take care about this issue
    ad 3) this piece of code is automatically generated and I recommend a --diag_suppress for this particular source file.