Commit Graph

52513 Commits

Author SHA1 Message Date
Guillaume Souchere
177024eeeb fix(heap): Do not consider newly registered heap in minimum free size calcualtion
After startup is done and app_main is reached, all calls to
heap_caps_add_region_with_caps (adding a new heap to the list of registered
heaps) will not affect the minimum free heap size value.

For heaps created before startup, this won't apply and their size will
end up being taken into account in the calculation of the minimum.
2026-05-28 10:30:25 +02:00
Mahavir Jain
4811388910 Merge branch 'feat/spiram_enc_exempt' into 'master'
feat(esp_psram): add option to carve unencrypted PSRAM region

Closes IDF-15032

See merge request espressif/esp-idf!48214
2026-05-21 11:36:58 +05:30
morris
24058b19ee Merge branch 'feat/ana_cmpr_esp32h4_eco1' into 'master'
feat(ana_cmpr): enable ana_cmpr driver support on esp32h4

Closes IDF-12395 and IDF-15224

See merge request espressif/esp-idf!48316
2026-05-21 14:01:03 +08:00
Island
b970c5f674 Merge branch 'ble_dev/esp32h21_chip_20260513' into 'master'
Ble dev/esp32h21 chip 20260513

Closes BLERP-2798, IDF-11626, IDF-11652, IDF-11653, IDF-11655, IDF-14811, IDF-14812, IDF-14813, IDF-14814, and IDF-14815

See merge request espressif/esp-idf!48499
2026-05-21 14:00:09 +08:00
Rahul Tank
b5770ee1ff Merge branch 'feat/esp_insight_read_log_master' into 'master'
feat(nimble): ADD BLE HCI logging support for ESP Insights

See merge request espressif/esp-idf!46706
2026-05-21 11:28:44 +05:30
Armando (Dou Yiwen)
a6c0ea2289 Merge branch 'feat/sdmmc_s31' into 'master'
sdmmc: s31 support

Closes IDF-14705 and IDF-14706

See merge request espressif/esp-idf!47232
2026-05-21 04:59:49 +00:00
morris
3b9eb0b24c Merge branch 'fix/i2c_pd_management' into 'master'
fix(i2c): fix i2c pd management leak & resource recycle

Closes IDF-15642

See merge request espressif/esp-idf!48536
2026-05-21 12:23:32 +08:00
morris
9559f3114d Merge branch 'feat/i2s_destination_config' into 'master'
feat(i2s): add Bluetooth destination config for esp32s31

Closes IDF-15674

See merge request espressif/esp-idf!48482
2026-05-21 12:21:15 +08:00
He Binglin
e3fb6a0047 Merge branch 'feat/esp_idf_h21_keep_apm_func' into 'master'
feat(esp_hw_support): keep esp32h21 apm_func_ctrl value after sleep

See merge request espressif/esp-idf!48733
2026-05-21 12:05:18 +08:00
He Binglin
a7b070f306 Merge branch 'bugfix/esp_idf_h4_ci_issues' into 'master'
fix(esp_rom): fix RTC_SLEEP_MODE_REG addr mismatch

Closes IDFCI-11614, IDFCI-11613, IDFCI-11611, IDFCI-11609, IDFCI-11498, IDFCI-11497, IDFCI-11496, IDFCI-11495, IDFCI-11493, IDFCI-11492, IDFCI-11491, IDFCI-11490, IDFCI-11489, IDFCI-11488, IDFCI-11487, IDFCI-11486, and IDFCI-11485

See merge request espressif/esp-idf!48758
2026-05-21 11:42:39 +08:00
Jack
a7fecc1e19 add some fix in the RTC STORE REG comments 2026-05-21 10:41:20 +08:00
morris
2b9b065c82 feat(ana_cmpr): enable ana_cmpr driver support on esp32h4 2026-05-21 10:30:43 +08:00
armando
9a87ff0017 fix(sdmmc): added mutex for adding a slot 2026-05-21 09:09:28 +08:00
armando
f408e1a8bc feat(sdmmc): add esp32s31 support
Enable SDMMC host support on ESP32-S31 across HAL, SOC caps, tests, examples, and documentation.
2026-05-21 09:09:28 +08:00
armando
19a716086f fix(jpeg): enable decode example on s31
JPEG decode example can run on S31 now cuz SD support is available.
Also removed not needed HEX PSRAM config
2026-05-21 09:09:14 +08:00
armando
6d12e30433 feat(ldo): support s31 psram sdmmc power domain
Move S31 PSRAM/SDMMC power setup onto the common LDO path so shared users can control the domain consistently.
2026-05-21 09:09:14 +08:00
armando
09ff879535 fix(sdmmc): clean up slot state on removal paths
Keep slot registration state and interrupts consistent when add-slot setup fails or the final registered slot is removed.
2026-05-21 09:09:14 +08:00
Marek Fiala
488e8fdc1f Merge branch 'contrib/github_pr_18556' into 'master'
fix(tools): idf_tools.py uninstall: initialize archive_version before use (GitHub PR)

Closes IDFGH-17632

