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.

CCS/CC2650RC: Trying to port simple_central_cc2650lp_app project for cc2650rc and not getting BLE initialization or other BLE events

Part Number: CC2650RC
Other Parts Discussed in Thread: CC2650

Tool/software: Code Composer Studio

Hello,

I am trying to port Simple Central example for CC2650 LaunchPad to CC2650RC remote from ble_sdk_2_02_01_18 package. To port that I changed board include to CC2650RC so it will choose correct board configuration file. And I verified that it's using correct board type as I tried to blink Red/Green LEDs on the remote using toggle timer and it's working. But somehow after starting device in Central mode ideally it should get GAP_DEVICE_INIT_DONE_EVENT and all basic BLE initialization should start away but finding that after putting debugger on that, it's not coming to that place. So either something wrong with configuring this project or stack firmware is not right.

To debug that if problem is related to wrong BLE stack firmware, I tried 3 different firmwares for that from BLE sdk as it is.

1. simple_central_cc2650lp_stack  - Not working (In application firmware trying to toggle LEDs based on switch inputs)

2. simple_central_audio_receiver_cc2650lp_stack  - Working (In application firmware trying to toggle LEDs based on switch inputs) - But still BLE initialization is not happening in app firmware.

3. hid_adv_remote_privacy_cc2650rc_stack  - Working (In application firmware trying to toggle LEDs based on switch inputs) - But still BLE initialization is not happening in app firmware.

And while porting project I also need to disable UART display and commented all display prints otherwise I was not able to compile project successfully as compiler was complaining about some file under "ti/mw/display" so maybe need some change in project configuration for that?

Display Error: 

unresolved symbol Display_config, first referenced in C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/tidrivers_cc13xx_cc26xx_2_20_01_10/packages/ti/mw/display/lib/display.aem3<Display.oem3>

So please someone can help me with this? Thanks in advance!

  • I disabled display in Display.h driver file itself to remove above display error as I am guessing UART/LCD display is not supported by CC2650RC even with Debugger DevPack! Thanks to Dave Beal as he posted this solution in an another forum thread to remove frequent disconnections problem. I don't know if that problem is still there with most recent BLE stack but still main problem(not getting BLE events) remains. Eventually I'll also need UART debug prints with CC2650RC as well so there should be some alternate solution for that.

    The Display error fix was to add "#define Display_DISABLE_ALL 1" to the top of the Drivers/Display/Display.h file in TI-RTOS.

  • Hello Ethan,

    It could be a conflict with the board file. Try disabling all IOs in your board file except for your LEDs and disable any code that would try to access IOs, like button IO from the default simple_central app. If you are still seeing issues, try to use the debugger to see where the code is stuck.

    Best wishes
  • Hello JXS,

    Thanks but I already disabled all IO keys related code for launchpad and I am using key_scan.h/key_scan.c and kcb.h/kcb.c libraries to have remote keys functionality. So what I did in simple_central_lp code is that, replaced left/right button with RC_SW_LF_ARW/RC_SW_RT_ARW buttons and kept same handler code such that when RC_SW_LF_ARW button gets pressed it will start scanning devices and toggling Green LED. And it does that but before even pressing that key it should go by default into Idle state by showing Red LED on but it's not doing that as previously mentioned because of not getting any BLE events. I turned on debugger as well and make sure that it successfully passes through SimpleBLECentral_init() function and that's why all Keys/Leds code is working just fine along with its scanning toggler. But note that once left key is being pressed, Green LED will start blinking and it never stops because it never gets BLE scanning terminated event so it never goes into idle state again.

    I've tried setting breakpoint in SimpleBLECentral_processRoleEvent() function and see if it's getting any of GAP_DEVICE_INIT_DONE_EVENT/GAP_DEVICE_INFO_EVENT/GAP_DEVICE_DISCOVERY_EVENT events but no it's not getting them. So now I am even out of my debugging tricks that how to know that why only BLE events are not happening and other os code is working fine without getting stuck anywhere?
  • Hello,

    Does anyone have a working sample code of simple central device(which does basic things like scan device and connect with it) for CC2650RC which I can use as a reference? Since I've already tried simple_central_cc2650lp_app code for CC2650RC and it's not working as desired. Any help would be greatly appreciated!

    Thanks!