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 5.5.0: Flags disappear from "Set additional flags" dialog

Genius 12900 points

Hi,

Using CCS 5.5.0.00077 I came across something I believe is a bug relating to the "Add additional flags" dialogs. I use an ARM Cortex-M device, so the option is found uder

  • Project > Properties > ARM Compiler > Set Additional Flags ...
  • Project > Properties > ARM Linker > Set Additional Flags ...

If you add a flag without surrounding quotes ("), the flags are added to the compiler/linker options, which is expected. However, they do not show up the next time you open the dialog, which makes them difficult to remove again.

The only way I found to be able to add and remove additional compiler/linker flags was to surround them with quotes as shown in the image.

Br,
TIABO

  • I am able to reproduce this as well in both CCSv5.5 and the beta 2 release of CCSv6.  I have filed SDSCM00049332 to track this.

    Regards,

    John

  • Ok I played with this some more as I was filling out the defect.  What happens is when you enter in the additional option it tries to recognize it and then the option gets set in the correct location in the options dialog.  In this case if you go to ARM Compiler -> Advanced Options -> Diagnostic Options you will see that 16012 has been set.  When you add the quotes it fails to recognize the option and thus it only shows up in the dialog.   I will keep the defect open but will modify it to track making the behavior consistent and see if we can't put some text in there that says what will happen.

  • Seeing that the option remained in the "list of all the compiler/linker options", I suspected that this was the case, but I couldn't find where my option had gone :)

    A message saying that options will/may be placed "where they belong" will perhaps do the trick.

    An alternative, but perhaps more complex solution, is to let options added to the "additional flags" dialogue stay there AND let them be found in their "correct" options pane. If you remove it one place, it will disappear from the other as well.

    Br,
    TIABO

  • Is this bug resolved? 

    I have a project in which I removed an additional flag from the .cproject file (text editor) and reopened. The flag is gone from the "Summary of flags set:" text but my compile is still recognizing it as set.

  • Removing the flag from .cproject actually worked. I got confused.