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.

Bluetooth stack on TI RTOS for MSP430

Other Parts Discussed in Thread: MSP430F5659, SYSBIOS, CC2560, CC2564

Hello, 

I am using MSP430F5659 to port TI RTOS. I am trying to create a Tx bluetooth task along with my LED tasks (working initially) using bluetopia library. Since bluetopia library supports only small data memory model, I had to change the compilation settings to coffabi, small data memory and large code memory. 

The compilation is interrupted with the following error: 

generating custom ti.sysbios library makefile ... 

generating custom ti.sysbios.family.msp430 Hwi stubs ... 

js: "C:/ti/xdctools_3_31_02_38_core/packages/xdc/cfg/Main.xs", line 48: XDC runtime error: can't find the library 'lib/ti.catalog.msp430.init.a430X' specified by package ti.catalog.msp430.init.  It wasn't found along the path 'C:/ti/tirtos_msp43x_2_12_01_33/packages;C:/ti/tirtos_msp43x_2_12_01_33/products/bios_6_41_04_54/packages;C:/ti/tirtos_msp43x_2_12_01_33/products/uia_2_00_02_39/packages;C:/ti/ccsv6/ccs_base;C:/ti/xdctools_3_31_02_38_core/packages;..;'.

gmake.exe: *** [package/cfg/mutex_p430X.xdl] Error 1

I am not sure but I think the library for msp small data memory is not available with TI RTOS or xdc tool. I am having the latest release for both of them. so if my assumption is right where can I find the library ?

Thank you  

  • Hi Karim,

     

    First of all, we only support “elf” now for MSP430 for the TI toolchain. We only support two variants in TI-RTOS

    ti.targets.msp430.elf.MSP430X_small: --code_model=small --data_model=small

    ti.targets.msp430.elf.MSP430X:       --code_model=large --data_model=restricted

    The TI-RTOS team is evaluating whether to deprecate the MSP430X_small one also in the future due to the lack of usage by the customer base.

     

    Todd

  • Hi Todd, 

    Even though I changed the code model to small and kept the data model at small it still shows the same error 

    Karim

  • Are you using coff or elf? You need to use elf.
  • actually I am trying to use bluetopia just the bluetooth stack as a task without scheduler on the TI RTOS. when I set the option elf it outputs this error

    error #16019-D: file "C:/Users/iscl/workspace_v6_1/Bluetopia/lib/CCS/LargeMTU/eabi/libBluetopia.a<BSC.obj>" specifies small data memory model, which is not compatible with restricted large data memory model specified in a previous file or on the command line

    when I set coff it outputs this error:

    line 48: XDC runtime error: can't find the library 'lib/ti.catalog.msp430.init.a430X' specified by package ti.catalog.msp430.init. It wasn't found along the path

    aren't elf/coff compiling options and large/small data memory independent concepts ?
  • elf/coff is independent of large/small, but the problem you are having is that we don't have coff libraries for TI-RTOS...only elf. You're looking for the .a430X library (which is coff and does not exist) instead of the .ae430X (which is the elf one). If you want to use TI-RTOS, you'll need to use elf which means you need to get the elf bluetopia library.
  • yes I am using the elf version of the bluetopia library and I still get this error (same as shown above):

    error #16019-D: file "C:/Users/iscl/workspace_v6_1/Bluetopia/lib/CCS/LargeMTU/eabi/libBluetopia.a<BSC.obj>" specifies small data memory model, which is not compatible with restricted large data memory model specified in a previous file or on the command line

    I have changed the settings to elf but small code and data models.
  • I think I understood the problem. the bluetopia library uses small data large code. it supports both coeff and elf. regardless of elf/coeff it won't be compiled with RTOS since it doesn't support small data large code. is there any possibility to obtain small/small or large/restricted bluetopia library since compatible TI/RTOS to the current version of bluetopia is not available.
  • Karim,

    Can you clarify which Bluetooth device you are using? CC2560?

    Thanks,

    Nick

  • Hi Nick, 

    I am using CC2564 

  • Karim,

    Although I will need to doublecheck this, I believe the BT stack builds we make available  for our MCUs for use with the CC2560 are governed by a contract with Stonestreet One. So if the memory model you want support for is listed as one Stonestreet One has to provide, then it may not be possible to get it (at least at no charge). I will try to get an answer for you. It will take a few days as there has been some shuffling of the people who were managing this relationship.

    You probably should post on the CC2560 e2e forum and is them if a build of the stack is available in the memory model you need. That may get you a faster answer if it is in fact available.

    Note that Monday is a holiday in the USA.

    Nick

  • Karim,

    I did a bit more investigation on this. It seems like that you can get a custom build of the stack via a third-party, but there may need to be some involvement the TI field team. Who is your contact at TI (e.g. FAE) or do you work via a distributor? If so, which one and who is your contact?

    Nick

  • Greetings, 

    Thank you for the reply. 

    Actually we order TI products directly on TI webpage I believe. Besides I don't have any FAE contact at TI. 

    how is it possible to obtain a large/restricted custom built of bluetopia library ? 

    Regards 

  • Karim,

    The third party you can contact to discuss a custom Bluetooth library build is:

    Josh Toole

    Cloud2GND Consulting

    ti_support@cloud2gnd.com

    1.502.821.0613 

    Nick