Commit Graph

397 Commits

Author SHA1 Message Date
harshal.patil
81ffe04323 fix(soc): Remove non-existent crypto registers (ESP32-C61) 2026-06-09 13:33:25 +05:30
Konstantin Kondrashov
885097762f feat(efuse): Support efuse token dump
- efuse token dump is compatible with espefuse tool
- EFSW dump can be burned on chip with esp_efuse_token_burn()
2026-06-03 13:19:59 +03: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
Konstantin Kondrashov
f870ed9d61 feat(efuse): Update efuse table for ESP32H21 2026-05-21 16:29:09 +03:00
Konstantin Kondrashov
e8609f59a8 feat(bootloader): Support recovery bootloader for ESP32S31 and ESP32P4 2026-05-08 16:45:14 +03:00
Konstantin Kondrashov
c29532f98c feat(efuse): Support efuses for ESP32S31 2026-04-29 15:50:32 +03:00
Zhang Wen Xu
9c2bde6b64 Merge branch 'feat/support_154_on_s31' into 'master'
feat(802.15.4): support 154 on esp32s31

Closes IDF-14802, IDF-14803, and IDF-14612

See merge request espressif/esp-idf!47440
2026-04-21 09:27:39 +00:00
zhuanghang
9d3a0945fb feat(802.15.4): support 154 on esp32s31 2026-04-20 19:47:47 +08:00
Konstantin Kondrashov
ea6b477da4 feat(efuse): Adds efuse calibration field for esp32c5 2026-04-17 09:54:00 +03:00
Konstantin Kondrashov
809b8cd720 feat(efuse): Adds efuse for ESP32-H2 revision 1.2 2026-04-13 10:39:13 +08:00
C.S.M
152b5ccb4c ci(esp32s31): Add ci target test for esp32s31 2026-04-03 11:38:45 +08:00
Konstantin Kondrashov
8701705ec3 feat(efuse): Update efuse table for ESP32-H4 2026-04-01 16:15:45 +03: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
Konstantin Kondrashov
c4e8c1df9f Merge branch 'feature/postpone_locked_efuses' into 'master'
feat(efuse): Defer WR_DIS eFuse burning

Closes IDF-14045

See merge request espressif/esp-idf!44652
2026-02-13 16:21:09 +02:00
Konstantin Kondrashov
74ee653fed fix(efuse): erase virtual blocks before burn in damaged-reading test
Some chip may have BLOCK3 in use so we need to erase it before test.
2026-02-11 16:12:26 +02:00
Konstantin Kondrashov
be517fa8c0 feat(efuse): Defer WR_DIS eFuse burning 2026-02-11 11:07:12 +02:00
Chen Jichang
b8c527a87c refactor(flash_enc): move esp_flash_encryption_enabled() to efuse component 2026-02-05 11:42:08 +08:00
igor.udot
4c26ab876b ci: update build-test-rules to use common_components 2026-01-23 10:14:09 +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
Aditya Patwardhan
eb4a871eca refactor(esp_hal_security): Updated esp_hal_security build and includes 2026-01-21 10:02:44 +05:30
Xiao Xufeng
e644aed729 fix(esp32p4): fix efuse, encryption and other rev_min usage 2026-01-19 16:58:16 +08:00
Mahavir Jain
9adbef7374 Merge branch 'feat/enable_ecdsa_support_for_esp32p4_eco5' into 'master'
feat(esp32p4_eco5): enabled ECDSA peripheral support for ESP32P4 ECO5

Closes IDF-13522, IDF-13744, IDF-12235, and IDF-13523

See merge request espressif/esp-idf!43023
2025-12-16 17:30:45 +05:30
nilesh.kale
2267558b15 feat: enabled ECDSA peripheral support for ESSP32-P4 2025-12-16 11:48:06 +05:30
morris
291554cd09 refactor(global): remove completed todos in the codebase 2025-12-15 22:40:15 +08:00
C.S.M
e3eaee53e2 Merge branch 'ci/esp32s31_build_ena' into 'master'
ci(esp32s31): Add ci build test for esp32s31

See merge request espressif/esp-idf!44045
2025-12-12 14:59:42 +08:00
Konstantin Kondrashov
52473e8638 Merge branch 'fix/efuse_regs_store_operations' into 'master'
feat(hal): Adds half-word read/write checks for efuse

Closes IDF-13567