See merge request espressif/esp-idf!48213
2026-05-21 02:55:24 +08:00
Wang Meng Yang
814656bca1 Merge branch 'bugfix/fix_bt_incorrect_error_code' into 'master'
fix(bt): Correct the error code in pairing when pin code req rejected by host

See merge request espressif/esp-idf!48656
2026-05-20 22:35:32 +08:00
ShenWeilong
adf9cf4e72 fix(bluedroid): Set CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y in bluedroid host examples 2026-05-20 20:13:34 +08:00
hebinglin
84a3cfc0c1 fix(esp_rom): fix RTC_SLEEP_MODE_REG addr mismatch 2026-05-20 19:58:18 +08:00
Wu Zheng Hui
91e66a8d19 Merge branch 'feat/support_io_edge_wakeup' into 'master'
feat(esp_hw_support): support rtc io edge wakeup sleep

Closes FCS-1880 and IDF-11812

See merge request espressif/esp-idf!48410
2026-05-20 19:37:35 +08:00
ShenWeilong
cf813a4a1e feat(ble): Added ble support for esp32h21 2026-05-20 19:24:08 +08:00
Jiang Jiang Jian
0f2674f616 Merge branch 'bugfix/fix_ble_coded_phy_rx_bug' into 'master'
fix(coex): fix ble coded phy rx issue when aborted by coex

Closes BT-4291 and BT-4251

See merge request espressif/esp-idf!46962
2026-05-20 19:02:39 +08:00
Tomas Rezucha
0ddb802067 Merge branch 'feat/esp32s31_usb_examples' into 'master'
feat(usb): Enable ESP32-S31 USB device examples

See merge request espressif/esp-idf!48452
2026-05-20 12:00:45 +02:00
Nilesh Kale
2fa9fba978 Merge branch 'feat/add_flash_encryption_support_for_esp32h4' into 'master'
feat: enable flash encryption support in ESP32H4

Closes IDF-12261, IDF-12969, and IDF-12506

See merge request espressif/esp-idf!45613
2026-05-20 17:45:13 +08:00
Nilesh Kale
d8dbc83e7e Merge branch 'feat/enable_ds_hmac_ecdsa_support_for_esp32s31' into 'master'
feat(hal): add ECDSA,  HMAC and Digital Signature support for esp32s31

Closes IDF-14623, IDF-14624, IDF-14621, and IDF-13062

See merge request espressif/esp-idf!48134
2026-05-20 17:44:14 +08:00
Jiang Jiang Jian
8609249317 Merge branch 'fix/remove_intwdt_config_critical_for_chips_except_esp32' into 'master'
fix(esp_system): remove intwdt config critical area for chips except esp32

See merge request espressif/esp-idf!47097
2026-05-20 17:14:13 +08:00
Wang Meng Yang
36e36fd314 Merge branch 'feat/support_s31_bt_sleep_sdk' into 'master'
feat(bt): support classic Bluetooth sleep mode on ESP32-S31

Closes IDF-15186 and IDF-15194

See merge request espressif/esp-idf!48597
2026-05-20 16:48:18 +08:00
Mayank Tyagi
8cb5be9ba2 feat(nimble): ADD BLE HCI logging support for ESP Insights 2026-05-20 13:53:02 +05:30
Jiang Jiang Jian
426295f132 Merge branch 'bugfix/allow_m1_for_pmk_cache' into 'master'
fix(esp_wifi): Allow M1 in pmk caching case

Closes WIFIBUG-1884

See merge request espressif/esp-idf!48403
2026-05-20 15:52:58 +08:00
Marius Vikhammer
ddea7a5c42 Merge branch 'ci/panic_test_split_coredump' into 'master'
ci: trim panic_coredump build-test dependencies

See merge request espressif/esp-idf!48442
2026-05-20 15:36:42 +08:00
Hu Rui
5067b26eb3 Merge branch 'test/uart_dma_ota_fix' into 'master'
refactor(uhci): refactor uart_dma_ota example

See merge request espressif/esp-idf!48076
2026-05-20 15:35:03 +08:00
hebinglin
8545a91284 feat(esp_hw_support): keep esp32h21 apm_func_ctrl value after sleep 2026-05-20 15:06:58 +08:00
Jiang Jiang Jian
e02f5a9710 Merge branch 'feat/support_twt_for_esp32s31' into 'master'
feat(wifi): update itwt example

See merge request espressif/esp-idf!48483
2026-05-20 15:00:19 +08:00
Jiang Jiang Jian
6dfaa77159 Merge branch 'feat/nan_encrypted_data_path' into 'master'
feat(wifi): support encrypted data path in WiFi Aware (NAN)

See merge request espressif/esp-idf!45270
2026-05-20 14:25:17 +08:00
Rahul Tank
556b26d6f2 Merge branch 'bugfix/fix_bdtm_compilation_issue' into 'master'
fix(nimble): Fix compilation issues while using bdtm porting files

See merge request espressif/esp-idf!48655
2026-05-20 11:30:03 +05:30
Mahavir Jain
945f43cba1 docs(esp_psram): mirror carve-out review-feedback updates in zh_CN
Mirror the recent EN-side updates in the Chinese External RAM guide:

