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.

Bluetopia stack size info

Other Parts Discussed in Thread: MSP430F5438A, CC2564, MSP430F5529

Hi,

 

What will be the Bluetopia stack size?

 

Can we configure the stack size if the application needs SPP only? If yes, then how to achieve it?

 

Is there any recommended memory to be allocated on the LM9B96 MCU for the stack?

 

Thanks and Best Regards,

 

NVS Shastri

  • Hello Shastri,

    The following table gives some numbers that relate to the included applications and will give you an idea about the Bluetooth stack code size.

    Parameter

    Notes

    Measure

    Code Composer

    Code Red

    Code Sourcery

    IAR

    Keil

    Platform Port Code Size - No RTOS1

    No RTOS Porting Layer

    Bytes Flash

    3,570 

     3,238

     3,033

    2,346 

     2,450

    SPP Bluetooth Code Footprint

    Bluetopia Library and Supporting Code

    Bytes Flash

     54,734

    54,734 

     53,190

     59,841

    58,824 

    A2DP Bluetooth Code Footprint

    Bluetopia Library and Supporting Code

    Bytes Flash

     82,060

    82,070 

     82,060

    82,306 

    82,776 

    SPP Sample Application Code Footprint2

    Bluetopia Library, Supporting Code & Application

    Bytes Flash

     83,932

     87,532

    84,389 

     86,494

    87,808 

    SPP Sample Application RAM Footprint

    Total SRAM Required

    Bytes SRAM

    14,014 

    14,014 

    14,014 

    14,014 

    14,014 

    A2DP Sample Application Code Footprint3

    Bluetopia Library, Supporting Code & Application

    Bytes Flash

    112,598 

    116,876 

     113,467

    109,204 

    110,166 

    A2DPSample Application RAM Footprint

    Total SRAM Required

    Bytes SRAM

     33,963

    33,963 

    33,963 

    33,716 

    33,963 

    The core Bluetopia lib includes SPP and only the functions that you are not using from the lib could be left out but you are pretty much optimized with respect to code space there as the profiles such as A2DP/AVRCP are not included and what is included is needed by SPP. The numbers above will give you an idea about the stack code space for SPP.

    The memory to be allocated depends on your use cases. You can control the memory to be allocated by changing the MEMORY_BUFFER_SIZE in bt_ucfg.h

    You can change the default RFCOMM frame size and SPP input and output buffer sizes using the function SPP_Set_Configuration_Parameters.

    You can also control the queuing of the outgoing data by using the function SPP_Set_ Queuing_Parameters.  You can get further details about these function in the Bluetopia Core API documentation and these parameters would be relevant to this question. 

    Best Regards,

    Stonestreet One. 


  • Hi,

    Please confirm if there is an error in specification of 'Measure'.

    Are you suggesting 59MB of flash code memory footprint for SPP? Measure is in KB flash or bytes? Please elaborate.

    Thanks,

    Jithin George

  • Yes, Jithin. It should be Bytes. SPP is 59K.

    Best regards,

    Stonestreet One

  • Stonestreet, 

    I am going to be interfacing an CC2564 BLE module to a MSP430 micro-controller. Throughout most of the documentation I have read, TI seems to be pushing their MSP430F5438A and MSP430F5529. Given your previous answer of a 59K code footprint, It doesn't seem like designers are restricted to these 2 MSP430s. Is the stonestreet stack more suited for these two specific MSP430's in some way? Providing an MSP430 is selected with UART capabilities and a large enough Flash space the stonestreet bluetopia stack should be functional. Correct?

    Lucas

  • Lucas,

    You can use other MSP430s if they satisfy Flash space and UART capablities but you would have to make some changes to get it working. We have included a Porting guide in "CC256x MSP430 Bluetopia SDK\v1.4 R1\Documentation\Hardware Porting Guidelines.pdf" as part of the Bluetopia SDK

    Thanks,

    Stonestreet One.

  • Hi,

    Is it possible to get an equivalent table for the Bluetooth Smart and Zigbee stacks?

    Thx
  • Hi,

    Please post it on the respective forums

    Regards,
    Gigi Joseph.