DK1: how to power off the board
Hi.
Is there a way to properly power off the board without using the console's poweroff command?
Tried to press wake-up button for 10 seconds with no effect...
Regards,
Vlad.
Hi.
Is there a way to properly power off the board without using the console's poweroff command?
Tried to press wake-up button for 10 seconds with no effect...
Regards,
Vlad.
Hi,
For I2C, see https://wiki.st.com/stm32mpu/wiki/I2C_i2c-tools
STPMIC is at address 0x33 on I2C4 bus (peripheral address of I2C4 is 0x5C002000).
There is also I2C command available on uBoot.
Note: wrong STPMIC1 control (i.e. too high voltage) might brick the board.
Long key press shutdown is safe for electrical point of view (i.e. power sequence is ensured).
Linux is not aware of this shutdown, so no filesystem sync is done, you could loose data not really saved on Flash (Filesystem itself is self repairing on next boot).
If you want safe power-off, you should write your own code to catch a button press and go in a clean shutdown.
note that to allow 'shutdown -h 0' to enter in Shutdown instead of Standby, you should change the 'system_off_soc_mode' in Device Tree.
&pwr_regulators{
status = "okay";
secure-status = "okay";
/* USER CODE BEGIN pwr_regulators */
system_suspend_supported_soc_modes = <
STM32_PM_CSLEEP_RUN
STM32_PM_CSTOP_ALLOW_LP_STOP
STM32_PM_CSTOP_ALLOW_STANDBY_DDR_SR
>;
/* system_off_soc_mode = <STM32_PM_CSTOP_ALLOW_STANDBY_DDR_OFF>; */
system_off_soc_mode = <STM32_PM_SHUTDOWN>;
vdd-supply = <&vdd>;
vdd_3v3_usbfs-supply = <&vdd_usb>;
/* USER CODE END pwr_regulators */
};Regards.
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.