Commit Graph

1727 Commits

Author SHA1 Message Date
Jiang Jiang Jian
08f007f68d Merge branch 'fix-bind_int_wdt_to_cache_livelock_fix_v6.0' into 'release/v6.0'
fix(esp_system): bind int_wdt to cache livelock workaround (v6.0)

See merge request espressif/esp-idf!49169
2026-06-29 15:36:59 +08:00
Jiang Jiang Jian
0855c331d7 Merge branch 'fix/esp32c5_usj_console_stuck_v6.0' into 'release/v6.0'
fix(esp32c5): Do not disable UART0 sclk when USB Serial/JTAG is primary console (v6.0)

See merge request espressif/esp-idf!48874
2026-06-29 15:32:15 +08:00
Marius Vikhammer
3b286227e8 Merge branch 'bugfix/int_wdt_default_psram_v6.0' into 'release/v6.0'
fix(iwdt): increased default timeout if using PSRAM (v6.0)

See merge request espressif/esp-idf!49481
2026-06-29 15:07:05 +08:00
Marius Vikhammer
08c4e54ec5 fix(iwdt): increased default timeout if using PSRAM
Default timeout for interrupt WDT was increased by default
on ESP32, due to some heap integrity check APIs taking a long
time on large PSRAMs and causing timeouts.

But this adjustment was only done for ESP32, not later chips,
even though they may experience the same issue.

Adjusted to have the same behavior on all chips with PSRAM
enabled, making it consistant with the docs.

Closes https://github.com/espressif/esp-idf/issues/18360
2026-06-29 10:31:38 +08:00
Laukik Hase
00cff977c6 fix(esp_tee): Avoid crypto peripherals reset with esp_restart() from REE
- Reset the crypto peripherals during TEE initialization
2026-06-26 15:07:23 +05:30
harshal.patil
5ed711bc06 fix(esp_common/esp_fault): make ESP_FAULT_ASSERT survive optimization
ESP_FAULT_ASSERT(C) was silently deleted by the optimizer when C is a cached
flag/status already proven by a preceding `if (!C) return/goto`: the compiler
folds C to a constant and drops all three checks, removing the fault-injection
protection with no warning.
2026-06-18 19:41:56 +05:30
harshal.patil
3195c942da fix(mbedtls): validate ECDSA signature range and harden ECC memory power-down 2026-06-09 15:02:59 +05:30
wuzhenghui
df645d9d05 fix(esp_system): update cache livelock workaround bind to interrupt WDT configuration 2026-06-02 17:31:03 +08:00
Peter Dragun
d9e28fe088 fix(esp32c5): Do not disable UART0 sclk when USB Serial/JTAG is primary console
This is a workaround for rom code issue, which can cause the chip to end in infinite loop
when reset is triggered from esptool/idf-monitor. This is only applicable to ESP32-C5 rev <= 1.0.

Closes https://github.com/espressif/esp-idf/issues/18089
2026-05-25 14:48:06 +02:00
wuzhenghui
fcad5f0a1d fix(esp_system): fix build err if int_wdt is not enabled on esp32 2026-05-25 10:35:34 +08:00
wuzhenghui
e99ea90ee8 fix(esp_system): remove intwdt config critical area for chips except esp32 2026-05-25 10:35:30 +08:00
Guillaume Souchere
3e293035e3 fix(esp_system): PSRAM stack crash in esp_restart_noos on RISC-V chips
On RISC-V chips with SPIRAM support (esp32c5, esp32c61, esp32h4, esp32p4,
esp32s31), esp_restart_noos() was disabling the cache while the current
stack pointer could still be in external RAM. Any stack access after cache
disable (function call, local variable spill) would then fault with
"Cache disabled but cached memory region accessed".

Xtensa chips (esp32, esp32s2, esp32s3) already had this guard via the
SET_STACK macro. Add the equivalent for RISC-V:

- Add rv_utils_set_sp() to riscv/rv_utils.h (plain "mv sp, %0" with a
  memory clobber; no window register management needed on RISC-V)
- In each affected system_internal.c, under
  CONFIG_FREERTOS_TASK_CREATE_ALLOW_EXT_MEM, check whether the current
  SP is in PSRAM and if so switch it to the top of internal BSS before
  any cache disable or writeback operation
- Fix xTaskCreateStaticPinnedToCore() stack size argument in the
  spiram_stack test (was passing bytes instead of word count)
- Mark the null-pointer write in func_do_exception() as volatile to
  prevent the compiler from optimizing it away
- Extend the [spiram_stack] tests to RISC-V by sharing fibonacci() and
  the task/finish helpers across architectures, guarding only the
  Xtensa-specific WINDOWBASE/WINDOWSTART prints
