Part Number: LAUNCHXL-CC2640R2
Tool/software: TI-RTOS
Hi,
My basic problem is that: I cannot add a second thread to the code under the SDK 3.10.0.15/blestack/OAD_OffChip example to use my I2C sensors.
I have a cc2640R2 launch board and I wrote code by your example under the SDK 2.40.0.32/blestack/simple_pheripheral. I added a second thread to that code by using this link: http://dev.ti.com/tirex/content/simplelink_academy_cc2640r2sdk_2_30_02_00/modules/blestack/ble_posix/ble_01_posix.html and it works just as I want without any problem.
Then, I needed to add OAD property to my firmware and (by the way, I upgrade my SDK to 3.10.0.15) I ported my code under the SDK 3.10.0.15/blestack/OAD_Off_Chip example and it does not work. In my application, I started the second thread via BLE by using a mobile app. With the mobile app, I can do whatever I want with characteristics, sending and getting data, etc but when I start the thread, my BLE connection is broken. In the meantime, I am sure that, I can start the thread and my thread runs without any problem. I checked it by debugging.
Then, I thought that maybe I did some mistakes while code porting because my code is not small. To test it, I just directly import the OAD_Off_Chip example to my CCS and I directly add a second empty thread just like the link above said (I added thread calling function in "main.c") and I observed the same problem, thread runs without any problem (I can see it in debug again) but BLE corrupts. I cannot see my device in the mobile app's scan result page (I think; because, in this condition, I immediately start the thread just after starting BLE stack in main.c).
My CCS ver: 8.3.0.00009
Could you please help me with this issue.
Thanks,
Doıgus