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/TIDA-01469: Facing issues in enabling notifications and reading FFT values using BTool

Part Number: TIDA-01469
Other Parts Discussed in Thread: CC1350, , BLE-STACK

Tool/software: Code Composer Studio

Hi,

I am working on TIDA-01469 module with CC1350, loaded the module with simplelink application available in TIDA firmware folder. I am using the same tool versions as mentioned in the document.

Now I am trying to read the data and enable notifications. As per datasheet to read the fft's some value should be written to Characteristic 1, I am writing the same using BTool but I am not receiving any data.

Even I tried to enable the notification by writing 1 to character 5 configuration descriptor, still I am not getting any notifications in BTool.

Could you please explain how to read the data and enable notifications as mentioned in data sheet. I am struggling on this from long back, kindly help on this.

Regards,

Mily.

  • Hi Mily,
    How is the data collected before populated into the characteristics?
  • Hi Joakim,

    Can you elaborate it, data populated in the sense, what are the changes required? When I am debugged the code data is writing into the Character 5 fields. With the other sample examples I am getting the notifications.

    Regards,
    Mily

  • Mily,

    Can you elaborate on the steps that you did to collect the data?  Did you do something similar to the below sequence?

    • Flash TIDA-01469 onto CC1350 Launchpad
    • Setup another CC1350 to use with BTool
    • Run TIDA-01469 firmware
    • Use BTool
      • Connect to TIDA-01469
      • Write 1 to characteristic 5 to enable notification
      • Write 0x5E to characteristic 1 to read first 200 FFT points
      • You should now receive 20 notifications
      • Write 0x5C to characteristic 1 to read second 200 FFT points
      • You should now receive 20 notification
      • etc...

  • Dear Clam,

    Below are steps followed by me:

    1. I have loaded the CC1350 launch pad with Simplelink app available in TIDA firmware 1.0 folder and simplelink stack available in ble sdk 2.02.01.18 folder.

    2. To power up the module from battery, I removed all P4 jumpers(XDS power jumpers and JTAG signals) and P10 jumper on CC1350 board as described in section 3.1.1.1 in data sheet.

    3. Connected TIDA-01469 sensor board to the CC1350 board and connected J3 jumper to power up the module.

    4. Now I have connected another module to PC, with host test application running in the module and BTool app running on PC.

    5. Established connection to TIDA module from BTool.

    6. Wrote 01:00 to Client characteristic configuration descriptor 5.(It's accepting 01:00 or 02:00)

    7. Wrote 5D (Tried with 59, 5A, 5B, 5C, 5E)to the Simple profile char 1.

    You can the values of Char 1 and Char 5 in attached screen shot.

    But I am not receiving any notifications, can you tell me what are the changes I need to do. If you have already pre build hex binaries please share, I will try with them.

     

    Regards,

    Mily.

  • Mily,

    Can you try with the pre-built binaries found in the TIDA0469-Firmware folder?  Both the simple_peripheral_cc1350lp_app.out and simple_peripheral_cc1350lp_stack.out are provided.  Make sure to flash both binary at the same times.

  • Dear Clam,

    With pre-built libraries I am receiving the notifications. But when I built the binaries won my own, I am not receiving any notifications.

    Below are tools used:

    CCS Version: 7.1.0.00016
    tirtos_cc13xx_cc26xx_2_20_01_08
    simplelink_cc13x0_sdk_2_40_00_20
    ble_sdk_2_02_01_18


    I am importing simplelink app from TIDA-01469 folder (Installation created only zip file, so I extracted the TIDA-01469_BLE_Peripheral_App.zip file) and simplelink stack from C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc1350lp\simple_peripheral\ccs\stack folder.

    Is it the correct directories?

    Regards,
    Mily
  • Mily,

    Glad it is working!

    It sounds like you are doing everything correctly.  The only difference is I usually import the project using "Select archive file" and point to the TIDA-01469 zip file (no extraction needed).  

    Make sure you do a build-clean before building, just in case there are some outdated binaries accidentally included in the zip file.

    If both generated binaries are not working, can you try different combinations of the pre-built and built binaries to find out which built binary is causing the issue?  This will help us further narrow down the issue.  For example, if notification stops working when you flash the pre-built app and built stack, then there's an issue when building the stack.  If it stops working when you flash the built app and pre-built stack, then there's an issue when building the app. 

    --Christina

  • Dear Christina,

    When I am trying to import the archive file I am getting compilation errors, so I imported the project by extracting the zip file.

    1. I tried with clean and build, it didn't worked.
    2. I tried as per suggestion, The problem is with simple link app. Stack is working with pre-built app, vice-versa is not working.

    One more thing I observed was there is a change in the size of the out file generated by simple link app, it was 1127 KB, whereas pre-built binary was 1133 KB.

    Regards,
    Mily.
  • Dear Christina,

    Can you suggest me what are the changes that I need to do in simple link app for enabling notifications? I am unable to identify the issue, when I debug the code data is written to character 5 descriptors, but data is not coming to BTool. Can you suggest me what are the changes required in app. Is there any code versions available for app?

    Is there any optimization settings need to be modified? Current optimizations settings are at level 4.

    Regards,

    Mily.

  • When you import as an archive and build, what compilation errors are you getting?

  • It got resolved, I am able to build from archive. Can you suggest what are the changes required in app to get notifications, I am struggling on this since long time.
  • Mily,

    Just to confirm, does the binary that you built from archive able to get notifications (like the pre-built binary)? Or are you trying to add notification to another field?
  • No, That is where I stuck. I am trying to receive notifications without any modifications in the code.

    1. Clam when I debugged the code data(non zero values) is written to character 5 but when I read character 5 it's all zero' only, why data is not reflected?

    2. Why there is change size of out file generated from the pre-built out file(out file generated by tida simple link app, it was 1127 KB, whereas pre-built binary was 1133 KB)?

    3. Have you tried to build the code to check the notifications are coming?

    I am trying to work on this for long time, still I am unable to identify the problem. Can you help me to solve the problem.

    Regards,

    Mily.

  • Hello Mily,
    I don't have access to the HW to test.
    But did you make sure to use TI ARM Compiler v5.2.6? Refer to the BLE-Stack 2.2.1 release notes to check which compiler should be used. In the SDK Developer's Guide refer to Section 2.6.3.2 for the procedure to install the required TI ARM Compiler version.