Sleep Examples for CYW20719B2, Modus ToolBox

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

cross mob
ChCh_3584941
Level 4
Level 4
50 sign-ins 25 replies posted 25 sign-ins

Can you point me to any examples for enabling PDS and SDS Sleep for the CYW20179B2 chip for ModusToolBox V2.1 SDK Version 2.7.1?  Or to a comprehensive guide for implementing & verifying specific Sleep use cases?

I am familiar with the 'low power sensor' example that was provided in WICED Studio (6.4) for the CYW20719B1, ...  and this example seems to demonstrate the exact behavior we are looking to enable in our design:

     - Indefinite / Extended Sleep

- Wake from SDS mode with a GPIO signal and wake with a warm-boot option.

I ported the source code for this demo to the Modus ToolBox environment and am able to compile and load it to the B2 EVB, but the behavior is significantly different in that the application seems to wake itself from the Sleep state automatically after ~10 sec and always wakes in a cold-boot state, ... I assume that this reflect some underlying difference in the SDK behavior between the version in WICED Studio and V2.7.1 in ToolBox 2.1?

I have the App note:  "CYW20706_and_CYW20719_Low-Power_Modes.pdf" and have looked at the sleep.h header file, but both of these provide little actual information about how to enable and verify Sleep functionality through the functions and parameters exposed in the API. 

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

Please refer Low power application from https://github.com/cypresssemiconductorco/mtb-examples-CYW920819EVB-02-btsdk-hal/tree/master/hal/low... (Note: If you are using the latest BTSDK with latest MTB, use https://github.com/cypresssemiconductorco/mtb-example-btsdk-hal-low-power) .

This is demonstrated for 208xx devices. But I hope, you can port (mostly you can use the same code. Since platform is different, you have to expect slight modification in the code.) it into 20719B2 as well.

Please refer the low power guidelines: https://www.cypress.com/documentation/application-notes/an225270-cyw208xx-ble-low-power-guidelines 

 

Thanks,

-Dheeraj

View solution in original post

0 Likes
8 Replies
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

Please refer Low power application from https://github.com/cypresssemiconductorco/mtb-examples-CYW920819EVB-02-btsdk-hal/tree/master/hal/low... (Note: If you are using the latest BTSDK with latest MTB, use https://github.com/cypresssemiconductorco/mtb-example-btsdk-hal-low-power) .

This is demonstrated for 208xx devices. But I hope, you can port (mostly you can use the same code. Since platform is different, you have to expect slight modification in the code.) it into 20719B2 as well.

Please refer the low power guidelines: https://www.cypress.com/documentation/application-notes/an225270-cyw208xx-ble-low-power-guidelines 

 

Thanks,

-Dheeraj

0 Likes
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi, 

An update regarding the low power mode SDS in 20719 chip.

We have observed an issue with SDS mode, and our development team is fixing it. Fix will be available in the next SDK release.

 

Thanks,

-Dheeraj

0 Likes
ChCh_3584941
Level 4
Level 4
50 sign-ins 25 replies posted 25 sign-ins

Hi Dheeraj;

Thank you for the update.  The examples you pointed to did not seem to be particularly relevant as they seem to reference a different Sleep API from what is available for the 20719 Chip in SDK version 2.7.1.  At this point we are still not able to enable the behavior that we need for our design.

Can you clarify a couple points:

1.  When will the fix be available?

2.  Will be fix only be available by upgrading to the new SDK, or will a patch for SDK 2.7.1 be made available?

3.  Will the new SDK require updating to ModusToolBox V2.2?

Here is the scenario that we need supported, can you verify that the revised SDK will support this?

We need to support a Sleep mode that can last for an indefinite period with these conditions:

  - BLE Advertising is OFF  (i.e. No Advertising)

  - RTC (based on internal 32kHz oscillator with connected crystal) continues to run and update while in Sleep

  - Device wake-up from two sources:

     1.  GPIO Pin, with falling edge / Logic Low indicating 'Wake', ... in non-sleep mode this GPIO should function as a normal GPIO input with Falling Edge interrupt enabled.

     2.  Wake based on RTC 'Alarm' (RTC matches a pre-set value).

0 Likes
ChCh_3584941
Level 4
Level 4
50 sign-ins 25 replies posted 25 sign-ins

Hello, ... is there any update on the Sleep mode fixes?

0 Likes
ChCh_3584941
Level 4
Level 4
50 sign-ins 25 replies posted 25 sign-ins

Asking again if there is any update or further information on the SDS Fix?

 

0 Likes
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

I think we missed your query. Sorry for that.

The issue will be fixed in the next SDK release, hopefully in a month or so. 

Yes, you need the latest Modustoolbox software to use the latest SDK. I would suggest you to migrate to the latest Modustoolbox software.

PSD and SDS modes can be used in 20719 as given in the datasheet. Kindly check page number 14 for its conditions. i believe, the conditions given by you can be achieved in the SDS mode, because in "Shut Down Sleep (SDS) mode, everything is turned off except I/O Power Domain, RTC, and LPO. The device can come out of this mode either due to BT activity or by an external interrupt".

 

Thanks,

-Dheeraj

 

0 Likes
ChCh_3584941
Level 4
Level 4
50 sign-ins 25 replies posted 25 sign-ins

Hi Dheeraj;

Thanks for the update.  The Current Public version of the SDK is 2.9?  

0 Likes