HI,
I am using DA14531 based custom board,with SDK 6.0.12.1020.2.I am using ble_app_barebone example.
In this I am trying to stop the advertisement using function app_easy_gap_advertise_stop() in adv_data_update_timer_cb()
and commenting user_app_adv_start(); in function user_app_adv_undirect_complete(uint8_t status).But find that the code halts at __asm("BKPT #0\n").
if ((GetWord16(SYS_STAT_REG) & DBG_IS_UP) == DBG_IS_UP)
__asm("BKPT #0\n");
else
{
(1);
}
I want to stop the advertising for some time and start it again but I am unable to do it.
让我知道这个问题is and solution for it.
Regards,
Abhijeet
Device:
Hi deshpandead,
First of all thanks for your inquiry online. This indication means that the Watchdog timer is expired, or an NMI/Hardfault is occurred. Please check section 22 Watchdog Timer from the datasheet. The attached code snippet in the hardfault_handler.c or nmi_handler.c file?
This functionality has already been implemented in the in the ble_app_sleepmode example of the SDK. Specifically, the device starts undirected advertising by default. In user_app_adv_start () an “app easy” timer is set. After a predefined amount of time (APP_ADV_DATA_UPDATE_TO), the timer expires and the adv_data_update_timer_cb() callback function is getting triggered. This function calls the app_easy_gap_advertise_stop(), so the system stops advertising and the user_app_adv_undirect_complete() is executed. This function puts the chip into sleep mode. Only external (GPIO) wakeup events can wakeup processor. In case of ble_app_barebone example, you should follow the same procedure as in ble_app_sleepmode example. Please let me know if have any other questions/problem on how to implement it.
Can you please share the user_app_adv_undirect_complete() that you are using?
Generally, we strongly recommend first checking the tutorials below to getting started.
Additionally, you will be able to find great amount of SW,HW and RF FAQs (Frequently Asked Questions) for DA14531 in this linkDA14531_FAQs (HTML).
To have a better view for the SDK6 architecture, APIs etc theUM-B-119: DA14585-DA14531 SW Platform Referencedocument is recommended!
Thanks, PM_Dialog