Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samples: boards: stm32 power_mgt stdby and shutdown #79548

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

FRASTM
Copy link
Collaborator

@FRASTM FRASTM commented Oct 8, 2024

Polarity low is wrong : wakeup pin 2 is active low
so the wakeup must be detected on the rising edge
This is the default wakeup pin2 config.
Apply the recommended sequence to enter low power standby

Fixes #79451

@FRASTM FRASTM force-pushed the issue79451 branch 2 times, most recently from 63c856c to 66024c7 Compare October 8, 2024 10:02
Polarity low is wrong : wakeup pin 2 is active low
so the wakeup must be detected on the rising edge
This is the default wakeup pin2 config.
Apply the recommended sequence to enter low power standby

Signed-off-by: Francois Ramu <francois.ramu@st.com>
After flashing the board, the reset pin and the software
reset are detected as reset cause by the device
Put this in the sample to match the rule

Signed-off-by: Francois Ramu <francois.ramu@st.com>
@FRASTM
Copy link
Collaborator Author

FRASTM commented Oct 8, 2024

Running the samples/boards/st/power_mgmt/standby_shutdown/ on the samples/boards/st/power_mgmt/standby_shutdown/

*** Booting Zephyr OS build v3.7.0-4029-g9fa64e2d3a39 ***

Reset cause: Reset soft

Device ready: disco_l475_iot1


Press and hold the user button:
  when LED2 is OFF to power off
  when LED2 is ON to enter to Standby Mode

Is not possible automatically as the test is waiting for user button pressed

User button pressed
Powering off
Release the user button to wake-up
*** Booting Zephyr OS build v3.7.0-4029-g9fa64e2d3a39 ***

Reset cause: Shutdown mode or power up

Device ready: disco_l475_iot1

or

User button pressed                                                             
Standby Mode requested                                                          
Release the user button to exit from Standby Mode                               
�*** Booting Zephyr OS build v3.7.0-4029-g9fa64e2d3a39 ***                      
                                                                                
Reset cause: Standby mode                                                       
                                                                                
Device ready: disco_l475_iot1 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Samples Samples platform: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The STM32 standby_shutdown sample has a simple mistake
3 participants