本帖最后由 lulugl 于 2023-4-6 06:40 编辑
在文档 RM0490 Reference manual 《STM32C0x1 advanced Arm®-based 32-bit MCUs》手册中22.5中手册描述RTC 中断是不能唤醒 standby或者shutdown的:
早上又阅读了文档UM3029《 Description of STM32C0 HAL and low-layer drivers》其中第274页有说明:
- Standby mode
- • Entry:
- – The Standby mode is entered through HAL_PWR_EnterSTANDBYMode() API, by setting SLEEPDEEP
- in Cortex control register.
- • Exit:
- – WKUP pin edge detection, RTC event (alarm, timestamp), LSE CSS detection, reset on NRST pin,
- IWDG reset & BOR reset.
- Exiting Standby generates a power reset: Cortex is reset and execute Reset handler vector, all registers in the
- Vcore domain are set to their reset value. Registers outside the VCORE domain (RTC, WKUP, IWDG, and
- Standby/Shutdown modes control) are not impacted.
- Shutdown mode
- In Shutdown mode, voltage regulator is disabled, all clocks are off except LSE, RRS bit is cleared. SRAM and
- registers contents are lost except for backup domain registers.
- • Entry:
- – The Shutdown mode is entered through HAL_PWREx_EnterSHUTDOWNMode() API, by setting
- SLEEPDEEP in Cortex control register.
- • Exit:
- – WKUP pin edge detection, RTC event (alarm, timestamp), LSE CSS detection, reset on NRST pin.
- Exiting Shutdown generates a brown out reset: Cortex is reset and execute Reset handler vector, all registers are
- set to their reset value but ones in backup domain.
两个模式都注明了RTC event是可以退出的。是不是两个文档有冲突呀。
|