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/CC2652R: Cant run ble5_simple_central_cc2640r2lp_app

Part Number: CC2652R

Tool/software: Code Composer Studio

Hello.

Im trying to run the ble5_simple_central_cc2640r2lp_app code on the CC2652R1 launchpad using CCSv8.

The code compiles, but when loading it, i get the error :

Cortex_M3_0: Target timed out! (Block 1)
Cortex_M3_0:   Status 0x0102: Target flashloader failed to erase sector 1. Low level function returned status 3 (Incorrect parameter value).
Cortex_M3_0:   Command=4 -- addr=0x00002000 -- length=0x00001000
Cortex_M3_0: File Loader: Memory write failed: Timed out waiting for target flashloader to execute command.
Cortex_M3_0: GEL: File: C:\Users\AlfiNuc\workspace_v8_cc26x2r1\ble5_simple_central_cc2640r2lp_app\FlashROM_StackLibrary\ble5_simple_central_cc2640r2lp_app.out: Load failed.

This might be because i used the target configuration file that was provided in the example code.

When i use the correct target configuration file (for example from project_zero demo), then the code gets loaded without this error, but there is nothing in the serial terminal window. That makes me think the code is not running properly. As i uderstand it is supposed to create a menu structure to the serial terminal. I have successfully used the serial terminal in project_zero example, i assume it has the same parameters in simple_central example

How to properly port this simple_central example to the CC26X2R1 launchpad?

  • Hi,

    What SDK are you using?
    What compiler are you using?
    What version of CCS are you using?

    I can confirm that I am not seeing this issue on my side.
  • Hi.
    I was using simplelink_cc2640r2_sdk_2_30_00_28
    Compiler TI v18.1.3 LTS
    CCS Version: 8.2.0.00007

    It appears that i was using the wrong SDK? I removed all imported example projects in the project view, installed simplelink_cc26x2_sdk_2_30_00_34 SDK,
    importd the projects again and got the simple_central example code running.

    Now i am trying to discover "LE only" type of device, but the scanner doesnt find anything using the "Discover devices". I have disabled the UUID filter in the software.

    When i use nRF scanner (mobile app), i can see the device with flags GeneralDiscoverable, BrEdrNotSupported. Manufacturer uses Bluetooth core 4.1.

    I just need the raw information when scanning. Can you guide me in the correct direction as to how to discover this device using CC25X2R1 launchpad?
  • Am i correct that i need a ble observer, not central?
    Something like this has been discussed here:
    e2e.ti.com/.../549194
  • I'm glad you were able to resolve your first issue.

    When you hook your device up to something like PuTTy to read out via the COM port does it say it's discovered anything?

    You could also examine how the device filters via service UUID (the param you turned off) and look at that as a guide to filter on ADTYPE_BDEDR_NOTSUPPORTED etc.
  • Alfred,

    Central Role has observer capabilities as well.
  • Hi. Thanks for the info about simple central and simple observer.
    I was already trying to run the simple observer from simplelink_cc2640r2_sdk_2_30_00_28 and found myself struggling wit the same errors as in the beginning... so i need to make the same mistake multiple times before i get it :D

    Anyway, the terminal window tells me "0 devices discovered". I am looking for an advertiser, so i as i understand it, i cant (and dont need to) connect to it. I just need to save the data that the advertiser broadcasts.

    This tells me that i need to configure the simple_central ta act as an observer. After discovering some devices i could examine the filtering possibilities.

    I guess the first question to solve is, why i am unable to detect any devices. Not simple advertisers nor regular bluetooth devices. Multiple bluetooth devices are available when scanning with a smartphone app...
  • Alfred,

    Agreed. That is strange. I can test on my end and see if we see anything as well. You're just setting the filter on service UUID to false right? Want to make sure I'm reproducing the same setup as you :)
  • there were more filters than the service UUID.
    PDU-s were also filtered: "Only 'Connectable' and 'Complete' packets are desired"
    Thats not the case for me. Changed it to SCAN_FLT_PDU_ADV_ONLY and found my advertiser. Thanks for the clues.
  • Great! Can I consider this resolved?