about the reset of the system

2 posts / 0 new
Last post
liuluan002
Offline
Last seen:5 months 4 weeks ago
加入:2015-11-27 14:24
about the reset of the system

Hi dialog,

I am checking the system by using the
scanning function for 7.8s as a loop, once it reach the 7.8s, I will reset the system by the following code and restart the scanning function again. However when i run it for many times, the system seems stop reset the system. Any ideas?

case GAPM_SET_DEV_CONFIG:
{

if(param->status != GAP_ERR_NO_ERROR)
{
ASSERT_ERR(0); // unexpected error
}
else
{

app_scan();

ke_timer_set(APP_SWITCH_ROLE_TIMER, TASK_APP, 768); //768*10ms

}
}
break;

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 34
Hi liuluan002,

Hi liuluan002,

I dont see something suspicious in tha piece of code that you ve pasted, you will have to check where the system ends up and resets, in the platform_reset() function probably? you can place a break point there and check if your code goes through that function. Also one suggestion, use the timer api and not ke_timer_set() function.

Thanks MT_dialog