Commit Graph
3239 Commits
Author SHA1 Message Date
Alexey Lapshin e389f3e4df Merge branch 'feature/upgrade_toolchain_to_16.1.0_20260609' into 'master'
Upgrade GNU toolchain to 16.1.0_20260609

See merge request espressif/esp-idf!49523
2026-06-18 00:55:07 +04:00
Jiang Jiang Jian a602e67b0b Merge branch 'feat/update_s31_wifi_lower_power' into 'master'
feat: update_s31_wifi_low_power

See merge request espressif/esp-idf!49753
2026-06-17 20:06:56 +08:00
Jiang Jiang Jian 41a7095015 Merge branch 'feat/support_usb_wakeup_from_light_sleep' into 'master'
feat: support usb wakeup from light sleep

Closes IDF-7212

See merge request espressif/esp-idf!48988
2026-06-17 19:50:11 +08:00
sibeibei 3c98f90da9 update(pmu_param): update mdoem icg func clk
Due to c-channel design, ETM and BUS must be set to 1
2026-06-17 17:25:04 +08:00
sibeibei 9fd50d50ce update(pm_sleep): update modem_wait_target_cycle for s31 2026-06-17 17:19:53 +08:00
Alexey Lapshin b3c222724c Merge branch 'feat/enable_zcmp_for_c5_c61' into 'master'
feat(soc): esp32c5, esp32c61: enable zc extensions

See merge request espressif/esp-idf!49218
2026-06-17 10:13:30 +04:00
wuzhenghui 61be47b739 feat(esp_hw_support): support PMU clock ICG management for esp32s31 2026-06-17 11:34:37 +08:00
Song Ruo Jing a66f9463c1 Merge branch 'feature/dma2d_ppa_sleep_retention_support' into 'master'
feat(ppa): add sleep retention support for DMA2D and PPA

Closes IDF-9961, IDF-9930, IDF-14764, and IDF-14770

See merge request espressif/esp-idf!45587
2026-06-16 14:56:19 +08:00
Xiao Xufeng 789ce684c9 fix(mmap): fixed some API read wrong data via mmap when flash being erased/written while XIP on PSRAM
Before:

The cache won't be disabled when XIP on psram. But during flash
erasing/programming, read data will be courrupt.

When XIP in psram is enabled, the image is not mapped to the cache so
usually there will be no flash access. The only way to read from flash
is via the driver or use mmap. The driver has protection during erasing,
while th mmap region not.

Now:

Mmap APIs provide a flag to make mmap->unmap region mutually exclusive
to flash erase/programming when XIP from psram. SPI Flash write APIs
will benefit from this. When the flag is used, no concurrent access to
mapped region will happen while writing; otherwise the cache will be
disable to avoid data corruption.

Most ESP-IDF APIs calls mmap with this flag. As for users calling
mmap-like APIs directly, they can choose whether to enable this by a
flag.

Closes https://github.com/espressif/esp-idf/issues/14897
2026-06-16 01:00:43 +08:00
Alexey Lapshin 406bd2393e fix(ci): suppress GNU static analyzer warnings 2026-06-15 18:53:21 +07:00
wuzhenghui f2d3448fa2 refactor(esp_hw_support): move system_periph_retention from soc to esp_hw_support 2026-06-15 17:09:58 +08:00
Song Ruo Jing 14d8570163 feat(ppa): add sleep retention support for DMA2D and PPA 2026-06-15 15:45:07 +08:00
Alexey Lapshin fa89e353bc feat(soc): esp32c5, esp32c61: enable zc extensions 2026-06-15 11:42:48 +07:00
Li Shuai e7fff9da43 change(esp_hw_support): rename retention_modules to attached_modules 2026-06-11 11:41:40 +08:00
Li Shuai 4011a4de74 feat(esp_hw_support): support sleep retention destroy callback 2026-06-11 11:32:31 +08:00
wuzhenghui 63cd8caf7b fix(esp_hw_support): pd hp_alive domain in deepsleep 2026-06-10 21:20:04 +08:00
JiangGuangMingandCursor 6020aec177 fix(usb): address wakeup example review comments
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-10 18:59:24 +08:00
JiangGuangMingandCursor 0f4bf3e097 fix(sleep): disable usb wakeup through generic API
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-10 15:14:37 +08:00
Jiang Guang Ming d65b467108 fix(usb): address usb wakeup review comments 2026-06-10 15:14:37 +08:00
He Binglin 02c225b604 Merge branch 'feat/esp_idf_h21_power_optimization' into 'master'
Feat/esp idf h21 power optimization

