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.

Error: Unknown Compiler, the file bm.h has to be expanded!



I'm running Code Composer Studio v4 Core Edition. When I want to include "bm.h" I get error "Unknown Compiler, the file bm.h has to be expanded!".Can you please suggest me what I should to do?

  • Hi Admir,

    You can go through the bm.h file itself for the answer. Especially this section:

    # ifndef DEBUG
    // Force inlining of function in release builds
    # define INLINE_FUNC PRAGMA(inline = forced)
    # else
    // Do not force inlining of function in debug builds
    # define INLINE_FUNC
    # endif
    // Found Texas Instruments MSP430 CPU (V2)
    # define _CPU_TID_ _TI_MSP430_
    # define _CPU_DIRECTION_OUT_1_ TRUE
    # define _CPU_EDGE_HIGH_LOW_1_ TRUE
    //#define _CPU_64BIT_INT_ long long
    // #endif
    #else
    # error "Unknown Compiler, the file bm.h has to be expanded !"
    #endif

    Regards,

    Gautam

  • Hi Gautam,

    I saw that, but can you suggest me how can I that solve?

    Regards,

    Admir
  • Looking at bm.h carefully, you will notice that if __CCE__ is not defined then this error is thrown. When using CCE/CCS, this symbol should be defined for it to identify the current compiler. Please make sure that this compiler predefined symbol is defined for your project.

    As a reference, if you take a look at the example project, like the ez430_chronos project, you will find this symbol defined in Project Properties->Build->Compiler->Advanced Options->Predefined Symbols, under --define option. 

  • Thanks! This is solution! But when I want "Debuging", I get: "Error Initializing emulator: No USB FET was found". I'm running MSP430 USB - Debug - Interface MSP - FET430UIF und I can see that is properly installed.
  • Since the original question posted in this thread is resolved, please start a new post of the issue with connecting to the emulator. Also, this question might be better answered in the MSP430 Forum as the experts there would have a better idea about the recommended versions of CCS to use with different packages such as Chronos.