雷竞技电竞平台对话半导体客户支持- param->报告。数据 https://support.dialog-semiconductor.com/resource-keywords/param-reportdata wrap_platform_reset处理程序 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/wrapplatformreset-handler < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性=“rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量——软件< / > < / div > < / div > < / div > < div class = "字段field-name-body当固件执行几分钟后,设备进入arch_system.c的wrap_platform_reset处理程序。当设备进入arch_system.c的wrap_platform_reset处理程序后,设备进入arch_system.c的wrap_platform_reset处理程序。 < p > <代码> uint8_t广告= true; < /代码> < / p > < p > <代码>空白user_adv_stopped (uint8_t状态)< br / > {< br / > arch_set_pxact_gpio (); < br / > / /改变角色的差距中央< br / >广告= false; < br / > user_app_configuration_func (GAP_CENTRAL_MST); < br / >} < /代码> < / p > < p > <代码>空白user_scan_complete (uint8_t状态)< br / > {< br / >广告= true; < br / > user_app_configuration_func (GAP_PERIPHERAL_SLV); < br / >} < /代码> < / p > < p > <代码>空白user_app_on_set_dev_config_complete () < br / > {< br / > arch_set_pxact_gpio();
if(advertising)
{
app_easy_gap_non_connectable_advertise_start();
}
else // Ready to scan
{
// start a scan and a timer to stop it after some time
user_scan_start();
app_easy_timer(200, user_stop_scan);
}
}

void user_on_adv_report_ind (struct gapm_adv_report_ind const * param)
{
volatile static uint8_t param_data[ADV_DATA_LEN];
param_data[23] = param->report.data[23];
param_data[24] = param->report.data[24];
param_data[25] = param->report.data[25];
param_data[26] = param->report.data[26];
}

Depending on what values i have received in param_data, i am taking further action. I have used pwm of timer0 and timer2 for further processing of data received in advertising string. Except this I am not performing any extra functionality.

Now If I run the firmware on discovery kit, after few minutes(approximately 5-7) execution stops and go to wrap_platform_reset handler. This happens only if i receive any data in user_on_adv_report_ind function and perform further operation. If i do not perform further action on received data then firmware does not go to wrap_platform_reset handler. Can you let me know the reason why it is happening and what is the solution for that?

Thanks and Regards,
Ruchi Patel

Device: 
2018年4月5日星期四07:59:53 +0000 前腿帕特尔 168204年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/wrapplatformreset-handler#comments