- Replace "PSRAM 顶部" with "PSRAM 上端(最高物理地址区)" to match the
  clarified wording on the EN side.
- Add the verification-helper pointer next to the heap_caps_malloc
  example so Chinese readers also learn about esp_psram_ptr_is_no_enc().

Also drop the :cpp:func: cross-reference for esp_psram_ptr_is_no_enc on
the EN side: esp_psram.h is not in any chip-specific Doxyfile, so
Sphinx/Breathe cannot resolve the reference. Use a plain inline code
literal instead, matching the existing reference style for
esp_psram_get_size and other esp_psram functions in the docs.
2026-05-20 11:19:42 +05:30
Konstantin Kondrashov
d289f24f91 Merge branch 'fix/efuse_sleep_retention_h4' into 'master'
fix(pmu_sleep): Wait eFuse memory update after sleep for ESP32H4

Closes IDF-12323

See merge request espressif/esp-idf!48702
2026-05-20 08:02:10 +03:00
Konstantin Kondrashov
fd7b44503b Merge branch 'feat/update_efuse_doc_for_new_chips' into 'master'
feat(docs): Update efuse doc for H4 and H21

Closes IDF-12959 and IDF-12154

See merge request espressif/esp-idf!48706
2026-05-20 08:01:21 +03:00
Mahavir Jain
9dff0c23b7 docs(esp_psram): clarify carve-out location is at upper end of PSRAM
The previous wording "top of PSRAM" was ambiguous: the carve-out is
actually mapped at the highest physical addresses of PSRAM (after the
rodata, text, and main heap mappings). Update the Kconfig help text for
SPIRAM_ENC_EXEMPT and SPIRAM_ENC_EXEMPT_SIZE, the External RAM
documentation, and the internal layout comment to say "upper end of PSRAM
(highest physical addresses)" instead.
2026-05-20 10:28:17 +05:30
Mahavir Jain
231dc0e884 feat(esp_psram): add esp_psram_ptr_is_no_enc() helper
Drivers that allocate from the unencrypted PSRAM carve-out via
MALLOC_CAP_SPIRAM_NO_ENC currently have no way to verify after the fact
which pool a buffer came from. This is particularly relevant for callers
using heap_caps_malloc_prefer(MALLOC_CAP_SPIRAM_NO_ENC, MALLOC_CAP_SPIRAM),
where a silent fallback to encrypted PSRAM would still pass the typical
esp_ptr_external_ram() check.

Expose esp_psram_ptr_is_no_enc() in the public esp_psram.h header. It
performs a range check against the carve-out's virtual-address window and
returns false when PSRAM is not initialized or CONFIG_SPIRAM_ENC_EXEMPT is
disabled, so callers do not need to guard the call site with #if.

Also reference the helper from the External RAM documentation alongside
the heap_caps_malloc(MALLOC_CAP_SPIRAM_NO_ENC) usage example.
2026-05-20 10:28:06 +05:30
Mahavir Jain
99fe60f404 fix(esp_psram): handle carve-out vaddr exhaustion and add region to self-test
If the virtual-address pool is exhausted when reserving the unencrypted
PSRAM carve-out (the warning at L388 may already have fired for the main
mapping), esp_mmu_map_reserve_block_with_caps() returns an error rather
than aborting. Convert the previous assert() into a logged fallback that
disables the carve-out for this boot, mirroring the SPIRAM_ENC_EXEMPT_SIZE
>= psram_available_size path.

Also extend esp_psram_extram_test() to run the standard memory test on
the carve-out region when CONFIG_SPIRAM_ENC_EXEMPT is enabled, so the
unencrypted mapping is exercised on startup like the other PSRAM regions.
2026-05-20 10:24:28 +05:30
nilesh.kale
34e24e1ed3 fix: disable Key Manager and ECDSA TRNG tests for S31 temporarily 2026-05-20 10:17:34 +05:30
nilesh.kale
a530aab0a6 feat: enable key manager and HUK support for S31 2026-05-20 10:17:34 +05:30
Aditya Patwardhan
e1d429ba30 feat(hal): add ECDSA low-level driver for esp32s31
Co-authored-by: Nilesh Kale <nilesh.kale@espressif.com>
2026-05-20 10:17:34 +05:30
Aditya Patwardhan
e9a9091b59 feat(hal): add HMAC and Digital Signature support for esp32s31
Co-authored-by: Nilesh Kale <nilesh.kale@espressif.com>
2026-05-20 10:17:34 +05:30
nilesh.kale
36fdf38ad4 fix: cleanup xts_aes_reg.h dependency for H21, C61 and H4 2026-05-20 09:29:20 +05:30
nilesh.kale
cae147af08 feat: enable flash encryption for ESP32-H4 2026-05-20 09:29:20 +05:30
Hu Rui
b222c61cb8 refactor(uhci): improve uart_dma_ota example & uhci docs
add const to UHCI rx callback edata->data
2026-05-20 11:21:29 +08:00