• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » Low Power RF Bluetooth® Low Energy & ANT Forum » BLE xdata reduction
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

BLE xdata reduction

BLE xdata reduction

This question is not answered
Jerome Baron
Posted by Jerome Baron
on May 22 2012 13:55 PM
Intellectual530 points

Hi everyone,

I'm trying to reduce as much as possible the utilization of the XDATA by the BLE stack. By looking at the .map file, I see 3 big objects:

OSAL_Memory ~3075B

ll ~918B

ll_scheduler ~1283B

I have already reduced OSAL_Memory to 591B, below that, I get warning during compilation, so I guess it will result in error during execution. Does anyone know how to reduce the two other module?

Best regards,

Jerome Baron

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Eng351
    Posted by Eng351
    on May 22 2012 16:33 PM
    Expert2980 points

    As far as I know there is no external control over the Link Layer memory allocation, so the only way to change this would be to get access to the stack source or write your own stack. Both of these options seem unlikely and would probably compromise the BLE operation. 

    I would guess that reducing the OSAL memory as much as you have would create some serious operation issues but I guess that all depends on what you are doing with the stack. 

    The question is what do you need the additional memory for? I too am running some fairly memory hungry applications and use the OSAL to allocate several large buffers for this with no problems. Are you able to use external SPI memory if this is not enough?

    I too have felt that the CC2540 could do with say 16KB SRAM as there isn't a huge amount left over once the stack and OSAL for BLE has taken its share.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jerome Baron
    Posted by Jerome Baron
    on May 22 2012 16:41 PM
    Intellectual530 points

    Hi, thanks for your answer. My application is really memory consuming. I have an AT parser with a lot of command/answer with some big array that need to be in flash as well as a framebuffer for an external LCD.

    What do you mean by : "I would guess that reducing the OSAL memory as much as you have would create some serious operation issues but I guess that all depends on what you are doing with the stack. "

    There's still almost 600 bytes for the stack to use. I don't use any dynamic memory allocation in my application. Do you think the BLE stack needs more flash to work properly? There's no documentation regarding this.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Eng351
    Posted by Eng351
    on May 22 2012 17:14 PM
    Expert2980 points

    It would depend on what type and how many of BLE connection(s) you are running. I really don't know how much heap the stack uses but this could be determined using osal_heap_block_free(). It is just a gut feel that reducing it to 1/5 of its original size could cause memory allocation issues. It would need to be tested carefully.

    I think you are confusing RAM with Flash above, Flash is program memory.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jerome Baron
    Posted by Jerome Baron
    on May 23 2012 06:01 AM
    Intellectual530 points

    Thanks for the tip, I will monitor the osal_heap_block_free() to see if it comes neer to zero. My application doesn't use much bluetooth. Only one connection at the time and I only do RSSI monitoring.

    By default, with the 640 of stack as configured in the demo application, the SimpleBLECentral takes ~7kB. There's not much left for the application part!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use