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.

Compiling HFP demo Bluetopia stack using CCS (MSPGCC compiler)

Other Parts Discussed in Thread: MSP430F5438, MSP430F5438A

Hi,

I am trying to compile HFP demo of bluetopia stack v1.4 for MSP430F5438 experimentor board in CCS using MSPGCC compiler but get lot of error.

Description Resource Path Location Type
fatal error: intrinsics.h: No such file or directory pre_init.c /HFPDemo line 25 C/C++ Problem
gmake: Target `all' not remade because of errors. HFPDemo C/C++ Problem
gmake: *** [MSP430_EXP5438/HAL.o] Error 1 HFPDemo C/C++ Problem
gmake: *** [pre_init.o] Error 1 HFPDemo C/C++ Problem
fatal error: SS1BTPS.h: No such file or directory BTVS.c /HFPDemo line 16 C/C++ Problem
gmake: *** [Main.o] Error 1 HFPDemo C/C++ Problem
fatal error: SS1BTPS.h: No such file or directory HFPDemo line 18, external location: C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R2\MSP430_Experimentor\Samples\HFPDemo\Main.h C/C++ Problem
gmake: *** [HFPDemo.o] Error 1 HFPDemo C/C++ Problem
fatal error: HAL.h: No such file or directory Main.c /HFPDemo line 15 C/C++ Problem
fatal error: SS1BTPS.h: No such file or directory BTPSVEND.c /HFPDemo line 18 C/C++ Problem
gmake: *** [HCITRANS.o] Error 1 HFPDemo C/C++ Problem
fatal error: MSP430Utils.h: No such file or directory HRDWCFG.h /HFPDemo/MSP430_EXP5438 line 19 C/C++ Problem
fatal error: BTPSKRNL.h: No such file or directory HCITRANS.c /HFPDemo line 15 C/C++ Problem
gmake: *** [BTVS.o] Error 1 HFPDemo C/C++ Problem
gmake: *** [BTPSVEND.o] Error 1 HFPDemo C/C++ Problem
fatal error: BTAPITyp.h: No such file or directory HFPDemo line 19, external location: C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R2\MSP430_Experimentor\Bluetopia\btpskrnl\BTPSKRNL.h C/C++ Problem
gmake: *** [BTPSKRNL.o] Error 1 HFPDemo C/C++ Problem

  • Hi,

    I have not face any problem in building HFP projects using CCS 5.4.

    Make sure your demo properties are fine. like your include options.

  • Hi Sundeep,

    Thanks for quick reply.

    These include path are for TI compiler but I am using MSPGCC compiler. I tried using same include paths but still getting following errors:

    Description Resource Path Location Type
    gmake: *** [Main.o] Error 1 HFPDemo C/C++ Problem
    gmake: *** [HCITRANS.o] Error 1 HFPDemo C/C++ Problem
    gmake: *** [BTPSVEND.o] Error 1 HFPDemo C/C++ Problem
    initializer element is not constant HFPDemo line 1206, external location: C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R2\MSP430_Experimentor\Bluetopia\btpsvend\CC256X.h C/C++ Problem
    initializer element is not constant HFPDemo line 810, external location: C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R2\MSP430_Experimentor\Bluetopia\btpsvend\CC256X.h C/C++ Problem
    gmake: *** [BTPSKRNL.o] Error 1 HFPDemo C/C++ Problem
    fatal error: intrinsics.h: No such file or directory HFPDemo line 130, external location: c:\ti\ccsv6\ccs_base\msp430\include\msp430f5438a.h C/C++ Problem
    gmake: *** [pre_init.o] Error 1 HFPDemo C/C++ Problem
    gmake: *** [MSP430_EXP5438/HAL.o] Error 1 HFPDemo C/C++ Problem
    gmake: Target `all' not remade because of errors. HFPDemo C/C++ Problem

    Is there any documents giving steps for compiling demo  projects using MSPGCC compiler ?

    Also output format while using MSPGCC is elf, can we flash that directly to MSP430 ?

  • Hi Sundeep,

    I tried compiling it with IAR v6.1 but getting same errors as mentioned here

    http://e2e.ti.com/support/wireless_connectivity/f/660/t/348663.aspx

    Does this have something to do with IAR version ?

    And is it possible to run just HFP from Bluetopia stack on MSP430 ? Is memory (RAM) of MSP430 sufficient for that?

  • Hi,

    There is no separate TI compiler. we are also using MSP.

    I have built it my self using the below link, by selecting the correct workspace and i have not faced any issue.

    http://processors.wiki.ti.com/index.php/CC256x_MSP430_Bluetopia_Basic_Demo_APPS#MSP430F5438.2FMSP430F5529

    IAR version 5.52.1. and there are other customers who where using the 6.1 version of IAR and were able to build.

    You have mentioned that you are using  bluetopia stack v1.4, please try using  the latest V1.4 R2.

  • Hi Sundeep,

    I am using v1.4 R2 and following the same link that you have mentioned.

    With IAR v6.1 it prompts that project file is in old format would you like to convert it. 

    If we say yes, then it loads it and we get the errors mentioned above

    and if we say no it does not load the project.

  • And the errors occur during linking. Does this have something to do with 
    - libBluetopia.a
    - libBluetopia_SCO.a
    at CC256x MSP430 Bluetopia SDK\v1.4 R2\MSP430_Experimentor\Bluetopia\lib
    Do we have to specify/include this path somewhere in build properties ? If yes , where?
  • Hi,

    Yes, I hope you are using IAR.

    In options-> Linker-> extra options please add the below

    -C $PROJ_DIR$\..\..\..\..\Bluetopia\lib\IAR\DefaultMTU\libBluetopia_SCO.a
    -C $PROJ_DIR$\..\..\..\..\Bluetopia\profiles\HFP\lib\IAR\libSS1BTHFP.a

  • Hi Sundeep,

    Thanks for the reply.

    Yes we are using IAR and including those linker options solved the issue.

    Thanks again