Marius Vikhammer
66459e9ddd
change(bootloader): optimize bootloader size
...
Trim bootloader size by moving some logs to DEBUG. Allows
compiling bootloader on P4 with CONFIG_ESPTOOLPY_FLASHMODE_QIO
without changing partition table offset
2026-08-21 10:12:50 +08:00
harshal.patil
6dd847c8dd
refactor(esp_system): deduplicate ROM fast wake RTC digest reservation
...
The digest length and the condition that reserves it at the end of RTC RAM were
duplicated in seven places. Hold the reservation in a hidden Kconfig value that
is zero when the feature does not apply, so every consumer subtracts it
unconditionally, and derive ESP_SECURE_BOOT_DIGEST_LEN from it.
2026-07-31 10:54:32 +08:00
wuzhenghui
f327a4d641
fix(bootloader_support): fix RTC retain mem offset for secure boot fast wakeup
...
Pointer arithmetic on rtc_retain_mem_t* subtracted ESP_SECURE_BOOT_DIGEST_LEN
in struct units instead of bytes. Cast through uintptr_t so retain mem stays
below the ROM verified-image digest region on deep-sleep wake.
Partial backport of !51265 (bootloader_common_loader.c only).
2026-07-28 21:50:18 +08:00
Jiang Jiang Jian
fa8e43eb72
Merge branch 'fix/bootloader_log_format_drom_vaddr_v6.0' into 'release/v6.0'
...
fix(bootloader): use correct format specifier for MMU_LL_END_DROM_ENTRY_VADDR (v6.0)
See merge request espressif/esp-idf!51056
2026-07-24 20:07:42 +08:00
Mahavir Jain
c9fc9d6103
Merge branch 'fix/esp_image_format_v6.0' into 'release/v6.0'
...
fix(esp_image_format): Fix some memory-safety issues (v6.0)
See merge request espressif/esp-idf!50180
2026-07-24 17:16:22 +05:30
Konstantin Kondrashov
62aa8a8393
fix(bootloader): use correct format specifier for MMU_LL_END_DROM_ENTRY_VADDR
...
MMU_LL_END_DROM_ENTRY_VADDR is an int-typed constant on several targets,
so logging it with PRIx32 (uint32_t) triggered -Werror=format=. Use the
plain %x specifier which matches the int type.
Closes https://github.com/espressif/esp-idf/issues/18857
2026-07-22 09:32:51 +03:00
nilesh.kale
0a3fe51c69
fix(bootloader_support): enable XTS-AES pseudo rounds for ESP32-P4
...
Burn XTS_DPA_PSEUDO_LEVEL efuse on P4 (rev >= 3.0) as done for other targets.
2026-07-22 14:07:03 +08:00
nilesh.kale
783348ad44
fix(bootloader_support): set SECURE_BOOT_SHA384_EN eFuse on ESP32-P4
...
Set SECURE_BOOT_SHA384_EN when enabling ECDSA-P384 Secure Boot V2 on
ESP32-P4, as done on C5/H4/S31, so that ROM verifies the bootloader
using the SHA-384 scheme. The eFuse exists only on the rev >= v3.0
eFuse table, so the Kconfig option is gated on rev >= v3.0.
2026-07-22 14:07:03 +08:00
Konstantin Kondrashov
decd12a726
fix(esp_image_format): validate MMU page size
2026-07-21 13:35:35 +03:00
Konstantin Kondrashov
747facfa27
fix(esp_image_format): verify length of segment #0 for app description
2026-07-21 13:35:35 +03:00
Konstantin Kondrashov
e8c1dad0c1
fix(esp_image_format): Verify image segment count
2026-07-21 13:35:35 +03:00
Ashish Sharma
e2537bb5e4
fix(bootloader_support): guard NULL efuse digest slot in secure-boot verify
2026-07-16 18:24:47 +08:00
Song Ruo Jing
b5e03248bb
fix(stdio): add console input ability when selects ESP_CONSOLE_UART_CUSTOM_NUM_1
2026-07-09 19:24:07 +08:00
Mahavir Jain
93056b5253
Merge branch 'fix/fix_sbv2_psa_algo_check_v6.0' into 'release/v6.0'
...
fix(secure_boot_v2): select correct secure boot algorithm based on key
See merge request espressif/esp-idf!49856
2026-06-30 18:17:45 +05:30
nilesh.kale
20289c2f08
fix(secure_boot_v2): select correct secure boot algorithm based on key
...
(cherry picked from commit e3b1d571d0 )
2026-06-29 16:00:13 +08:00
Mahavir Jain
1afc579e07
change(bootloader): honor SECURE_BOOT_ALLOW_UNUSED_DIGEST_SLOTS during first boot
...
Previously the bootloader unconditionally revoked unused secure boot key
digest slots while permanently enabling secure boot on the first boot,
ignoring CONFIG_SECURE_BOOT_ALLOW_UNUSED_DIGEST_SLOTS. Now the config is
honored on this path too: when set, the unused digest slots are left
un-revoked. This is safe as long as the debug and download interfaces are
disabled.
Update the Kconfig help and the Secure Boot v2 guide (en and zh_CN)
accordingly.
2026-06-16 13:30:03 +05:30
Jiang Jiang Jian
fa801fe002
Merge branch 'contrib/github_pr_18495_v6.0' into 'release/v6.0'
...
fix(bootloader_support): Fix app verification when split across multiple mmaps (GitHub PR) (v6.0)
See merge request espressif/esp-idf!48271
2026-05-15 14:05:37 +08:00
Nebojša Cvetković
ee127fd4de
fix(bootloader_support): Fix app verification when split across multiple mmaps
...
Merges https://github.com/espressif/esp-idf/pull/18495
2026-05-14 14:43:29 +08:00
Konstantin Kondrashov
9e03819d91
feat(efuse): Update efuse table for ESP32-H4
2026-05-14 14:42:49 +08:00
Ashish Sharma
04ec0ab538
feat(bootloader_support): remove P192 curve support
2026-05-10 19:16:12 +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
morris
3ae282f796
Merge branch 'change/deprecate_tcm_and_use_scp_v6.0' into 'release/v6.0'
...
tcm: deprecated tcm and added scp memory utils (v6.0)
See merge request espressif/esp-idf!46588
2026-03-19 23:34:57 +08:00
Aditya Patwardhan
c8a92d52c3
Merge branch 'fix/add_ecdsa_curve_validation_during_secure_boot_v6.0' into 'release/v6.0'
...
fix(bootloader_support): added ecdsa curve validation during secure boot (v6.0)
See merge request espressif/esp-idf!46297
2026-03-19 19:46:00 +05:30
Erhan Kurubas
4a7d67df84
feat(esp32h4): add assist_debug stack monitoring support
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
Chen Jichang
04df934c05
refactor(flash_enc): move esp_flash_encryption_enabled() to efuse component
2026-03-06 18:14:22 +08:00
nilesh.kale
aad21fec89
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-05 10:31:06 +05:30
wuzhenghui
2d8c6ed6b4
change(esp_hal_rtc_timer): unify lp_timer/rtc_timer naming to RTC_TIMER
2026-01-31 22:31:34 +08:00
Aditya Patwardhan
9dbe3975e4
fix(bootloader_support): Use ROM SHA types to avoid esp_hal_security dependency
2026-01-30 17:12:56 +05:30
Aditya Patwardhan
4d3cfefc2e
refactor(esp_hal_security): Updated esp_hal_security build and includes
2026-01-30 17:12:54 +05:30
Jiang Jiang Jian
d3e1887bbc
Merge branch 'fix/p4_min_rev_usage_v6.0' into 'release/v6.0'
...
P4: fix wrong rev_min usage in rom and other places (v6.0)
See merge request espressif/esp-idf!45223
2026-01-30 10:50:51 +08:00
nilesh.kale
2ab4d5cf48
feat: enabled ECDSA peripheral support for ESSP32-P4
2026-01-29 11:24:47 +05:30
Xiao Xufeng
79f7427729
fix(esp32p4): fix efuse, encryption and other rev_min usage
2026-01-28 21:46:00 +08:00
Jiang Jiang Jian
b34e8b03b9
Merge branch 'fix/fix_secure_boot_fast_wake_feature_v6.0' into 'release/v6.0'
...
fix(esp_system): fix ROM secure boot fast wake feature (v6.0)
See merge request espressif/esp-idf!44951
2026-01-28 17:50:30 +08:00
wuzhenghui
0ea4a22ce9
fix(esp_hw_support): fix RNG to LP peri domain dependency on C5
2026-01-09 11:17:15 +08:00
wuzhenghui
9a20ef85f5
fix(esp_system): fix rom secure boot fast wake feature for c5/c6/h2/h21
2026-01-09 11:15:12 +08:00
Song Ruo Jing
ce475d901d
refactor(uart): split UART HAL into separate component
2026-01-04 16:02:57 +08:00
Mahavir Jain
7da79a653c
Merge branch 'feature/mbedtls_psa_migration_v6.0' into 'release/v6.0'
...
feat(mbedtls): PSA Migration to release v6.0
See merge request espressif/esp-idf!43323
2025-12-21 13:52:48 +05:30
Jiang Jiang Jian
64c7148839
Merge branch 'fix/fix_bootloader_skip_validate_in_deep_sleep_v6.0' into 'release/v6.0'
...
fix(bootloader): fix signature verification skip in deep sleep scenarios (v6.0)
See merge request espressif/esp-idf!43695
2025-12-21 14:57:08 +08:00
Ashish Sharma
b02538834c
fix: resolves MR comments
2025-12-20 23:02:25 +08:00
Ashish Sharma
5d5ba9d008
fix: migrate PSA SHA driver to be similar to parallel engine port
2025-12-19 11:06:41 +08:00
Ashish Sharma
f306dbea84
feat(mbedtls): migrates ESP-TEE with PSA APIs
2025-12-19 07:28:33 +08:00
Ashish Sharma
a088d2ccdc
feat(mbedtls): fix build errors with PSA migration
2025-12-18 21:18:58 +08:00
Ashish Sharma
b4fea9cccc
feat(lwip): migrate to to PSA API interface
2025-12-18 21:18:58 +08:00
Aditya Patwardhan
574a60289d
feat(protocomm): Migrate to PSA api interface
2025-12-18 21:18:58 +08:00
Aditya Patwardhan
c39347c00c
feat(bootloader_support): Migrated mbedTLS crypto APIs to PSA
2025-12-18 21:18:55 +08:00
wanckl
d12f941787
feat(driver_spi): split spi hal component
2025-12-16 20:38:09 +08:00
harshal.patil
4504fa267b
fix(secure_boot): Application's Secure Boot verify API support ECDSA-P384
2025-12-12 12:37:48 +05:30
morris
946dcf73e3
Merge branch 'feature/graduate_i2s_parlio_analog_hal_components_v6.0' into 'release/v6.0'
...
Feature/graduate i2s parlio analog hal components v6.0
See merge request espressif/esp-idf!44043
2025-12-11 16:58:37 +08:00