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.

cc2640 + BLE-Stack-2 Size

Other Parts Discussed in Thread: CC2640

Hi 

I want to know the size of the BLE-STACK-2 because the CC2640 has 128kb, and I expect to use around 64kb for a project application?

does the BLE stack can fit with my application?

  • Using default SensorTag example in BLE-STACK-2, you need 61692 bytes of code memory for BLE stack and 46 05 bytes of code memory. I don't think you will have 64K flash for your application.
  • Hi,

    for example, if the project has a 9 axis motion sensor, I could use as a reference the service for the 9 axis motion tracking device that is implemented in the sensor tag, therefore the code memory that the BLE stacks needs will be less , because I am not using the whole services in the stack.

    Is it correct?
  • Hi,

    Have you compiled your code for Cortex-M3 to get the actual flash size? You can get ~ 55kB free for your app if you disable Pairing/Bonding and SNV.

    Best wishes

  • Hi,

    At the moment we are just considering to use this chip (so we do not have any code), but we are trying to figure out if the flash memory of this chip is enough for different application and to know if the memory space of the BLE stack could be reduced in some way. Or the size of the BLE stacks is around 60000 and 64000 bytes?

    and according to the suggestion of disabling the SNV, the manual said that "The Protocol Stack can be configured to reserve up to two 4kB flash pages for SNV" , so if we disabled it we could have 8kB extra of flash.