Hello everyone,
I'm facing an error while trying to scan(as a central) by following the
In this URL they have provided cause for the error
"Check with the debugger if the user_scan_start() function gets triggered and also check the completion callback if it gets triggered and what is the error code that you are getting, if its an GAP_ERROR_TIMEOUT and you get it after about 8 seconds of activity that means that you are scanning and the NMI is triggered when you reach the completion callback of the scanning procedure. Regarding the files and the code that you ve pasted i dont see anything wrong with them, the NMI you get means that the code stays for quite sometime stuck in a instruction (可用水()在主吗loop if you have the sleep disabled and no BLE activity for more than 2.6 seconds which is the maximum time that the watchdog can measure).As far as an example is concern, i suppose that you are allready familiar with the DSPS code from the host side."
What are the code changes needed in main loop to not get stuck in instruction.
it's getting stuck at WFI() every time
else if (sleep_mode == mode_idle)
{
if (((!BLE_APP_PRESENT) && check_gtl_state()) || (BLE_APP_PRESENT))
{
//wait for an interrupt to resume operation
WFI();
}
}
Please help on this to work.
Regards,
Harish
Hi HarishKumar,
Thanks for your question online. Could you please share the changes you have done in order to configure the DA14580 as a GAP Central role? In which SDK example are you working? Are you using any of the sleep modes?
Thanks, PM_Dialog