Commit Graph

1220 Commits

Author SHA1 Message Date
C.S.M edc387e571 Merge branch 'feat/bod_bringup_h21' into 'master'
feat(bod): Add support for bod on esp32h21

Closes IDF-11530

See merge request espressif/esp-idf!46812
2026-03-30 10:59:33 +08:00
Fu Hanxi 12cc3a92af Merge branch 'feat/parametrize-pytest-cli-args' into 'master'
ci: move test cli args alongside test scripts

Closes IDFCI-1951 and IDFCI-2940

See merge request espressif/esp-idf!46966
2026-03-28 08:04:25 +01:00
Fu Hanxi ddc7e0cdf7 ci: move qemu test cli args alongside test scripts
remove redundant host_test marker
2026-03-26 10:56:15 +01:00
Song Ruo Jing 7b1d576416 Merge branch 'feature/esp32s31_regi2c_support' into 'master'
feat(regi2c): add support for ESP32S31

Closes IDF-14680

See merge request espressif/esp-idf!46469
2026-03-26 17:31:13 +08:00
C.S.M f491e94863 feat(bod): Add support for bod on esp32h21 2026-03-25 19:38:20 +08:00
Song Ruo Jing 7cbafcf1c6 feat(regi2c): add support for ESP32S31 2026-03-25 16:17:12 +08:00
hebinglin 474d89b4c2 fix(clk): update H21 ECO1 to use 64MHz clock for mspi 2026-03-25 15:38:49 +08:00
Meet Patel c4e2fe2c8b refactor(system): guard WDT with SoC capability macros
Wrap MWDT-related code under SOC_WDT_SUPPORTED so targets without a main
watchdog can compile.

Add SOC_RTC_WDT_SUPPORTED for RTC watchdog usage (bootloader, slow-clock
paths) and regenerate Kconfig.soc_caps.in. Bootloader RWDT setup stays
under SOC_RTC_WDT_SUPPORTED; MWDT flashboot teardown stays under
SOC_WDT_SUPPORTED.

ESP_INT_WDT, ESP_TASK_WDT_EN, and BOOTLOADER_WDT_ENABLE depend on
SOC_WDT_SUPPORTED where applicable. Build xt_wdt.c only when
SOC_XT_WDT_SUPPORTED. Provide no-op panic WDT helpers when
SOC_WDT_SUPPORTED is disabled.
2026-03-24 14:57:43 +05:30
Marius Vikhammer 655d7a0c79 Merge branch 'bugfix/s31_system_chip_back' into 'master'
fix(esp32s31): fix super WDT reset and systimer hang during startup

See merge request espressif/esp-idf!46701
2026-03-19 10:37:55 +08:00
Marius Vikhammer e8ba294bd2 fix(bootloader): enable super WDT auto-feed on ESP32-S31
The super WDT was firing during bootloader init because auto-feed was
not enabled, causing continuous resets with rst:0x12 (SUPER_WDT_RESET).

Made-with: Cursor
2026-03-17 15:41:14 +08:00
armando c60ed4b338 fix(spm): rename scp (scratchpad) to spm (scratchpad memory) 2026-03-17 01:29:34 +00:00
armando c96f69faef change(mem): deprecated tcm and added scp memory utils 2026-03-11 11:18:15 +08:00
Song Ruo Jing 600bf5b6d7 refactor(esp_hal_regi2c): move regi2c implementation from esp_rom to esp_hal_regi2c 2026-03-10 15:08:51 +08:00
Mahavir Jain d8df5d32fe Merge branch 'fix/add_ecdsa_curve_validation_during_secure_boot' into 'master'
fix(bootloader_support): added ecdsa curve validation during secure boot

See merge request espressif/esp-idf!46022
2026-03-04 15:38:55 +05:30
nilesh.kale 10cbacfb19 fix(bootloader_support): added ecdsa curve validation during secure boot
This commit added ECDSA key curve validation between
curve selected in menuconfig and key provided.
2026-03-03 12:53:27 +05:30
Marius Vikhammer 52952535bc feat(esp32s31): Add watchdog timer support
Made-with: Cursor
2026-03-02 10:16:38 +08:00
Wu Zheng Hui ad1f0f870b Merge branch 'feat/support_esp32s31_pmu_basic' into 'master'
feat(esp_hw_support): support esp32s31 pmu basic

Closes IDF-14642

See merge request espressif/esp-idf!45494
2026-02-24 14:11:27 +08:00
Sudeep Mohanty 01b6effcbe fix(bootloader_support): Require micro-ecc only for BOOTLOADER_BUILD
When CONFIG_APP_BUILD_TYPE_RAM is set (loadable ELF app build),
bootloader_support was adding micro-ecc to priv_requires. The micro-ecc
component lives in the bootloader subproject and is not available in
normal app builds with cmakev2, causing component resolution to fail
when built for a build system v2 project.

