Enter in Hibernate Mode not works - ModusToolbox

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

cross mob
gisc_1091076
Level 3
Level 3
10 questions asked 5 questions asked First question asked

Hi,

I have been using the evaboard psoc 62S2 43012 (PSoC 6 - platform ModusTooblx). I have started the example AnyCloud_BLE_CapSense_Buttons_and_Slider. I want insert in this application this functionality, that when i have pressed the btn1 the board enter in hibernate mode. It wake up when trigger WDT. But i have a problem, the board not enter in hibernate mode. I have insert only function :

cyhal_syspm_hibernate(CYHAL_SYSPM_HIBERNATE_WDT)

I must add antoher code part ?

Why the my application not enter in hibernate mode ?

Can you send me a simple project that enter correctly in mode of hibernate to use with ModusToolbox and with evaboard psoc 62S2 43012 ?

Thanks you.

0 Likes
1 Solution

The callbacks were put there in order to allow each block to register that it wants to be told of an impending low power state.... and to have the block be able to say... yes do this... or no dont do this... it was also put there so the blocks could perform their own work before and after the low power mode.

This was code that you probably had in one function... but given the increase complexity of systems available in PSoC 6 we put in more flexibility... which yes increases the complexity somewhat.

There is a nice appnote that Greg wrote on this topic.

https://www.cypress.com/file/385936/download

View solution in original post

0 Likes
3 Replies
ShipingW_81
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

The code example for hibernate mode on psoc 62S2 43012 board is coming soon.

Currenly, please refer to PSOC 6 HAL documentation for the usage details for the API cyhal_syspm_hibernate() - https://cypresssemiconductorco.github.io/psoc6hal/html/group__group__hal__syspm.html

0 Likes

Hi,

Why i must implementation the callback to activate the hibernate mode ? To explain me better, i have used the PSoC Creator for many years and on the creator is necessary add only function di hibernate to activate this mode. While in PSoC 6 using SDK of modusToolbox is necessary implementation of the callback to activate the hibernate mode, to what reason ?

0 Likes

The callbacks were put there in order to allow each block to register that it wants to be told of an impending low power state.... and to have the block be able to say... yes do this... or no dont do this... it was also put there so the blocks could perform their own work before and after the low power mode.

This was code that you probably had in one function... but given the increase complexity of systems available in PSoC 6 we put in more flexibility... which yes increases the complexity somewhat.

There is a nice appnote that Greg wrote on this topic.

https://www.cypress.com/file/385936/download

0 Likes