Planck (Lu Zeyu)
5a5fae5f1e
fix(intr_flags_to_level): fix value returned one more than correct value
2023-08-21 10:09:00 +08:00
Jiang Jiang Jian
7a0e39d5f0
Merge branch 'feature/improve_pd_vddsido_help_doc_v5.0' into 'release/v5.0'
...
docs(esp_hw_support): improve ESP_SLEEP_PSRAM/FLASH_LEAKAGE_WORKAROUND help doc in Kconfig (backport v5.0)
See merge request espressif/esp-idf!25235
2023-08-15 21:04:23 +08:00
morris
a55ab7cb5d
Merge branch 'feature/usb_host_restrict_ahb_errata_workaround_to_esp32s2_eco0_v5.0' into 'release/v5.0'
...
USB Host: Restrict ESP32-S2 AHB errata workaround to only ECO0 chips (v5.0)
See merge request espressif/esp-idf!25053
2023-08-08 10:12:42 +08:00
wuzhenghui
cb139b4386
change(esp_hw_support): improve ESP_SLEEP_PSRAM/FLASH_LEAKAGE_WORKAROUND help doc in Kconfig
2023-08-07 11:35:49 +08:00
wuzhenghui
652bc76354
fix(lightsleep): fix access pu_cfg after sleep wakeup which is linked to flash
2023-07-31 21:36:27 +08:00
wuzhenghui
2236c2fd34
fix(lightsleep): suspend cache before goto sleep to avoid cache load wrong data after spi io isolation
2023-07-31 15:35:00 +08:00
Darian Leung
70dde52e91
soc: Move revision MAX/MIN static assert to esp_hw_support
...
Previously, "soc/chip_revision.h" contained a static assert to check that the
CONFIG_ESP_REV_MIN_FULL <= CONFIG_ESP_REV_MAX_FULL. There are two issues with
this assert:
- Contained in a header file, so it is only compiled if the "chip_revision.h"
is included somewhere
- CONFIG_ESP_REV_MIN_FULL and CONFIG_ESP_REV_MAX_FULL are defined in
"esp_hw_support", which is a G0 component. This creates a reverse dependency
of G0 on G1.
This commit moves the static assert "revision.c" in "esp_hw_support".
2023-07-28 11:36:20 +02:00
Lou Tianhao
3727d56c82
Change: rewrite EXT1 triggle mode all_low to any_low when not esp32
2023-07-25 17:53:33 +08:00
Laukik Hase
38c0475616
fix(esp_hw_support): Fix different signed comparison in esp_ptr_in_drom
...
- Closes https://github.com/espressif/esp-idf/issues/11653
- Closes https://github.com/espressif/esp-idf/issues/11865
2023-07-14 10:52:32 +05:30
Jiang Jiang Jian
c10505f939
Merge branch 'bugfix/fix_esp32s3_psram_access_failed_in_dfs_v5.0' into 'release/v5.0'
...
esp_pm: fix esp32s3 psram access failed when dfs is enabled (backport v5.0)
See merge request espressif/esp-idf!24199
2023-07-11 12:19:43 +08:00
wuzhenghui
f030c92d05
bugfix: fix adc current leakage by sar_adc on v5.0
2023-06-21 17:43:53 +08:00
wuzhenghui
65e8cb55eb
bugfix: fix esp32s3 psram access failed when dfs is enabled
2023-06-15 14:14:21 +08:00
Michael (XIAO Xufeng)
1b04acf68f
Merge branch 'bugfix/fix_chip_broken_bug_in_monitor_mode_c2c3s2s3_to_v5.0' into 'release/v5.0'
...
ESP32S2/C3/C2: fixed S2 dangerous power parameters in sleep modes and support S2/C3/C2 different sleep mode(v5.0)
See merge request espressif/esp-idf!23754
2023-06-13 17:50:21 +08:00
Jiang Jiang Jian
a591730d29
Merge branch 'bugfix/tempsensor_wifi_conflict_v5.0' into 'release/v5.0'
...
temperature_sensor: Fix issue that have conflict with phy / Fix phy pwdet and tsens power cannot be set twice issue (v5.0)
See merge request espressif/esp-idf!24066
2023-06-13 10:47:32 +08:00
hongshuqing
d82af7f54a
fix chip broken bug in monitor mode for c2 c3 s2 s3 to v5.0
2023-06-13 10:22:40 +08:00
Jiang Jiang Jian
838850abab
Merge branch 'feature/example_deep_sleep_wake_stub_backport_v5.0' into 'release/v5.0'
...
example: add deepsleep_wake stub example (backport v5.0)
See merge request espressif/esp-idf!23414
2023-06-12 11:07:59 +08:00
morris
839d1a831d
drivers: fix issue reported by coverity
2023-06-07 11:43:17 +08:00
Cao Sen Miao
ca41902ccf
temperature_sensor: Add new interface and reference counts so that phy and driver can use together
2023-06-06 01:30:51 +08:00
Jiang Jiang Jian
80ffe63209
Merge branch 'bugfix/close_phy_tsens_before_sleep_v5.0' into 'release/v5.0'
...
sleep: fix deepsleep current leakage caused by phy_tsens (backport v5.0)
See merge request espressif/esp-idf!23910
2023-06-01 19:55:13 +08:00
Jiang Jiang Jian
2f482e1760
Merge branch 'bugfix/fix_wakeup_failed_if_powerdown_flash_in_lightsleep_v5.0' into 'release/v5.0'
...
Power Management: fixed flash funcs called in sleep wakeup process (backport v5.0)
See merge request espressif/esp-idf!24008
2023-06-01 19:51:09 +08:00
wuzhenghui
0ffee5cd2a
bugfix: fix wakeup failed if powerdown flash in lightsleep
2023-05-31 19:44:40 +08:00
Jakob Hasse
fa099f23f3
compiler: replaced noreturn by __noreturn__ in header files
...
* noreturn may be replaced by third-party macros,
rendering it ineffective
* Closes https://github.com/espressif/esp-idf/issues/11339
2023-05-30 13:21:17 +08:00
wuzhenghui
05714f207d
bugfix: close phy_tsens before deepsleep
2023-05-25 13:14:52 +08:00
Marius Vikhammer
10a98e7e58
Merge branch 'contrib/github_pr_11388_v5.0' into 'release/v5.0'
...
Update esp_cpu.h to include esp_attr.h (GitHub PR) (v5.0)
See merge request espressif/esp-idf!23739
2023-05-16 09:21:45 +08:00
Zim Kalinowski
0b8800eaae
Merge branch 'contrib/github_pr_10895_v5.0' into 'release/v5.0'
...
Fix possible conversion errors by using __builtin_ffsll (GitHub PR) (v5.0)
See merge request espressif/esp-idf!23691
2023-05-15 18:43:35 +08:00
Jakob Hasse
5946c6ad16
cxx/esp_hw_support: added build test, changed parameter types
...
Changed rv_utils_intr_edge_ack and esp_cpu_intr_edge_ack to
take uint32_t instead of int to avoid build errors.
The test is to test in particular that __builtin_ffsll, used in
xt_utils.h, which is included via esp_cpu.h, compiles fine
in C++20 with -Wsign-conversion enabled.
Closes https://github.com/espressif/esp-idf/pull/10895
2023-05-15 10:03:12 +08:00
Magnus Sörensen
5f27615587
Update esp_cpu.h
...
If esp_attr.h is not included then there are no definitions for the symbol 'FORCE_INLINE_ATTR'.
2023-05-15 09:51:25 +08:00
Mahavir Jain
3ac5d6a2dd
Merge branch 'fix/esp32s3_ununsed_dcache_as_dram_v5.0' into 'release/v5.0'
...
esp_hw_support: Update the memory ptr location/property checks to include the unused DCACHE added to DRAM (v5.0)
See merge request espressif/esp-idf!23268
2023-05-11 16:48:32 +08:00
morris
889787c7ca
Merge branch 'refactor/improve_adc_power_maintanance_v5.0' into 'release/v5.0'
...
adc: improve adc power maintanance (v5.0)
See merge request espressif/esp-idf!23273
2023-05-11 11:09:31 +08:00
Marius Vikhammer
7d24b991f8
Merge branch 'bugfix/gdma_log_nano_v5.0' into 'release/v5.0'
...
gdma: fixed crash from logging when using newlib nano (v5.0)
See merge request espressif/esp-idf!23586
2023-05-11 10:38:05 +08:00
Marius Vikhammer
798dac6225
gdma: fixed crash from logging when using newlib nano
...
Newlib nano printf formatting do not support %z, and will crash if such an identifier
is followed by a %s indentifier.
Closes https://github.com/espressif/esp-idf/issues/9631
2023-05-06 13:48:48 +08:00
wuzhenghui
4c3b8c13df
feature: add wake up time cost info to deep_sleep_wake_stub example
2023-05-04 16:46:15 +08:00
jiangguangming
72676d230a
use LL function to get wakeup cause
2023-05-04 16:46:15 +08:00
jiangguangming
4261fd0940
rtc_time.c: simplify the rtc_time_get with LL function
2023-05-04 16:46:15 +08:00
jiangguangming
24a38e3153
feature: add example deep sleep wake stub
...
Closes https://github.com/espressif/esp-idf/issues/8208
2023-05-04 16:46:15 +08:00
Laukik Hase
e0bedd19ab
esp_hw_support: Update memory ptr location/property checks
...
- to acknowledge the unused DCACHE added to DRAM for ESP32-S3
- For ESP32-S3, when the DCACHE size is set to 16 kB, the unused 48 kB is added to
the heap in 2 blocks of 32 kB (from 0x3FCF0000) and 16 kB (from 0x3C000000).
- But, if we try allocating memory from the 16 kB block and run an `esp_ptr_internal`
check on that memory pointer, it fails as the address block from 0x3C000000
corresponds to the external memory symbols SOC_DROM_LOW and SOC_EXTRAM_DATA_LOW.
(E.g. freertos - If the IDLE task stack buffer gets allocated from this region,
the firmware will abort due to this failure).
- Thus, the checks `esp_ptr_internal`, `esp_ptr_in_drom` and `esp_ptr_byte_accessible`
have been updated to acknowledge this memory as a part of the DRAM.
Co-authored-by: Mahavir Jain <mahavir@espressif.com>
2023-05-04 10:54:34 +05:30
Armando
08c77a7eaf
sar: init sar periph power state
2023-04-27 10:52:38 +08:00
Marius Vikhammer
b2c883f0c0
system: fix esp32 chip info not listing esp32 pico v3-02 as having embedded spiram
...
Closes https://github.com/espressif/esp-idf/issues/11233
2023-04-24 13:53:34 +08:00
wuzhenghui
46a1253022
bugfix: fix deepsleep saradc leakage
2023-04-20 11:45:58 +08:00
Li Shuai
d84cdace52
sleep: fix sleep current issue caused by sar adc
2023-04-20 11:45:58 +08:00
Armando
85980884d7
adc: improve adc power logic
2023-04-20 10:34:37 +08:00
liuning
6b5bc6304a
rtc_sleep: workaround systimer stall issue during lightsleep on ESP32C3
2023-03-29 21:19:21 +08:00
wanlei
20924e3a72
mspi: turn down freq to fix crash when sleep
2023-03-20 19:46:25 +08:00
Jiang Jiang Jian
dc172b63d3
Merge branch 'bugfix/close_rf_in_deep_sleep_backport_v5.0' into 'release/v5.0'
...
deep sleep: further optimize sleep current if RF is enabled (backport v5.0)
See merge request espressif/esp-idf!22738
2023-03-20 15:48:29 +08:00
Jiang Jiang Jian
763e369858
Merge branch 'feature/support_7.2.8_soc/pvt_dig_v5.0' into 'release/v5.0'
...
ESP32S3:support auto adjust LDO voltage based on pvt-dig(backport 5.0)
See merge request espressif/esp-idf!19774
2023-03-20 14:06:48 +08:00
zlq
135381943a
1.add ldo parameters in efuse table; 2.set ldo based on pvt-efuse; 3.ldo voltage is changed based on cpu freq
2023-03-17 11:14:01 +00:00
Song Ruo Jing
27f9ee66d5
gpio: Fix IO hold function related problems
...
1. Fix deep sleep wakeup IOs can not be unhold issue
2. Correct hold related APIs' description
3. Fix gpio_force_hold_all API
docs: Add GPIO wakeup source to sleep_modes doc for ESP32C3 and C2
2023-03-17 14:44:29 +08:00
wuzhenghui
64d5421d8b
deep sleep: close rf to optimize sleep current
2023-03-14 13:57:42 +08:00
wuzhenghui
568dd3d823
Revert "optimize deep sleep current in wifi softap mode"
...
This reverts commit 344ec80fad
.
2023-03-13 20:49:36 +08:00
jingli
833f201610
soc/soc_caps: update soc caps for chips that support power-down of modem hardware
2023-03-13 13:33:18 +08:00