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

PSoC™ 4

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

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
SayaniS_66
Moderator
Moderator 10 likes received First like received
Moderator

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
SayaniS_66
Moderator
Moderator 10 likes received First like received
Moderator

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.

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

thank you. will try and update.

0 Likes