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/LAUNCHXL-CC2640R2: notification crashes application

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: CC2640R2F, CC2650

Tool/software: Code Composer Studio

Hi, 

I am using a modified version of the Sensor Tag project with the CC2640R2 in order to use BLE5. I've followed every porting guide and everything was working fine, I was able to recover data from a couple of sensors. I did not change the profile files (ex barometerservice.c). My project now requires me to be able to use the notify option of the barometer service and every time I try to activate this function in NRF connect or BLE scanner I get disconnected from the device and it does not advertise again. I sometimes get one data back after activating the notify and then the device disconnect and crash.

I am getting this error with the barometer, the humidity and the movement service for now (I did not test the other one).

It's odd because everything else is working fine and I did not have this problem with the original SensorTag development kit.

Any help will be appreciated

thanks

Seb

  • Hi Seb,

    Are there hardware exceptions when the device crashes? (Or is it stuck anywhere odd?)

    Have you checked RAM usage?

    Actually, what have you checked so far?

    Regards,
    Rebel
  • Hi Rebel,

    The RAM usage is below 70% so I think it's not the problem. I may have forgotten to mention that the base application is from Simple BLE Peripheral in my original post.

    After a few test, I have noticed that I am always able to receive one notification from a service characteristic before the crash. Also, when I use the simple_gatt_service example given in the ble5 simple peripheral project, the notification works well and I always get the notification when a value as changed.

    Since I ported the sensor Tag applications and services from the old BLE stack maybe there's something I forgot to change or there is something incompatible? I don't fully understand the callback functions and did not change anything in the service files (ex. barometerservice.c).

    I don't know where to start and what to do regarding this issue.

    thanks for the help

    Seb

  • Hi Sebastian,

    I ported the CC2650 Launchpad Sensortag Example Program to CC2640R2 launchpad using simple peripheral from SDK 1.00 as base. I just followed the guide and it worked. I suggest you review my code porting changes and compare to yours. See, my blog link at my signature. The blog post is "TI CC2640R2F SensorTag". There is a github link in the blog post.

    - kel
  • Thanks a lot, I will compare my changes with yours in order to fix the issue

    Regards,

    Seb