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.

CC2650: appBLE.cfg file

Part Number: CC2650
Other Parts Discussed in Thread: CC2640, SYSBIOS

Hi,

I'm trying to add the RTC Seconds functions to the simple_peripheral project by adding an entry to the appBLE.cfg file, but I can't find the appBLE.cfg file in my project.  I did find an app_ble_pem3.cfg in this folder:

...simple_peripheral_cc2650lp_app\FlashROM\configPkg\package\cfg

Is it ok to add the line in this file?

Thanks,

Jim

  • Hi Jim,

    Have you also verified inside the examples ble_sdk_x_xx_xx_xx\cc2650lp\simple_peripheral\ccs\config\app_ble.cfg and ble_sdk_x_xx_xx_xx\src\common\cc26xx\kernel\cc2640\config\cc2640.cfg

    If this does not help, could you specify which SDK version and which example you are using?

    regards,

  • Hi Clément,

    I've finally gotten back to looking into this in depth.  Here's what I did:

    • Added var Seconds = xdc.useModule('ti.sysbios.hal.Seconds'); to C:\ti\simplelink\ble_sdk_2_02_05_02\examples\cc2650lp\simple_peripheral\ccs\config\app_ble.cfg to enable the usage of the RTC modules
      • But this isn’t in the project directory structure so how is it referenced by the CCS project located elsewhere?
    • Declared a variable at line 91 of simple_gatt_profile.c
      • Seconds_Time localTime;
    • Builds ok
    • Added call to Seconds_Set(0) in function SimpleProfile_AddService
    • Now has a linker error: ti_sysbios_hal_Seconds_set__E is undefined
    • Do I need to add an entry to ccsObj.opt?  But isn't this file automatically generated?  If so, how do I get an entry added?

    My SDK version is ble_sdk_2_02_05_02 and the example is simple_peripheral_cc2650lp.

    Thanks for your help!

    Jim

  • Hi Jim,

    It looks like you have forgotten a piece of the code to add to the .cfg

    var Seconds = xdc.useModule('ti.sysbios.hal.Seconds');
    Seconds.SecondsProxy = xdc.useModule('ti.sysbios.hal.SecondsClock');

    Here how I did:

    I have to tell you I have experienced a link issue with Seconds_Set(); that I have replaced by ti_sysbios_hal_Seconds_set(); - I cannot explain why because I do have found the proper define.

    I hope this will help,

    Regards,

  • Thanks Clément, this resolved the issue!  (I've inadvertently created a new one in the process, so I'll open a new thread.)

    Jim