morris
839d1a831d
drivers: fix issue reported by coverity
2023-06-07 11:43:17 +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
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 344ec80fadae35cadf46b997b7758bf5f1873946.
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
Jiang Jiang Jian
4abb6efb36
Merge branch 'bugfix/fix_gpio_wakeup_related_issues_in_ssc_sleep_test_backport_v5.0' into 'release/v5.0'
...
sleep: fix gpio wakeup related issues(backport v5.0)
See merge request espressif/esp-idf!22332
2023-02-27 15:12:13 +08:00
Jiang Jiang Jian
809aeb77b7
Merge branch 'bugfix/update_esp_rom_rtc_header_v5.0' into 'release/v5.0'
...
update esp rom rtc header (backport to v5.0)
See merge request espressif/esp-idf!21915
2023-02-27 15:09:19 +08:00
Jiang Jiang Jian
335ad04cba
Merge branch 'feature/support_feature_depend_on_rtc_fast_mem_for_esp32c2_backport_v5.0' into 'release/v5.0'
...
esp32c2: support feature(rtc time) depend on rtc fast mem(backport v5.0)
See merge request espressif/esp-idf!22224
2023-02-27 15:06:31 +08:00
Armando
ac86ef31c1
g0: resolve MMU_PAGE_SIZE not defined in g0 build issue
2023-02-23 12:35:52 +08:00
Marius Vikhammer
18bda1be31
Merge branch 'feature/re-enable-heap-test-c2_v5.0' into 'release/v5.0'
...
heap: re-enable temporarily disabled test on esp32c2 (backport v5.0)
See merge request espressif/esp-idf!21873
2023-02-20 15:34:16 +08:00
Marius Vikhammer
47bc882caa
Merge branch 'feature/re-enable-intr-alloc-test-c2_v5.0' into 'release/v5.0'
...
esp-hw-support: Re-enable intr_alloc tests on esp32c2 target (backport v5.0)
See merge request espressif/esp-idf!21874
2023-02-20 15:16:36 +08:00
zlq
bd7bcbb03b
1.add ldo parameters in efuse table; 2.set ldo dbias based on pvt-efuse; 3.add pll cali stop function; 4. add efuse_ocode
2023-02-20 10:33:25 +08:00
morris
27ca6549d5
Merge branch 'bugfix/gdma_uhci_id_5.0' into 'release/v5.0'
...
gdma: correct the dma trigger of UHCI && fix async memcpy conflict with peripheral DMA (v5.0)
See merge request espressif/esp-idf!22006
2023-02-18 15:02:32 +08:00
Konstantin Kondrashov
08283c213b
Merge branch 'feature/mac_crc_v5.0' into 'release/v5.0'
...
esp_hw_support(esp32): If the MAC_FACTORY CRC check fails, then INVALID_CRC instead of abort (v5.0)
See merge request espressif/esp-idf!22114
2023-02-17 21:36:59 +08:00
Ivan Grokhotkov
69dd34dfb6
Merge branch 'bugfix/rtc_8md256_deepsleep_time_esp32_v5.0' into 'release/v5.0'
...
pm: Fixed sleep time inaccurate bug when select 8MD256 as rtc slow clock on ESP32 (v5.0)
See merge request espressif/esp-idf!21821
2023-02-17 19:47:58 +08:00
Aditya Patwardhan
3e5ea5a941
Merge branch 'contrib/github_pr_10391_v5.0' into 'release/v5.0'
...
[Docs] specify Digital Signature byte order, and esp_ds_sign() clarification (GitHub PR) (v5.0)
See merge request espressif/esp-idf!21767
2023-02-17 19:30:58 +08:00
jingli
ac47b093f6
esp32c2/rtc: fix 8md256 as rtc slow clk not work properly during deep sleep
2023-02-16 10:55:50 +08:00
jingli
2da8497358
UT/esp32c2: reenable rtc clk calibration compensation UT
2023-02-16 10:52:59 +08:00
jingli
e109c5f998
esp32c2: support rtc time feature depend on rtc memory, since c2 does not have rtc memory
2023-02-16 10:52:59 +08:00
jingli
7f15980de9
sleep: fix gpio wakeup not working properly in some cases
...
Before this fix, when we call esp_pm_configure after gpio_wakeup_enable,
the configuration of GPIO in sleep state in gpio_wakeup_enable will be
overwritten by esp_pm_configure.
2023-02-09 17:32:13 +08:00
jingli
50feb8f75b
soc_caps: remove SOC_GPIO_SUPPORT_SLP_SWITCH
...
all esp chips support this feature
2023-02-09 17:29:40 +08:00
morris
6b8d4dfe14
gdma: prevent mutli-channels connect to the same peripheral
...
1. add check in the gdma driver, to prevent multiple channels connecting
to the same peripheral
2. memory copy DMA ID will occupy the peripheral's DMA ID on some ESP
targets (e.g. esp32c3/s3). We should search for a free one when
install async memcpy driver.
Closes https://github.com/espressif/esp-idf/issues/10575
2023-02-01 11:06:48 +08:00
morris
ac05d033b9
gdma: correct the dma trigger of uart
...
GDMA trigger actually is not assigned to UART controller, but for UHCI
controller
2023-02-01 11:02:24 +08:00
KonstantinKondrashov
7a23bf19be
esp_hw_support(esp32): If the MAC_FACTORY CRC check fails, then esp_efuse_mac_get_default returns INVALID_CRC instead of abort
...
Closes https://github.com/espressif/esp-idf/issues/10401
2023-01-23 20:02:16 +08:00
Michael (XIAO Xufeng)
ac068eed34
esp32c2: fixed chip revision of ECO2
2023-01-06 02:00:52 +08:00
KonstantinKondrashov
9538f9c5ff
ci: Fix environment variable IDF_CI_BUILD is not set
2023-01-06 02:00:52 +08:00