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.

Compiler error "F021 Flash API requires GCC language extensions enable"

Other Parts Discussed in Thread: CONTROLSUITE

Hi,

When we added F021 Flash Library into our M3 code running on F28M35x,

We got this compiling error:

"error F021 Flash API requires GCC language extensions enabled"

How do we Enable this GCC language extension?

Thanks,

Tim

  • Tim,

    TI ARM compiler V5.2 (and newer versions) enable GCC extensions by default and the compiler does not generate the symbol __GNUC__ anymore.  Types.h file (available at C:\ti\controlSUITE\device_support\f28m35x\vx\F28M35x_common\include\FlashAPI) checks for this symbol to make sure that GCC extensions are enabled.  

    Attached Types.h file is modified to check for the __GNUC__ symbol only for the compilers that generate this symbol.  Try using it and let me know.  We will update this file in Controlsuite as well in the next release.

    Thanks and regards,
    VamsiTypes.h 

  • Thanks, Vamsi.

    It works.

    PS:

    And, \FlashAPI\Types.h  also exist under another location....

    C:\ti\controlSUITE\device_support\f28m35x\v206\MWare\inc\FlashAPI\Types.h

  • Tim,

    Good to know that it works.
    Yes, both M3 and C28x files will be updated in next controlsuite release.

    Thanks and regards,
    Vamsi