Commit Graph
3107 Commits
Author SHA1 Message Date
harshal.patil 8a934fa932 test(mbedtls): Add out-of-bounds test for the ECDSA hardware driver 2026-06-12 16:54:33 +05:30
harshal.patilandAshish Sharma 483c51b3c8 fix(mbedtls): validate ECDSA signature range and harden ECC memory power-down
Co-Authored-By: Ashish Sharma <ashish.sharma@espressif.com>
2026-06-12 16:54:33 +05:30
morris a4ea351ef1 Merge branch 'fix/adc_monitor_error_on_ch8_9_on_s3_v5.5' into 'release/v5.5'
Fix ADC Continuous Monitor Callback Failure for ADC1 Channels 8/9 on ESP32-S3 (v5.5)

See merge request espressif/esp-idf!49506
2026-06-12 10:25:20 +08:00
morris 3fed4b029e Merge branch 'fix/fix_rgb_gdma_link_switch_v5.5' into 'release/v5.5'
fix(rgb_lcd): fix gdma link switch not take effect (v5.5)

See merge request espressif/esp-idf!49546
2026-06-11 17:41:10 +08:00
morris e2face00fa Merge branch 'fix/fix_parlio_valid_delay_max_value_v5.5' into 'release/v5.5'
fix(parlio): fix max valid delay value (v5.5)

