Part Number: CC2640
Tool/software: Code Composer Studio
Hi, I have developed a program for this board. it started out at ProjectZero. I used BDS to develop a custom profile with 3 services and a total of about 6 characteristics.
The application utilises a state machine of sorts. BLE reading and writing seems to be working fine, I have an iPhone app that I am using to control the CC2640.
I can control the state of the machine by writing to some characteristics from the iPhone.
I have set the CC2640 to update characteristic values at an interval of say 5S and this works fine.
However, in one state, the state_task must continually sample the ADC and notify at a rate much faster than the 5S. I have attempted to do this just by using
MeasurementService_SetParameter(MS_MEASUREMENT_ID, sizeof(testValue), &testValue );
But this causes the task to hang, If I comment out the above call then the task keeps working as it should (obviously without the notification) but with the line it just freezes.
Using BDS I set.
Read = write = sigened write = write without response = indicate = broadcast = EXCLUDED
Notify = MANDATORY
Any Idea what I am missing? or what I have done incorrectly?