Jiang Jiang Jian
1bd2e3f9df
Merge branch 'feature/s3_ulp_support_v4.4' into 'release/v4.4'
...
ulp: Added ULP support for esp32s3 (v4.4)
See merge request espressif/esp-idf!18621
2022-07-01 10:51:18 +08:00
Marius Vikhammer
3c358dd074
ulp: only enable relevant wakeup sources for ULP
...
Do not enable co-processor trap wakeup source when running ULP FSM, as this
could cause spurious wake-ups.
2022-06-29 11:57:05 +08:00
Michael (XIAO Xufeng)
c3c802d9b8
Revert "touch_sensor: forbid from using touch sensor with sleep on ESP32-S3"
...
This reverts commit a84faa3cef
.
2022-06-27 14:33:09 +08:00
Sudeep Mohanty
b72f987c5c
ulp: Added ULP RISC-V support for esp32s3
...
This commit adds support for ULP RISC-V for esp32s3.
Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2022-06-22 13:33:14 +08:00
KonstantinKondrashov
b0a15716ee
esp_hw_support: Fix time spent in light sleep when RTC is used for gettimeofday
...
The esp_timer was not advanced correctly.
2022-06-20 16:17:00 +00:00
jingli
4cc873dfd9
improve flash power down logic
2022-06-20 11:32:20 +08:00
Michael (XIAO Xufeng)
f46bd50884
pm: putting dbias and pd_cur code into same function
2022-06-05 02:33:51 +08:00
morris
0340c2f2bc
Merge branch 'bugfix/keep_rtc8m_in_lightsleep_v4.4' into 'release/v4.4'
...
pm: fixed RTC8M domain power down issue when used as RTC source (v4.4)
See merge request espressif/esp-idf!18075
2022-05-30 09:54:39 +08:00
jingli
25c49588f9
esp_hw_support/sleep: fix cannot lightsleep again after a wakeup from ULP
...
Since ulp wakeup signal are connected to ulp int raw(except esp32), we
need to clear ulp int raw before sleep when ulp wakeup enabled. Otherwise,
if the ulp int raw is already set, chip will not sleep properly.
Closes https://github.com/espressif/esp-idf/issues/6229
2022-05-19 23:13:42 +08:00
Michael (XIAO Xufeng)
17b9cc6b4a
pm: fixed RTC8M domain power issues
...
introduced in e44ead5356
1. The int8M power domain config by default is PD. While LEDC is using
RTC8M as clock source, this power domain will be kept on.
But when 8MD256 is used as RTC clock source, the power domain should
also be kept on.
On ESP32, there was protection for it, but broken by commit
e44ead5356
. Currently the power domain
will be forced on when LEDC is using RTC8M as clock source &&
!int8m_pd_en (user enable ESP_PDP_DOMAIN_RTC8M in lightsleep). Otherwise
the power domain will be powered off, regardless of RTC clock source.
In other words, int8M domain will be forced off (even when 8MD256
used as RTC clock source) if LEDC not using RTC8M as clock source, user
doesn't enable ESP_PDP_DOMAIN_RTC8M, or in deep sleep.
On later chips, there's no such protection, so 8MD256 could't be used as
RTC clock source in sleep modes.
This commit adds protection of 8MD256 clock to other chips. Fixes the
incorrect protection logic overriding on ESP32. Now the power domain
will be determiend by the logic below (order by priority):
1. When RTC clock source uses 8MD256, power up
2. When LEDC uses RTC8M clock source, power up
3. In deepsleep, power down
4. Otherwise determined by user config of ESP_PDP_DOMAIN_RTC8M,
power down by default. (This is preferred to have highest
priority, but it's kept as is because of current code structure.)
2. Before, after the macro `RTC_SLEEP_CONFIG_DEFAULT` decides dbias, the
protection above may force the int8m PU. This may cause the inconsistent
of dbias and the int8m PU status.
This commit lifts the logic of pd int8m/xtal fpu logic to upper layer
(sleep_modes.c).
Related: https://github.com/espressif/esp-idf/issues/8007 , https://github.com/espressif/esp-idf/pull/8089
temp
2022-05-12 15:57:09 +08:00
jingli
74399f5b44
fix _rtc_slow_length being incorrectly optimized by compiler
2022-05-01 23:14:18 +08:00
Michael (XIAO Xufeng)
3503ee41ca
sleep: fixed the issue error log not printed
2022-03-25 14:50:26 +08:00
Michael (XIAO Xufeng)
ea27a8543a
touch_sensor: forbid from using touch sensor with sleep on ESP32-S3
...
This is not supported yet.
2022-03-25 14:50:26 +08:00
Armando
32afe6a498
sleep: restore analog calibration registers after waking up from light sleep
...
Closes https://github.com/espressif/esp-idf/issues/8287
Closes https://github.com/espressif/esp-idf/issues/7921
2022-03-07 11:28:48 +08:00
Michael (XIAO Xufeng)
fd20ac807c
sleep: fixed ext1 cannot wakeup via RTCIO >= 18 issue
...
Closes https://github.com/espressif/esp-idf/issues/8231
2022-02-18 11:44:20 +08:00
Omar Chebib
2ca86a3eaf
Sleep: fix wrong debug level
...
Fix usage of ESP_LOGD in sleep_modes.c which triggers a panic when
used in debug log level.
* Closes https://github.com/espressif/esp-idf/issues/7942
2021-11-22 16:32:21 +08:00
Li Shuai
e75762b02f
sleep: deep sleep does not need cpu and wifi/bt mac retention
2021-11-12 19:38:32 +08:00
Li Shuai
62a4587e87
deep sleep: modified to support dual-core mode
2021-10-20 11:36:22 +08:00
Li Shuai
881e1b0fd5
deep sleep: add deep sleep support for esp32s3
2021-10-20 11:36:20 +08:00
fuzhibo
057b9d61b5
driver(touch): support touch sensor for esp32s3 platform
2021-10-08 10:39:46 +08:00
Li Shuai
58292a7d22
Power Management: add XTAL power domain to control whether external 40MHz xtal is powered down during sleep
2021-09-16 14:43:43 +08:00
Li Shuai
e44ead5356
Power Management: add RTC8M power domain to control whether internal 8m oscillator is powered down during sleep
2021-09-13 17:36:54 +08:00
Jiang Jiang Jian
316988bd2d
Merge branch 'feature/support_esp32s3_cpu_tagmem_retention' into 'master'
...
support esp32s3 cpu + tagmem retention
See merge request espressif/esp-idf!14579
2021-09-06 03:47:44 +00:00
Li Shuai
15fc449793
light sleep: separate sleep retention function
2021-08-24 11:54:47 +08:00
Li Shuai
90a0a83c0f
light sleep: separate sleep wifi/bt mac bb function
2021-08-23 10:25:04 +08:00
Li Shuai
b0757dfcfa
light sleep: separate sleep gpio function
2021-08-23 10:22:12 +08:00
Zim Kalinowski
dcff1baab5
Merge branch 'bugfix/fix_esp32s2_deep_sleep_timer_wake_up_fail' into 'master'
...
rtc: fix esp32s2 fall into sleep forever when deep-sleep time is set to 0
Closes IDF-2712
See merge request espressif/esp-idf!12438
2021-08-19 03:20:15 +00:00
Li Shuai
a82f33c9b5
fix rtc register read error and add workaround for rtc bus isolate issue
2021-08-10 12:01:29 +08:00
Jan Brudný
83bd078eb4
esp_hw_support: update copyright notice
2021-08-05 17:38:43 +02:00
Konstantin Kondrashov
4972605b16
esp_common: Add API for IPC to run small pieces of code on the other CPU, in the context of the level 4 interrupt
2021-08-03 14:35:29 +08:00
Li Shuai
d9aba74c0d
light sleep: certain peripherals are powered up in sleep
2021-07-28 15:41:52 +08:00
Li Shuai
5a3d2b1874
light sleep: modify some sleep params for esp32s3
2021-07-28 15:41:47 +08:00
Chen Yi Qun
835c0ca32c
fix esp32s2 fall into sleep forever when deep-sleep time is set to 0
2021-07-19 14:43:47 +08:00
morris
1560d6f1ba
soc: add reset reasons in soc component
2021-07-13 10:45:38 +08:00
Shu Chen
5e3689ae0f
esp32h2: update esp_system and esp_hw_support to support esp32h2
2021-07-01 19:53:11 +08:00
Li Shuai
2bacd7abe2
fix wifi mac sleep bug when wifi is initialized multiple times
2021-05-18 20:03:09 +08:00
Michael (XIAO Xufeng)
58490418ad
Merge branch 'feature/merge_c3_caps' into 'master'
...
soc: merge C3 caps into a single soc_caps.h
See merge request espressif/esp-idf!13337
2021-05-06 05:56:42 +00:00
ninh
f1ee8aa14f
esp_wifi: fix nolightsleep after wifi init
2021-04-29 18:50:28 +08:00
Marius Vikhammer
504a1e6102
soc: merge C3 caps into a single soc_caps.h
2021-04-28 14:42:35 +08:00
Shu Chen
ff3320ca8a
esp32c3: fix typos of c3 path
2021-04-23 18:11:39 +08:00
ChenJianxing
dd14e97375
esp_wifi: support esp32s3 beta3 wifi
2021-04-16 00:38:20 +08:00
Michael (XIAO Xufeng)
f5f3c7143c
Merge branch 'feat/c3_driver_api_cleanup_gpio' into 'master'
...
gpio, rtcio: removed unsupported features on different targets
See merge request espressif/esp-idf!13103
2021-04-13 06:51:33 +00:00
Jiang Jiang Jian
d6a2a67006
Merge branch 'bugfix/fix_some_pm_issue' into 'master'
...
esp_pm: fix an issue and add an interface
Closes IDF-2984 and IDF-2944
See merge request espressif/esp-idf!12787
2021-04-13 03:42:46 +00:00
Renz Bagaporo
586023790e
esp_system: move sleep modes to esp_hw_support, power down light sleep to esp_pm
2021-04-07 17:53:37 +08:00