1303 Commits

Author SHA1 Message Date
Konstantin Kondrashov
7cac7e0b86 Merge branch 'fix/remove-bootloader-desc-from-app-build' into 'master'
fix(esp_bootloader_format): Remove bootloader description from app build

See merge request espressif/esp-idf!50576
2026-07-10 14:05:55 +03:00
Konstantin Kondrashov
8913d4cf61 fix(esp_bootloader_format): Remove bootloader description from app build
The removed function `esp_bootloader_get_description` never worked in the app build.
It can be used only in the bootloader build.

To read the bootloader description from app, there is another function
`esp_ota_get_bootloader_description`.
2026-07-10 12:17:59 +03:00
Song Ruo Jing
4a94a5a396 fix(stdio): add console input ability when selects ESP_CONSOLE_UART_CUSTOM_NUM_1 2026-07-08 12:08:46 +08:00
morris
651d6a283f refactor(esp_common): centralize ALIGN_UP/ALIGN_DOWN into esp_macros.h
Remove ~50 duplicate local definitions of ALIGN_UP/ALIGN_DOWN/ALIGN_UP_BY/
ALIGN_DOWN_BY across the codebase and replace them with canonical
ESP_ALIGN_UP/ESP_ALIGN_DOWN from esp_macros.h.
2026-07-06 13:36:06 +08:00
Ashish Sharma
e09ab205f1 fix(bootloader_support): guard NULL efuse digest slot in secure-boot verify 2026-07-03 17:19:05 +08:00
Wu Zheng Hui
d8b255280b Merge branch 'fix/fix_mpll_enable_order' into 'master'
fix(esp_hw_support): fix esp32s31 mpll initialization

Closes IDF-15820

See merge request espressif/esp-idf!49927
2026-07-01 16:35:20 +08:00
Konstantin Kondrashov
1d7bfe4c3f Merge branch 'fix/esp_image_format' into 'master'
fix(esp_image_format): Fix some memory-safety issues

Closes IDF-15801 and SEC-1158

See merge request espressif/esp-idf!49675
2026-06-30 09:19:17 +03:00
Konstantin Kondrashov
e08d198fd6 fix(esp_image_format): validate MMU page size 2026-06-29 12:10:50 +03:00
Michael (XIAO Xufeng)
c1b218b640 Merge branch 'fix/mmap_cache_flash_wr' into 'master'
fix(mmap): fixed mmap read data wrong when flash being erased/written and cache not disabled

Closes IDFGH-14084

See merge request espressif/esp-idf!29804
2026-06-29 11:44:10 +08:00
wuzhenghui
ba1df35672 fix(esp_hw_support): fix esp32s31 mpll initialization 2026-06-25 12:20:57 +08:00
Konstantin Kondrashov
d06a91db18 fix(esp_image_format): verify length of segment #0 for app description 2026-06-23 15:22:03 +03:00
Konstantin Kondrashov
d03f628da6 fix(esp_image_format): Verify image segment count 2026-06-23 14:57:05 +03:00
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
Xiao Xufeng
0307fa6abb bootloader_utils: fixed missing unmap in load_partition_table when table verify failed 2026-06-16 01:00:43 +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
Sudeep Mohanty
1023873fb2 fix(test_apps/rtc_custom_section): declare bootloader_support as a private requirement of main 2026-06-15 14:58:46 +02:00
Alexey Lapshin
406bd2393e fix(ci): suppress GNU static analyzer warnings 2026-06-15 18:53:21 +07:00
Mahavir Jain
8da7627526 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-10 13:09:10 +05:30
Song Ruo Jing
19287f5f0c Merge branch 'feature/esp32h4_flash_support' into 'master'
feat(spi_flash): Add exclusive support for ESP32H4

Closes IDF-12290, IDF-12389, and IDF-15616

See merge request espressif/esp-idf!47679
2026-06-09 15:23:34 +08:00
Mahavir Jain
edae80c202 Merge branch 'contrib/github_pr_18700' into 'master'
Fixed typos in flash_encrypt.c (GitHub PR)

Closes IDFGH-17779