See merge request espressif/esp-idf!49392
2026-06-11 14:08:53 +08:00
Chen Jichang 090a719e89 fix(rgb_lcd): fix gdma link switch not take effect 2026-06-11 10:35:39 +08:00
gaoxu f511ee6e53 fix(adc): fix ADC monitor channel 8/9 error
(Closes https://github.com/espressif/esp-idf/issues/17768)
2026-06-10 15:10:23 +08:00
Song Ruo Jing cec524c576 fix(spi_flash): gpspi flash clock could reach higher frequency 2026-06-09 22:08:32 +08:00
Chen Jichang 0cb56b975b fix(parlio): fix max valid delay value 2026-06-08 17:52:17 +08:00
Scramble ToolsandOndrej Kosta 9bf5b6eed5 fix(esp_eth): use stored base_increment when computing PTP addend
The addend in `emac_hal_ptp_start()` was derived from the floating-point
`config->ptp_req_accuracy_ns` instead of the integer `base_increment`
register that actually drives the sub-second update. The cast to
`uint8_t` loses the fractional part, so the un-corrected addend leaves
the PTP clock running off-rate.

Example: with a 40 MHz XTAL and the default `req_accuracy_ns = 40`,
`base_increment` rounds 85.899 up to 86, leaving the clock +1170 ppm
fast — well outside the IEEE 802.1AS neighborRateRatio limit (~±200
ppm), so strict-1AS bridges refuse asCapable.

Compute the addend from the stored `base_increment` for both rollover
modes: `addend = 2^32 * clk_period_ns / increment_ns`.

Measured on ESP32-P4: neighborRateRatio drops from +1147.5 ppm to
+4.2 ppm, and asCapable is granted.

Co-authored-by: Ondrej Kosta <panzer412@gmail.com>
2026-06-03 14:17:02 +02:00
morris 6a3dab1b4b Merge branch 'fix/fix_mipi_lcd_dirty_buffer_v5.5' into 'release/v5.5'
feat(lcd): support buffer switch interrupt (v5.5)

See merge request espressif/esp-idf!49102
2026-06-03 18:43:36 +08:00
Chen Jichang e1d48975fb feat(lcd): support buffer switch interrupt 2026-06-02 19:35:19 +08:00
hebinglin c0f21a426d fix(esp_hw_support): fix LP core exception interrupt not being cleared 2026-06-02 17:01:24 +08:00
hebinglin 4a42a8847b fix(ulp): record wakeup causes before lp core request sleep 2026-06-01 21:11:48 +08:00
Aditya Patwardhan 9234e95e20 Merge branch 'feat/generic_key_mgr_key_types_v5.5' into 'release/v5.5'
Store key_len field in the key_config (v5.5)

See merge request espressif/esp-idf!48145
2026-05-28 10:42:25 +05:30
morris dd244bf035 Merge branch 'idfgh-17542_v5.5' into 'release/v5.5'
hal/twai: honor prop_seg in legacy timing config (v5.5)

See merge request espressif/esp-idf!48187
2026-05-28 11:21:05 +08:00
morris 2c99af12a0 Merge branch 'bugfix/isp_gamma_xcoord_error_v5.5' into 'release/v5.5'
fix(isp): disable gamma xcoord error check (v5.5)

See merge request espressif/esp-idf!48286
2026-05-26 13:54:10 +08:00
morris 2e06562399 Merge branch 'bugfix/rtc_gpio_deinit_for_deep_slp_v5.5' into 'release/v5.5'
refactor(rtcio): split rtcio/gpio switch with rtc iomux func sel func (v5.5)

See merge request espressif/esp-idf!48295
2026-05-26 13:53:41 +08:00
Song Ruo Jing 58d883a99d fix(uart): lp uart rx iomux pin was not working as expected
Introduced in 8818157e42
The workaround in the commit routes the signal to LP GPIO matrix first.
When uses LP IOMUX pin as UART RX, the signal did not bypass the matrix,
which caused the issue.

This commit adds rtc_gpio_iomux_input and rtc_gpio_iomux_output APIs
to align with existing GPIO driver APIs.
2026-05-22 15:36:00 +08:00
Song Ruo Jing 5b7db25db1 refactor(rtcio): split rtcio/gpio switch with rtc iomux func sel func
This allows rtc_gpio_deinit to always switch the pad back to GPIO,
regardless of lp io clock enabled or not, so that gpio_config can
always switch the IO back to GPIO use after wakeup from deep sleep.
2026-05-22 15:35:21 +08:00
Song Ruo Jing df34ee76af fix(isp): disable gamma xcoord error check 2026-05-22 15:31:17 +08:00
wanckl 66de12a042 fix(driver_twai): fixed fd data bitrate error on slow bitrate 2026-05-22 14:38:41 +08:00
diplfranzhoepfinger 7daf14f995 Adjust bus timing configuration in TWAI HAL 2026-05-22 14:38:41 +08:00
Mahavir Jain 6a32889849 Merge branch 'feature/recovery_bootloader_support_v5.5' into 'release/v5.5'
feat(bootloader): Support recovery bootloader for ESP32P4 (v5.5)

See merge request espressif/esp-idf!48474
2026-05-19 12:35:57 +05:30
harshal.patil fe0bac38a9 fix(key_mgr): Correct XTS-AES key length register configuration
The key_mgr_ll_set_xts_aes_key_len() function was incorrectly using
REG_SET_FIELD() with the key_len enum value directly. Since
KEYMNG_FLASH_KEY_LEN is a 1-bit register field (0=128-bit, 1=256-bit),
writing ESP_KEY_MGR_XTS_AES_LEN_128 (value 3) resulted in the LSB (1)
being stored, incorrectly configuring 256-bit mode.

Fixed by using a switch statement to properly map:
- ESP_KEY_MGR_XTS_AES_LEN_128 → REG_CLR_BIT (0)
- ESP_KEY_MGR_XTS_AES_LEN_256 → REG_SET_BIT (1)

Thus, matching the correct ESP32-C5 implementation.
2026-05-15 00:13:34 +05:30
harshal.patil 8b2e942e4e change(esp_key_mgr): Store key_len field in the key_info
- Update the Key Manager key types to be generic
- Define a new enum to determine the length of the keys
- Refactor the Key Manager driver support generic key types and key lengths
- Also store key deployment mode in the key recovery info
2026-05-15 00:13:34 +05:30
harshal.patil 6e4dac831d fix(hal): Force HUK power up when configuring HUK for ESP32-C5 2026-05-15 00:13:34 +05:30
harshal.patil acd9cf6271 fix(esp_security/esp_key_mgr): Fix missed error codes and some cleanup 2026-05-15 00:13:30 +05:30
Konstantin Kondrashov ce467787a9 feat(bootloader): Support recovery bootloader for ESP32P4/C61 2026-05-13 10:28:58 +03:00
Chen Jichang fcfc5ce282 change(parlio_tx): use shift edge instead sample edge
Made-with: Cursor
2026-05-13 11:42:00 +08:00
Jiang Jiang Jian 1a82a170a0 Merge branch 'fix/efuse_regs_store_operations_v5.5' into 'release/v5.5'
feat(hal): Adds half-word read/write checks for efuse (v5.5)

See merge request espressif/esp-idf!45342
2026-05-06 10:28:13 +08:00
Alexey Gerenkov 715a2de06b Merge branch 'fix/cxx_noreturn_issue_v5.5' into 'release/v5.5'
fix(libc): picolibc: workaround wrong pthread_exit declaration for c++ (v5.5)

See merge request espressif/esp-idf!48089
2026-05-05 18:52:58 +08:00
Mahavir Jain d183c3d4a6 Merge branch 'fix/supported_key_mgr_key_types_check_v5.5' into 'release/v5.5'
fix(esp_security): guard key manager APIs against unsupported chip revs (v5.5)

See merge request espressif/esp-idf!48010
2026-05-04 10:38:32 +05:30
Konstantin Kondrashov 1c94a566cb feat(hal): Adds half-word read/write checks for efuse 2026-05-01 12:21:23 +03:00
Alexey Lapshin 709656d8a1 fix(libc): picolibc: workaround wrong pthread_exit declaration for c++ 2026-04-29 18:36:07 +07:00
gaoxu 696e42b502 fix(adc): fix ESP32-H2/C5/C61 clock divide error 2026-04-29 12:01:37 +08:00
harshal.patil beaa37a2e6 fix(esp_security): guard key manager APIs against unsupported chip revs
On ESP32-P4 rev < 3.0, Key Manager is software-disabled, but the public
esp_key_mgr.h APIs had no runtime check.
Calls using HMAC/DS/PSRAM key types fell through to
HAL_ASSERT("Unsupported ...") paths in key_mgr_ll.h. Gate
each public API with key_mgr_ll_is_supported() and return
ESP_ERR_NOT_SUPPORTED cleanly instead.
2026-04-28 15:02:40 +05:30
harshal.patil 8f9b860131 fix(esp_security): Fixes incorrect key manager configuration for ESP32-P4 rev < 3 2026-04-28 14:55:51 +05:30
Ashish Sharma c2cccd0b56 fix(esp_hal_security): fixes failing hmac_hal_configure with efuse_key for p4 rev < 3
Closes https://github.com/espressif/esp-idf/issues/18370
2026-04-28 14:51:39 +05:30
Jiang Jiang Jian 7e61b7d980 Merge branch 'refactor/spi_flash_private_v5.5' into 'release/v5.5'
fix(spi_flash): fixed overboundary check skipping of erase and write_encrypted (v5.5)

See merge request espressif/esp-idf!45657
2026-04-28 11:08:43 +08:00
morris 3020cc6a02 Merge branch 'fix/isp_clk_error_v5.5' into 'release/v5.5'
Fix ISP clk source error and hal init error (v5.5)

See merge request espressif/esp-idf!47324
2026-04-24 15:01:48 +08:00
morris 45e1d7fc5e Merge branch 'bugfix/fix_temp_sensor_affect_by_adc_v5.5' into 'release/v5.5'
ADC: fix temp sensor affect by adc continuous reset (v5.5)

See merge request espressif/esp-idf!42842
2026-04-24 12:13:27 +08:00
gaoxu ee198b507d refactor(isp): avoid isp ll functions using hal.hw before initialization 2026-04-24 11:05:01 +08:00
gaoxu e7c8f8fc8f fix(isp): fix isp clock source error 2026-04-24 11:04:48 +08:00
Xiao Xufeng 5cbeaaf7f9 refactoring(spi_flash): Move PSRAM frequency constraint macro from soc_caps.h to mspi_ll.h
- Rename SOC_SPI_MEM_PSRAM_FREQ_AXI_CONSTRAINED to
  MSPI_TIMING_LL_PSRAM_FREQ_AXI_CONSTRAINED
- Move macro definition to chip-specific mspi_ll.h files (C5, C61, H4, P4, S31)
- Update usage in clk_utils.c and esp_flash_spi_init.c
- Remove old macro from all soc_caps.h files
2026-04-22 02:31:06 +08:00
C.S.M e5bb63cc94 fix(temperature_sensor): Fix the float calculation in temperature sensor isr 2026-04-21 11:19:45 +08:00
morris 5736a2d132 Merge branch 'fix/32mb_120m_v5.5' into 'release/v5.5'
fix(spi_flash): 1. Fix flash 120m in qio mode failed on esp32p4 (with 32M map enabled) 2. Add C61 32M flash support (backport v5.5)

See merge request espressif/esp-idf!46044
2026-04-20 13:30:14 +08:00
Jiang Jiang Jian 712886d8c1 Merge branch 'bugfix/flash_user_command_with_pms_v5.5' into 'release/v5.5'
fix(flash): flash erase operation may fail to raise PMS exception (v5.5)

See merge request espressif/esp-idf!47455
2026-04-17 11:24:31 +08:00
Jiang Jiang Jian 1e1e95c8df Merge branch 'fix/psram_core_clk_enable_v5.5' into 'release/v5.5'
fix(mspi): enable PSRAM core clock in module clock init (v5.5)

See merge request espressif/esp-idf!46849
2026-04-17 11:13:05 +08:00
gaoxu dfa50ddeb4 fix(tsens): fix temp_sensor affect by adc reset 2026-04-16 19:23:17 +08:00