micro-ecc is only needed for secure boot sources built under
BOOTLOADER_BUILD (secure_boot_signatures_bootloader.c). For app builds
with CONFIG_APP_BUILD_TYPE_RAM we do not build those sources, so
only add micro-ecc to priv_requires when BOOTLOADER_BUILD is set.
2026-02-18 10:25:35 +01:00
Mahavir Jain aa471598cf Merge branch 'contrib/github_pr_18229' into 'master'
fix(bootloader): prevent unsigned overflow in partition table validation (GitHub PR)

Closes IDFGH-17230

See merge request espressif/esp-idf!45839
2026-02-12 17:45:38 +05:30
wuzhenghui 0b27301a09 feat(soc): support esp32s31 lp_aon & rtc_wdt & rtc_timer 2026-02-11 15:03:35 +08:00
Eun0us fc29190dba fix(bootloader): prevent unsigned overflow in partition table validation
The bounds check `pos->offset + pos->size > chip_size` can silently
wrap around when both offset and size are large uint32_t values,
bypassing the validation entirely.

Use `pos->size > chip_size - pos->offset` instead, which is safe
because pos->offset <= chip_size is already verified by the first
condition in the same expression.

Found via https://github.com/Eun0us/esp-fuzzer
2026-02-10 19:11:59 +01:00
Chen Ji Chang 7a8a5d8852 Merge branch 'test/parlio_flash_enc_test' into 'master'
test(parlio,rmt,lcd): add virtual flash encryption test

Closes IDF-15064, IDF-15065, and IDF-15069

See merge request espressif/esp-idf!45006
2026-02-06 19:26:22 +08:00
Chen Jichang b8c527a87c refactor(flash_enc): move esp_flash_encryption_enabled() to efuse component 2026-02-05 11:42:08 +08:00
C.S.M 879d74e298 fix(spi_flash): Fix esp32p4 120m flash suspend failed 2026-02-04 11:42:35 +08:00
wuzhenghui cf3c8cb77c feat(esp_hw_support): hold MSPI pins in pd_top lightsleep 2026-01-28 19:49:46 +08:00
wuzhenghui aaeec3228d fix(bootloader): fix bootloader bad spi pin drv config and clear all wpu/wpd by default 2026-01-28 19:49:46 +08:00
Michael (XIAO Xufeng) 5984b29af5 Merge branch 'refactor/spi_flash_private' into 'master'
refactor(spi_flash): reorganize header files, improve encapsulation and simplify ROM implementation

See merge request espressif/esp-idf!44347
2026-01-28 17:39:51 +08:00
igor.udot 4c26ab876b ci: update build-test-rules to use common_components 2026-01-23 10:14:09 +08:00
Xiao Xufeng 8dbf23630a refactor(spi_flash): reorganize header files and improve API encapsulation
This commit reorganizes SPI flash header files to better reflect their
visibility and intended usage:

1. Rename `esp_flash_port/` to `esp_flash_chips/`:
   - Better reflects that these headers are for chip driver implementations
   - All chip driver headers moved to `esp_flash_chips/` directory
   - Added README.md explaining semi-public nature of these headers

2. Move internal headers to `esp_private/`:
   - `esp_flash_internal.h` -> `esp_private/esp_flash_internal.h`
   - `memspi_host_driver.h` -> `esp_private/memspi_host_driver.h`

3. Move chip driver related headers to `esp_flash_chips/`:
   - `esp_private/esp_flash_types.h` -> `esp_flash_chips/esp_flash_types.h`
   - `spi_flash/spi_flash_defs.h` -> `esp_flash_chips/spi_flash_defs.h`
   - `spi_flash_override.h` -> `esp_flash_chips/spi_flash_override.h`
   - All `spi_flash_chip_*.h` headers moved to `esp_flash_chips/`

4. Code improvements:
   - Remove unused includes (e.g., `spi_flash_override.h` from `cache_utils.c`)
   - Use public API `esp_flash_get_size()` instead of direct member access
   - Add `esp_flash_is_quad_mode` to linker.lf for IRAM placement

5. Documentation updates:
   - Add README.md in `esp_flash_chips/` explaining semi-public headers
   - Update programming guide with warnings about internal headers
   - Update both English and Chinese documentation

6. Update all references across the codebase:
   - Update includes in `spi_flash` component
   - Update `bootloader_support`, `app_update`, `esp_tee`, `espcoredump`
   - Update example projects

Breaking changes:
- Headers moved to new locations require include path updates
- `custom_flash_driver` example temporarily disabled until external
  components are updated