Closes PM-778 and PM-678

See merge request espressif/esp-idf!49223
2026-06-10 14:18:52 +08:00
Jiang Jiang Jian 853a2cfd3a Merge branch 'chip/support_wifi_low_power_for_s31_rebase_master' into 'master'
Chip/support wifi low power for s31 rebase master

Closes IDF-14579 and IDF-14582

See merge request espressif/esp-idf!48532
2026-06-09 15:16:53 +08:00
sibeibei e17cd724b4 feat(pm): select XTAL for HP dig_sysclk in modem state
On ESP32-S31, SOC and modem APB are decoupled, so the digital
system can run from XTAL while the modem domain stays in modem state.
2026-06-08 19:24:30 +08:00
sibeibei e238c5bdc6 feat(wifi): enable pll clk in modem state 2026-06-08 19:24:30 +08:00
sibeibei c8881b2529 update(pmu_sleep): enable SOC_PM_PMU_MIN_SLP_SLOW_CLK_CYCLE_FIXED 2026-06-08 19:24:30 +08:00
sibeibei db8d0e0362 update(pmu_param): update hp modem clk config 2026-06-08 19:24:30 +08:00
sibeibei f60ceeb811 update(sleep_clock.c): update clock retention 2026-06-08 19:24:29 +08:00
sibeibei 60250525b0 bugfix(apm): workaround to clear apm related reg on S31
Until full TEE/APM retention is supported (IDF-14620).
2026-06-08 19:24:29 +08:00
JiangGuangMing 87b0c4c40d feat(sleep/usb): support usb as wakeup source from light sleep 2026-06-08 16:31:21 +08:00
hebinglin 35ebcefc9b fix(esp_hw_support): fix retention hang when no module in link 2026-06-04 22:26:56 +08:00
yanzihan@espressif.com f9a0e0ad95 feat(pvt): fix monitor en rst error in pvt func on master 2026-06-04 17:32:20 +08:00
hebinglin b24a1ff521 feat(esp_hw_support): use xtalx2 in retention for h21 2026-06-03 15:03:59 +08:00
hebinglin 14a2392510 feat(esp_hw_support): optimize pmu param for h21 2026-06-03 15:03:51 +08:00
morris 848fbc8d74 Merge branch 'doc/update_ldo_doc_esp32s31' into 'master'
docs(ldo): corrected the LDO channel numbers in the programming guide

See merge request espressif/esp-idf!49141
2026-06-02 14:40:45 +08:00
morris 36063fbfb4 docs(ldo): corrected the LDO channel numbers in the programming guide 2026-06-02 11:20:12 +08:00
Gao Xu b19b7a651a Merge branch 'feat/h21_adc_support' into 'master'
feat(adc): support ADC oneshot and continuous mode on ESP32-H21

Closes IDF-11589 and IDF-11592

See merge request espressif/esp-idf!48551
2026-06-02 11:17:00 +08:00
Wu Zheng Hui 6495ce4fda Merge branch 'fix/fix_rtc_spinlock_sleep_dead_lock' into 'master'
fix(esp_hw_support): fix possible dead lock in deepsleep process

See merge request espressif/esp-idf!49066
2026-06-02 10:33:51 +08:00
gaoxu 7dfc685010 refactor(adc): move some ADC soc_caps to adc_ll.h 2026-06-01 19:05:33 +08:00
gaoxu 13b4430716 feat(adc): support ADC oneshot and continuous mode on ESP32-H21 2026-06-01 19:04:35 +08:00
wuzhenghui 50d6ef1481 fix(esp_hw_support): fix possible dead lock in deepsleep process 2026-05-29 21:19:42 +08:00
sibeibei 8216439117 change(esp_hw_support): enable wifi beacon wakeup and support wifi modem state for esp32s31 2026-05-29 15:24:00 +08:00
Guillaume Souchere d670774f5c feat(esp_common): implement composable error code registration via link-time arrays
Refactor the esp_err_to_name() system to decouple esp_common from
higher-level components. Instead of a monolithic generated table,
each component registers its error codes into a dedicated linker
section (.esp_err_msg_table) via idf_define_esp_err_codes() in its
CMakeLists.txt.