See merge request espressif/esp-idf!49388
2026-06-08 16:04:40 +05:30
Song Ruo Jing
545b31e6b9 feat(spi_flash): Add exclusive support for ESP32H4
Add 32bit addr support for esp32s31 as well
2026-06-08 17:56:09 +08:00
Huyghe Robin
c20ec4effd Fixed typos in flash_encrypt 2026-06-08 08:51:32 +02:00
C.S.M
2acd9b9a7c fix(spi_flash): Fix suspend issue on esp32s31, and add trs timing on other target 2026-06-08 11:15:13 +08:00
Chai Ji’e
9dc046e94b Merge branch 'feature/chip764_power_glitch_support' into 'master'
feat(s31): bootloader power glitch reset config

See merge request espressif/esp-idf!49050
2026-06-03 09:30:22 +08:00
hongshuqing
318dba3b96 feat(pwr_glitch): chip764 power glitch reset config 2026-06-01 19:27:08 +08:00
Guillaume Souchere
33e774397c Merge branch 'feat/error-code-registration' into 'master'
feat(esp_common): implement composable error code registration via link-time arrays

Closes IDF-15105 and IDF-15486

See merge request espressif/esp-idf!46125
2026-06-01 09:40:37 +02:00
hongshuqing
58e8df647e fix(vol): update dreg_1p1 and dreg_1p1_pvt in bootloader 2026-05-29 15:06:08 +08:00
Mahavir Jain
d0fb1cdad8 Merge branch 'feat/enable_sb_and_fe_support_for_esp32s31' into 'master'
feat: enable Secure Boot, Flash Encryption and Key Manager support in ESP32S31

Closes IDF-14629, IDF-14628, IDF-14626, and IDF-14622

See merge request espressif/esp-idf!48136
2026-05-29 10:31:34 +05:30
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
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
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
nilesh.kale
e3b1d571d0 fix(secure_boot_v2): select correct secure boot algorithm based on key 2026-05-26 12:57:34 +08:00
nilesh.kale
fe257f699e feat: enable Secure Boot, Flash Encryption and Key Manager support for S31 2026-05-26 12:57:34 +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
Konstantin Kondrashov
7dab1d313e Merge branch 'feature/efuse_esp32h21' into 'master'
feat(efuse): Update efuse table for ESP32H21

Closes IDF-11556

See merge request espressif/esp-idf!48762
2026-05-22 09:39:18 +03:00
Konstantin Kondrashov
f870ed9d61 feat(efuse): Update efuse table for ESP32H21 2026-05-21 16:29:09 +03:00
Song Ruo Jing
3ba8d08d02 fix(clk): raised axi/ahb clock freq up to 106mhz at max 2026-05-21 16:39:40 +08:00
Sudeep Mohanty
56b1c32590 fix(bootloader_support): declare esp_security as a dependency for flash_encrypt
flash_encrypt.c is in the unconditional source list and includes
esp_security/esp_key_mgr.h whenever SOC_KEY_MANAGER_SUPPORTED is set.
Move the esp_security PRIV_REQUIRES declaration outside the
BOOTLOADER_BUILD branch so every build variant that compiles
flash_encrypt.c gets the dependency consistently.
2026-05-21 10:05:48 +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
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
nilesh.kale
cae147af08 feat: enable flash encryption for ESP32-H4 2026-05-20 09:29:20 +05:30
hongshuqing
ad310ce681 update rng souce enable and disable 2026-05-18 08:06:01 +08:00
gaoxu
8c74734591 feat(rng): basic rng support on esp32h4 2026-05-18 08:05:19 +08:00
Mahavir Jain
cee71ceb39 Merge branch 'feat/enable_secure_boot_support_for_esp32h4' into 'master'
feat: enable support for secure boot in esp32h4

Closes IDF-12262 and IDF-12966

See merge request espressif/esp-idf!45603
2026-05-13 19:07:25 +05:30
Gao Xu
69136606ab Merge branch 'feat/s31_rng_basic_support' into 'master'
Feat/s31 rng support

Closes IDF-14632, WIFIBUG-1875, and TZ-2554

See merge request espressif/esp-idf!47217
2026-05-13 17:47:59 +08:00
gaoxu
07aaba7c7b refactor(rng): move rng read data function to rng_ll.h and update docs of RNG source 2026-05-13 15:09:55 +08:00
C.S.M
2b7992213c feat(bod): Add bod support on esp32s31 2026-05-12 12:30:35 +08:00
nilesh.kale
76e2e6d53f feat: enable support for secure boot in esp32h4 2026-05-11 16:26:01 +05:30
gaoxu
3d7a643ff7 feat(rng): trng refactor to ll functions on esp32s31 2026-05-11 09:08:25 +08:00