Main loop stuck when BLESS DEEPSLEEP and WDT are used at the same time.

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hello.

I am using CYBLE 212011-01 and made project that use BLESS DEEPSLEEP power mode while advertising, and interrupt by WDT every 100ms.

After few seconds since started this program, main loop is stuck but the WDT fired every 100ms and the  main loop never recovered.

There aren't any problems if I use BLESS SLEEP power mode and ACTIVE with WDT.

Can anyone help me to solve this problem?

Best regards.

blesstest_uart.jpg

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello Riku Ueda,

Please go through the modified project which I was attached.

Please let me know if this helps you.

Thanks,

PSYU.

View solution in original post

5 Replies
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello Riku Ueda,

Please enable the WDT in the firmware using the following API. This API only will enable the WDT and generates interrupt, without this API interrupt won't be generated.

        Void CySysWdtEnable (uint32  counterMask)

Please refer the section Watchdog Timers configuration in the datasheet for more information on WDT.

Thanks,

P Yugandhar.

Anonymous
Not applicable

Thank you for your reply.

I inserted the CySysWdtEnable() after setting WDT and then It worked correctly for a while but suddenly stucked...

Can't I use WDT and BLESS_DEEPSLEEP at the same time without special configuration?

0 Likes
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello Riku Ueda,

We can use WDT and BLESS DEEPSLEEP at the same time where WDT uses low frequency clock (WCO) whenever system enters into Deep sleep mode low frequency clocks are activated.

Will send you the modified project.

Thanks,

PSYU.

lock attach
Attachments are accessible only for community members.
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello Riku Ueda,

Please go through the modified project which I was attached.

Please let me know if this helps you.

Thanks,

PSYU.

Anonymous
Not applicable

Awesome!

I made sure BLE and WDT didn't stop all day long.

Your project is helpful, thank you so much.

Riku.

0 Likes