2026-05-15 14:00:36 +08:00
Jiang Jiang Jian
e5191e1612 Merge branch 'bugfix/idf_13957_v6.0' into 'release/v6.0'
bugfix: fix wifi loss packet and missing interrupt issues when switching root clock source

See merge request espressif/esp-idf!48432
2026-05-15 12:32:25 +08:00
sibeibei
51775582e6 bugfix(esp_hw_support):remove ESP32-C5 root clock auto gating bypass in sleep path 2026-05-14 17:16:52 +08:00
Alexey Gerenkov
be24b7c287 fix(build): Fixed constructors placement by Clang for Xtensa
By default Clang puts constructors into '.init_array'.
Close https://github.com/espressif/esp-idf/issues/17990
2026-05-12 17:56:45 +03:00
sibeibei
aa2bd15d46 Revert "fix(esp_hw_support): fix the issue of wifi rx packet loss when switchng soc root clock source"
This reverts commit 45ea08b955.
2026-05-12 15:37:50 +08:00
hebinglin
bce86ecd92 change(esp_system): add iram opt for rtc clk resart cases 2026-05-06 19:29:36 +08:00
Fu Hanxi
ad1d17a794 ci: rename eco tags to revision 2026-04-09 10:43:34 +02:00
Jiang Jiang Jian
9cdd5ebcee Merge branch 'feature/refactor_linker_scripts_v6.0' into 'release/v6.0'
feat(esp_system): refactor linker scripts to reduce duplicated code (v6.0)

See merge request espressif/esp-idf!45728
2026-03-23 14:01:02 +08:00
Jiang Jiang Jian
8c0ab5ce39 Merge branch 'bugfix/esp_task_wdt_v6.0' into 'release/v6.0'
fix(esp_system): Handle failures correctly in esp_task_wdt_reconfigure() (backport v6.0)

See merge request espressif/esp-idf!45897
2026-03-23 11:22:04 +08:00
Alexey Lapshin
8bfe943dbb fix(esp_system): xtensa: refactor linker scripts and reduce binary size for C++ apps 2026-03-23 11:19:22 +08:00
Alexey Lapshin
3a4276afd7 feat(esp_system): riscv: refactor linker scripts to reduce duplicated code 2026-03-23 11:19:22 +08:00
Jiang Jiang Jian
81daeadf9f Merge branch 'esp32h4_debug_asistant_v6.0' into 'release/v6.0'
feat(esp32h4): add assist_debug/bus_monitor support (v6.0)

See merge request espressif/esp-idf!45949
2026-03-23 10:38:51 +08:00
Marius Vikhammer
e741963f13 Merge branch 'ci/common-components-release-v6.0' into 'release/v6.0'
ci: update build-test-rules to use common_components (v6.0)

See merge request espressif/esp-idf!45547
2026-03-23 09:31:28 +08:00
Frantisek Hrbata
fa14a9df47 Merge branch 'feat/cmakev2-backports-v6.0' into 'release/v6.0'
feat(cmakev2): sync pending v6.0 MRs for cmakev2

See merge request espressif/esp-idf!46778
2026-03-21 07:17:43 +01:00
Jiang Jiang Jian
85db04992a Merge branch 'fix/fix_esp32_int_wdt_workaround_break_sleep_process_v6.0' into 'release/v6.0'
fix(esp_system): disable esp32 cache livelock int_wdt workaround in ipc_isr_stall (v6.0)

See merge request espressif/esp-idf!46741
2026-03-21 14:11:21 +08:00
Angus Gratton
2a1481e8e1 fix(esp_system): Allow esp_task_wdt_reconfigure() if timer is stopped
If Task WDT is initialised but not start, the call to esp_timer_stop() in
the reconfigure path returns ESP_ERR_INVALID_STATE and reconfiguring the
Task WDT fails. This isn't the case when the Timer Group is used for Task
WDT.

(This failure cascades into the failure due to disabled interrupts, fixed
in the parent commit.)

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2026-03-20 16:40:24 +08:00
Angus Gratton
5a60192dae fix(esp_system): Handle failures correctly in esp_task_wdt_reconfigure()
- Failures were being masked as function always returned ESP_OK
- In the failure path the spinlock was not unlocked, so interrupts
  became permanently disabled.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2026-03-20 16:40:24 +08:00
igor.udot
e2a8bbe639 ci: update build-test-rules to use common_components 2026-03-20 15:53:26 +08:00
Marius Vikhammer
ea84e9118d fix(esp_coex): move coex init from esp_system to esp_coex component
CMakev2's DEFERRED mode for idf_component_optional_requires only links
optional components already present in the dependency graph. This caused
esp_coex headers to be unavailable when building minimal examples on
targets with both WiFi and IEEE802154 (e.g. esp32c5, esp32c6).

