Part Number: CC2640R2F
Dear TI Expert,
One of my customer is debugging ON_CHIP OAD with CC2640R2F Lauchpad + BLE STACK---c2640r2_sdk_1_30_00_25.
I found in simple_peripheral_oad_onchip demo, when define FEATURE_OAD_ONCHIP, simpleprofile is disabled . Is this because flashsize limited?
To enable Simpleprofile, we removed all FEATURE_OAD_ONCHIP in simple_peripheral.c. Is this the right process to enable Simpleprofile with keeping the on-chip OAD function ?
We found that when removed FEATURE_OAD_ONCHIP , SIMPLEPROFILE_CHAR4 cann't nofily when it's value changed in below PeriodicTask. But Everything is all right if we do it in another non-Periodic function.
SimpleBLEPeripheral_performPeriodicTask is running normally every 500ms as we set , we can success R/W to SIMPLEPROFILE_CHAR3, only SIMPLEPROFILE_CHAR4's notification failed.
Do you have any suggestion for this case? Thanks a lot.
static void SimpleBLEPeripheral_performPeriodicTask(void)
{
uint8_t valueToCopy;
// Call to retrieve the value of the third characteristic in the profile
if (SimpleProfile_GetParameter(SIMPLEPROFILE_CHAR3, &valueToCopy) == SUCCESS)
{
// Call to set that value of the fourth characteristic in the profile.
// Note that if notifications of the fourth characteristic have been
// enabled by a GATT client device, then a notification will be sent
// every time this function is called.
SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR4, sizeof(uint8_t),
&valueToCopy);
}
}