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.

Problem during valuation of a CC2540 example after having downloaded the free IAR EW8051 Kick-Start code limited version

Other Parts Discussed in Thread: CC2540

Hi,

I'm at evaluating the CC2540 after having downloaded the free IAR EW8051 Kick-Start code limited version. After installation I tried to compile a project and got this message:

“Fatal Error[Pe035]: #error directive: "Build Configuration Error: At least one Controller build component required!" C:\Texas Instruments\BLE-CC254x-1.2\Components\ble\include\bcomdef.h“

I have already put bcomdef.h in the PATH, so that's not causing the error as far as I understand. Did not find any post describing this particular error message“At least one Controller build component required!”. I don't understand what is meant by “Controller build component “and how to fix it.

Does anybody have an idea?

Regards

Bo

  • Hi Bo,

    I'm NOT an IAR expert but... shouldn't you try the EVALUATION version instead of the KICKSTART?

    Can you give it a try?

  • Hi Bo,

    you're sure to have download IAR for 8051 ?? If this is the case, try to REdownload the BLE stack from TI website...I did it the last week, and I complile et build project without any problem


    Regards

  • Hi all,

    I have same problem

    I create new project and add source files from SimplePeripheral example project and  some PATH variables to preprocessor. The result is:

    'Fatal Error[Pe035]: #error directive: "Build Configuration Error: At least one Controller build component required!" c:\Texas Instruments\BLE-CC254x-1.4.0\Components\ble\include\bcomdef.h 89 '

    BLE stack is downloaded few days ago.
    Can you tell me what I did wrong,please?

    Thanks and Regards

  • Same problem.

    After some experiments, I found there is an "Extra Options" tab under "C/C++ Compiler" section in the project options dialog. Check "Use command line options" and add a line "-f $PROJ_DIR$\..\..\config\buildComponents.cfg" (change the relative path accordingly if your project structure differs), and this solved my problem.

    Hope this helps.

  • Oh, forgot to mention that I also added "HOST_CONFIG=PERIPHERAL_CFG" to the preprocessor defined symbols. Or you can copy buildConfig.cfg from the SimpleBLEPeripheral project to your project directory and add "-f $PROJ_DIR$\buildConfig.cfg" in the "Extra Options" tab.

  • Thank you very much....Yang.
    it not only solve that problem,but also other.
    now i understand how to change directory path.

    Actually what i did is that, simply take source code from sample code given by texas instruments and try to build my own project. by simply changing directory path in project-->option-->c/c++ compiler-->preprocessor
    (give the path as per your directory location) not necessary used word $PROJ$