New files:
- tools/err_codes_extract.py: extract ESP_ERR_* defines from headers to CSV
- tools/err_codes_to_c.py: generate C source placing entries into linker section
- tools/err_codes_to_rst.py: generate RST documentation from error codes
- tools/cmake/err_codes.cmake: CMake module providing idf_define_esp_err_codes()
- components/esp_common/include/esp_err_codes.h: esp_err_msg_t typedef
- components/esp_common/src/esp_err_to_name_new.c: new lookup using link-time array
- tools/test_apps/build_system/err_codes_check/: CI test app

Changes:
- Remove all optional component dependencies from esp_common/CMakeLists.txt
- Add .esp_err_msg_table section to all 5 linker scripts
- Register error codes in 18 components via idf_define_esp_err_codes()
- Add new scripts to .gitlab/ci/rules.yml build_check patterns
- use new scripts to generate doc and add CI validation
- Update esp_err.rst to add description of composable code registration
2026-05-28 09:53:32 +02:00
Gao Xu db3d01d412 Merge branch 'feat/basic_rng_support_h4' into 'master'
RNG support and refactor on ESP32-H4

Closes IDF-12265

See merge request espressif/esp-idf!45361
2026-05-27 11:14:38 +08:00
Sudeep Mohanty 8a2e56810c Merge branch 'task/v2_aware_component_and_test_gates' into 'master'
fix(components): linux host-build failure fixes+ disable esp_tee in buildv2 + esp_hw_support and xtensa fixes

See merge request espressif/esp-idf!48743
2026-05-26 13:09:58 +02:00
gaoxu 43317018d1 refactor(rng): use adc_ll apis for ESP32-h4 and refactor rng_ll_enable/disable 2026-05-26 19:02:41 +08:00
Wu Zheng Hui 574b843868 Merge branch 'change/optimize_sleep_gpio_configure' into 'master'
change(sleep_gpio): streamline GPIO sleep configuration logic

See merge request espressif/esp-idf!48845
2026-05-26 17:14:06 +08:00
Sudeep Mohanty 301eeba878 Merge branch 'task/buildv2_hygiene_and_dep_declarations' into 'master'
fix(components): generic dep-declaration and scope-leakage hygiene exposed by cmakev2

See merge request espressif/esp-idf!48739
2026-05-26 10:18:22 +02:00
wuzhenghui d19c0b1746 change(sleep_gpio): streamline GPIO sleep configuration logic 2026-05-26 12:20:59 +08:00
Sudeep Mohanty 7b294c4ab9 fix(esp_hw_support): move linux spinlock.h to esp_hw_support/include/linux
Moved the linux spinlock.h stub into esp_hw_support/include/linux.
esp_hw_support's INCLUDE_DIRS already places include/linux before
include, so the correct include files are picked up for the linux
target.

- Drop the FreeRTOS-Kernel-SMP linux spinlock.h duplicate.
- rv_decode_test: use PRIV_REQUIRES esp_hw_support instead of
  hardcoding component include paths.
2026-05-25 15:24:25 +02:00
morris e20db709aa feat(debug): add esp32s31 debug probe support
- add ESP32-S31 debug probe LL, target IDs, capability macros, and GPIO signal mapping
- allow LP probe channels to configure four signal bytes while keeping 16 GPIO outputs
- add HP and LP probe read tests, including LP 32-bit read verification
- keep existing vbat LP probe usage aligned with the new LP channel behavior
2026-05-25 19:03:37 +08:00
morris c23e87b81b Merge branch 'bugfix/esp32s31_raise_ahb_clk_freq' into 'master'
fix(clk): raised ESP32S31 axi/ahb clock freq up to 106mhz at max

Closes IDF-14696

See merge request espressif/esp-idf!48207
2026-05-25 18:23:37 +08:00