2026-01-23 03:38:54 +08:00
Michael (XIAO Xufeng) b61f940191 Merge branch 'fix/min_rev_usage' into 'master'
fix: fix wrong REV_MIN usage for security, bt, efuse

See merge request espressif/esp-idf!45219
2026-01-22 21:25:57 +08:00
Song Ruo Jing 526bf6176e Merge branch 'feature/esp32c61_flash_psram_timing_tuning' into 'master'
feat(mspi): support 120MHz flash and psram for esp32c61

Closes IDF-9256, IDF-14918, and IDFCI-3240

See merge request espressif/esp-idf!45012
2026-01-22 16:36:25 +08:00
morris a4f6980e1f Merge branch 'refactor/create_esp_hal_security' into 'master'
refactor: Created esp_hal_security component

Closes IDF-14086

See merge request espressif/esp-idf!44253
2026-01-22 11:56:46 +08:00
Xiao Xufeng 64d93379ae fix(tee): fix failed to configure flash on C6 v0.1 and above when REV_MIN_0 configured 2026-01-22 02:55:12 +08:00
Song Ruo Jing fc4f07abd6 feat(mspi): support 120MHz flash and psram for esp32c61 2026-01-21 14:38:04 +08:00
Aditya Patwardhan eb4a871eca refactor(esp_hal_security): Updated esp_hal_security build and includes 2026-01-21 10:02:44 +05:30
armando 364dc14de4 change(flash): improve bootloader_flash_read log 2026-01-20 10:07:54 +08:00
Xiao Xufeng e644aed729 fix(esp32p4): fix efuse, encryption and other rev_min usage 2026-01-19 16:58:16 +08:00
Mahavir Jain ecdb2bd135 Merge branch 'feature/enable_support_for_aes_and_sha_in_esp32h4' into 'master'
feat: enable support for aes and sha peripheral in esp32h4

Closes IDF-12266

See merge request espressif/esp-idf!41331
2026-01-19 10:33:54 +05:30
Song Ruo Jing 62511d61e9 refactor(clk): split clock HAL into separate component 2026-01-13 15:50:20 +08:00
Mahavir Jain 7675ce81df Merge branch 'feat/enable_pseudo_round_support_for_xts_aes_esp32p4_eco5' into 'master'
feat: added support for pseudo round xts aes in esp32p4 eco5

Closes IDF-13525

See merge request espressif/esp-idf!44376
2026-01-07 20:07:45 +05:30
nilesh.kale f2068bb34f fix: remove reference to closed JIRA tracker IDF-10694 2026-01-07 12:05:53 +05:30
nilesh.kale f42e35bb68 feat: added support for pseudo round xts aes in esp32p4 eco5 2026-01-07 13:20:55 +08:00
Song Ruo Jing 215c9993bf fix(clk): update H4 to use 64MHz clock for mspi
And add pll clock ref count
2026-01-04 14:07:01 +08:00
Wu Zheng Hui dcca718908 Merge branch 'refactor/independent_rtc_timer_hal' into 'master'
feat(hal): graduate rtc_cntl_timer/lp_timer hal/ll  into a new component: esp_hal_rtc_timer and unify naming

Closes IDF-15045

See merge request espressif/esp-idf!44573
2025-12-31 05:22:06 +08:00
Mahavir Jain a4293b1c3f Merge branch 'feat/secure_boot_externally_init_case' into 'master'
feat(bootloader): add config to force secure boot already init case

See merge request espressif/esp-idf!44107
2025-12-30 14:12:11 +05:30
Mahavir Jain 5979ca3d14 feat(bootloader): add config to force secure boot already init case
Mostly helpful in testing scenarios. The newly added config
SECURE_BOOT_REQUIRE_ALREADY_ENABLED will ensure the SB feature must
already be enabled, otherwise the bootloader simply fails to boot.
2025-12-30 10:06:51 +05:30
Ashish Sharma eb95eafac1 feat: migrates bootloader_support to PSA APIs 2025-12-30 09:31:49 +05:30
wuzhenghui 48ba430297 change(esp_hal_rtc_timer): unify lp_timer/rtc_timer naming to RTC_TIMER 2025-12-30 11:35:36 +08:00
Wu Zheng Hui 3e9d7f3e7e Merge branch 'fix/fix_c5_rng_to_lp_peri_dependency' into 'master'
fix(esp_hw_support): fix RNG to LP peri domain dependency on C5

Closes PM-642 and BLERP-2481

See merge request espressif/esp-idf!44470
2025-12-29 21:19:45 +08:00
wuzhenghui a659753392 fix(esp_hw_support): fix RNG to LP peri domain dependency on C5 2025-12-29 10:49:53 +08:00