See merge request espressif/esp-idf!41308
2025-12-11 17:20:15 +08:00
C.S.M
f405e51784 ci(esp32s31): Add ci build test for esp32s31 2025-12-11 15:17:15 +08:00
Konstantin Kondrashov
4616a8269f feat(hal): Adds half-word read/write checks for efuse 2025-12-09 16:17:09 +02:00
Konstantin Kondrashov
8cbeb5fb90 feat(efuse): Adds efuse flash fields for esp32c2 2025-12-09 16:14:16 +02:00
Konstantin Kondrashov
1ff8d3da09 Merge branch 'feature/update_depends_components_for_core_components' into 'master'
feat(all): Update depends_components for core components

Closes IDF-14170, IDF-14165, IDF-14173, IDF-14167, IDF-14169, and IDF-14162

See merge request espressif/esp-idf!43735
2025-12-04 18:17:55 +08:00
morris
c68237f5fa Merge branch 'feat/esp32p4_eco5_adc_cali' into 'master'
feat(adc): support ADC calibration on ESP32P4 ECO5

Closes IDF-14357

See merge request espressif/esp-idf!43685
2025-11-26 12:22:20 +08:00
Konstantin Kondrashov
c267c6245a feat(efuse): Update depends_components
Where efuse is used as depends_components:
 - to test efuse APIs:
    - components/efuse/test_apps
    - examples/system/efuse
 - to test secuity APIs:
    - components/hal/test_apps/crypto
 - to test adc calib APIs:
    - components/esp_adc/test_apps/adc
    - examples/peripherals/adc/continuous_read
    - examples/peripherals/adc/oneshot_read
2025-11-25 17:55:52 +02:00
gaoxu
7a352eb676 feat(adc): support ADC calibration on ESP32P4 ECO5 2025-11-25 10:44:01 +08:00
Konstantin Kondrashov
ccee6d23a2 fix(efuse): Fix test where size of field was obtained incorrectly
When the eFuse field consists of single descriptor, its size can be
taken from struct member 'bit_count'. However, when the field consists of
multiple descriptors, the size should be obtained via esp_efuse_get_field_size()
2025-11-24 17:13:54 +02:00
Konstantin Kondrashov
3f519e8a97 fix(efuse): Adds missing SOC defines for ESP32-P4 v3 2025-11-24 17:13:54 +02:00
C.S.M
fc697158a5 feat(esp32s31): Add efuse and esp_rom support 2025-11-21 11:43:27 +08:00
morris
aa1fd9c611 refactor: avoid function calls inside MIN/MAX macros 2025-11-17 22:17:54 +08:00
armando
b25ba4a0c1 ci(p4): disable p4 rev3 invalid tests temporarily 2025-11-17 12:11:39 +08:00
armando
3847e78f77 change(p4): make v3 as default 2025-11-17 12:11:39 +08:00
Harshal Patil
0debe71b3d Merge branch 'feat/flash_enc_using_key_manager' into 'master'
Support Flash Encryption using Key Manager

Closes IDF-13462 and IDF-14278

See merge request espressif/esp-idf!41879
2025-11-13 07:55:15 +05:30
harshal.patil
0c3c284819 feat(bootloader_support): Support FE XTS-AES-256 using Key Manager for ESP32-C5 2025-11-11 12:23:27 +05:30
harshal.patil
86b52c4f64 change(efuse): Fix the incorrect efuse field name of SECURE_BOOT_EN_SHA384 2025-11-05 08:39:50 +05:30
Konstantin Kondrashov
6f9e137336 feat(efuse): Adds calibration efuses for ESP32-P4 ECO5 2025-10-15 15:36:56 +03:00
Konstantin Kondrashov
969d017c56 feat(efuse): Support efuses for ESP32-P4 ECO5 2025-10-15 15:36:55 +03:00
Konstantin Kondrashov
be280d3431 fix(efuse): Fix enabling ROM secure download mode 2025-09-30 15:08:27 +08:00
Konstantin Kondrashov
dcf486359e feat(log): Optimize log tag init for bin logging 2025-09-15 15:59:52 +03:00
gaoxu
41f954facf feat(h21_mp): update H21_MP soc headers 2025-08-21 14:19:41 +08:00
harshal.patil
d59bcb633c fix(soc): Disable XTS-AES-256 using efuse key for ESP32-C5 2025-08-19 21:54:26 +05:30
Marek Fiala
9d35d63651 feat(cmake): Update minimum cmake version to 3.22 (whole repository) 2025-08-19 14:44:32 +02:00
Konstantin Kondrashov
9e07bb10a0 feat(efuse): Allow custom key purposes 2025-08-12 14:32:01 +08:00