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.

CC2640R2F: BLE-Stack Code Size

Part Number: CC2640R2F
Other Parts Discussed in Thread: BLE-STACK,

Hi BLE experts!

I'm getting started with the TI BLE ecosystem, and I've been going through the CC2640R2 SDK lessons in SimpleLink academy. I had a look at the memory map, and noticed that all of the examples use >90% of flash space and >50% of memory For example, Project Zero, at optimization level 4, is showing 126k flash(!) and 11k RAM allocated.

Is this expected? With BLE-Stack, how much space should I expect to have left for application code?

Thanks!

  • Hi Marcus,

    Looking at the Flash size of our out-of-the-box examples is probably not the best way to proceed. These examples are written to be as generic as possible. As a result we use many functionalities that won't be required in your final application.

    The CC2640R2F is well suited for all kind of BLE 4.x applications (using the blestack) and for fairly simple BLE 5.0 applications (using the ble5stack). We know the Flash size left by the BLE5 stack is too limited for advanced applications, and in that case we recommend migrating to CC2642R1

    I would suggest you to first assess if you require the BLE5 stack. Then you should review the provided examples and see which functionalities are required by your application. Then, based on the requirements of your application you will be able to assess if the CC2640R2F is the right device for your project or if you should consider CC2642R1.

    If needed, we provide in this thread some ideas to reduce the Flash size occupied by your application.

    I hope this will help,

    Kind regards,

     

  • Thanks Clément!

    Silly me, I was looking at the examples from the BLE5-Stack section, when I should have been looking at the blestack examples. Without the BLE5 features, the flash consumption is much more reasonable. Once I'm done with the SimpleLink academy courses, I'll have to go through the available features and see what else I can trim.

    Thanks again!