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.

PROBLEM DEFINING CUSTOM CHARACTERISTICS IN LP-EM-CC2340R5 SIMPLE PERIPHERAL CODE

Other Parts Discussed in Thread: CC2340R5

Dear Sir, 

We are not able to add more custom characteristics to the example. When we try to add and modify the "SERVAPP_NUM_ATTR_SUPPORTED" to 18 from default value 17, it gives the following error message.

 

Error message Description 

Description Resource Path Location Type
<a href="file:/C:/ti/ccs1210/ccs/tools/compiler/dmed/HTML/10099.html">#10099-D</a> program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment fails for section ".data" size 0xe20. Available memory ranges: cc23x0_app_freertos.cmd /simple_peripheral_LP_EM_CC2340R5_freertos_ticlang line 229 C/C++ Problem

When Clicked on the ERROR#1009-D, it points towards this file.

RAM Usage, when Simple peripheral example code is compiled without any changes. (*RAM usage goes to 99%)

 

Is the example code has limitation to RAM usage & No. of characteristics or I am doing something wrong. 

Kindly share the reference document & how we can define 128bit UUID's to the services & characteristics in the code and code snippets which I can refer.

Thanks & Regards,

Harinder Singh

  • Hi Harinder Singh,

    This behavior may be due to tsome limitations of SDK 6.30.

    Please make sure to use the newest SDK (6.40) and the new basic_ble example.

    Best regards,

  • Dear Sir, 

    Thanks for your quick response!

    Can you provide us the latest SDK(6.40) download link for CC2340R5 platform. Presently we have the following SDK's

    1. simplelink_cc13xx_cc26xx_sdk_6_40_00_13
    2. simplelink_cc23xx_sdk_6_30_00_20_eng

    Thanks & Regards,

    Harinder Singh

  • Dear Sir,

    I also need your help regarding defining custom 128bit UUID, in the simple peripheral example code for CC2340R5.

    I want to modify the simpleProfileAttrTbl according to thie following 128bit UUID. Can you please let me know where do I have to make the changes?

    static gattAttribute_t simpleProfileAttrTbl[SERVAPP_NUM_ATTR_SUPPORTED] =
    {
    ...

    }

    Custom characteristics that I want to implement for UART service over BLE

    #define SERVICE_UUID           "6E400001-B5A3-F393-E0A9-E50E24DCCA9E" 
    #define CHARACTERISTIC_UUID_RX "6E400002-B5A3-F393-E0A9-E50E24DCCA9E"
    #define CHARACTERISTIC_UUID_TX "6E400003-B5A3-F393-E0A9-E50E24DCCA9E"

    Please let me know if you need more details.

    Thanks & Regards,
    Harinder Singh
  • Hi, 

    The CC23xx SDK can be downloaded from the secure repository (My Secure Resources). 

    Best regards,