Moving init_coexist to esp_coex removes the cross-component dependency
and ensures the init function is only compiled when esp_coex itself is
part of the build. A linker hook is added to guarantee the object file
is not silently discarded by the linker.

Made-with: Cursor
2026-03-20 08:16:46 +01:00
morris
23e199d646 Merge branch 'feature/esp32c61_flash_psram_timing_tuning_v6.0' into 'release/v6.0'
feat(mspi): support 120MHz flash and psram for esp32c61 (v6.0)

See merge request espressif/esp-idf!45886
2026-03-20 13:55:06 +08:00
wuzhenghui
66f24377fc refactor(esp_system): ind_wdt.c refactor & code clean
1. introduce reconfigure_ticks function for wdt configuration
 2. move esp32eco3 cache livelock workaround code out from int_wdt.c
2026-03-20 10:51:39 +08:00
Jiang Jiang Jian
1aba789643 Merge branch 'fix/flaky_test_with_memory_leak_v6.0' into 'release/v6.0'
fix(esp_system): Fix flaky tests with memory leak in sleep test (v6.0)

See merge request espressif/esp-idf!46415
2026-03-20 10:40:05 +08:00
Song Ruo Jing
c7ae253b89 feat(mspi): support 120MHz flash and psram for esp32c61 2026-03-19 14:30:46 +00:00
Erhan Kurubas
4a7d67df84 feat(esp32h4): add assist_debug stack monitoring support 2026-03-19 11:40:44 +08:00
Erhan Kurubas
18a583e517 refactor(hal): update assist_debug_ll_reset_register() to pass core_id 2026-03-19 11:40:44 +08:00
armando
45ec3b962b fix(spm): rename scp (scratchpad) to spm (scratchpad memory) 2026-03-18 09:49:59 +08:00
armando
1b85ad5081 change(mem): deprecated tcm and added scp memory utils 2026-03-18 09:49:59 +08:00
Konstantin Kondrashov
dd79d441b0 fix(esp_system): Fix flaky tests with memory leak in sleep test 2026-03-09 14:19:29 +02:00
Jiang Jiang Jian
cd2a4df5fa Merge branch 'fix/disable_pvt_for_esp32c5_v6.0' into 'release/v6.0'
feat(esp32c5): disable PVT feature for esp32c5 (v6.0)

See merge request espressif/esp-idf!45702
2026-02-12 15:47:21 +08:00
Alexey Lapshin
8c0c59ffc8 fix(panic): fix _bss_end alignment for esp32s2 and esp32s3 2026-02-06 18:44:23 +07:00
Xiao Xufeng
3d263e7304 fix(esp_system): limit CPU clock to 160MHz in ESP32-C5 for flash encryption
This reverts commit 7145fc9558.
2026-02-06 11:48:27 +08:00
Jiang Jiang Jian
31056d5db9 Merge branch 'refactor/spi_flash_private_v6.0' into 'release/v6.0'
refactor(spi_flash): reorganize header files, improve encapsulation and simplify ROM implementation (v6.0)

See merge request espressif/esp-idf!45488
2026-02-02 10:57:34 +08:00
Jiang Jiang Jian
c101c91019 Merge branch 'feature/support_pvt_auto_dbias_c5_c61_p4_c6' into 'release/v6.0'
feat(pvt): support pvt auto dbiast on c5/c61/c6/p4 (from eco5)_v6.0

See merge request espressif/esp-idf!45385
2026-02-01 20:08:23 +08:00
yanzihan@espressif.com
d0b1371e34 feat(esp_hw_support): use pvt to auto control digital ldo and rtc ldo for esp32c5 2026-02-01 13:24:49 +08:00
hebinglin
732de6bfe0 change(esp_system): replace temp_skip_ci with soc_filtered_targets for esp32c5 2026-02-01 11:59:16 +08:00
hebinglin
21a6537e08 change(esp_driver): set cases with toppd check only run in esp32c5eco3 rather than eco2 2026-02-01 11:59:16 +08:00
hebinglin
dbcc949b1c change(esp_hw_support): remove sleep_mmu_retention related flow for esp32c5 eco1 2026-02-01 11:59:16 +08:00
hebinglin
f4bc4ea6f9 revert(unit-test): filter top domain power down check for some sleep test cases
This reverts commit c6c2948a99.
2026-02-01 11:59:16 +08:00
morris
da14c42596 Merge branch 'fix/esp32_flash_cache_crash_v6.0' into 'release/v6.0'
fix(hw_support): Fix crash when reconfiguring flash from 40 to 80 MHz on ESP32 (v6.0)

See merge request espressif/esp-idf!44898
2026-02-01 10:20:19 +08:00