Synchronize between WDT and BLE advertisment interrupt

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
D_Sd_3235936
Level 4
Level 4
25 sign-ins 50 questions asked 25 replies posted

Hi,

Is there a simple way to keep WDT and BLE event ( of Advertisement) as synchronized as possible?

My WDT interrupt is every 1 sec. And my Advertisement is every 3 seconds.

Thanks.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
SayaniS_66
Moderator
Moderator
Moderator
10 likes received First like received

Hi,

We can use CYBLE_DEBUG_EVT_BLESS_INT event which is a event from BLESS interrupt ( which triggers at every advertisement event or connection event ), enabled when StackMode parameter is set to Debug. To put the StackMode parameter to debug , navigate to tools -> select options ->go to design entry -> select component catalog -> check the enable param edit views. Now, open the BLE component customiser -> right click on general tab -> select show expression view -> change the StackMode option from release to debug.

To sync the advertisement  interrupt with WDT interrupt you can enable the WDT interrupt in this event(CYBLE_DEBUG_EVT_BLESS_INT).

Please refer to the attached project for reference.

-Sayani.

View solution in original post

2 Replies
lock attach
Attachments are accessible only for community members.
SayaniS_66
Moderator
Moderator
Moderator
10 likes received First like received

Hi,

We can use CYBLE_DEBUG_EVT_BLESS_INT event which is a event from BLESS interrupt ( which triggers at every advertisement event or connection event ), enabled when StackMode parameter is set to Debug. To put the StackMode parameter to debug , navigate to tools -> select options ->go to design entry -> select component catalog -> check the enable param edit views. Now, open the BLE component customiser -> right click on general tab -> select show expression view -> change the StackMode option from release to debug.

To sync the advertisement  interrupt with WDT interrupt you can enable the WDT interrupt in this event(CYBLE_DEBUG_EVT_BLESS_INT).

Please refer to the attached project for reference.

-Sayani.

thank you. will try and update.

0 Likes