Commit Graph
31062 Commits
Author SHA1 Message Date
Sudeep Mohanty 2544368c14 fix(lp_core): fix multi-device LP UART test failures on esp32p4
The multi-device LP UART tests were failing on esp32p4 due to several
issues in the test harness:

- LP ROM boot banner: On chips with LP ROM (esp32p4), the LP core emits
  a ROM banner on LP UART during startup, corrupting the first bytes of
  test data. Set skip_lp_rom_boot=true in the ULP config for write, read
  and mismatch tests to suppress this.

- Stale FIFO data: The HP UART RX FIFO could accumulate garbage during
  pin mux setup. Add uart_flush_input() after HP UART driver installation
  and before each read phase. Call lp_core_uart_clear_buf() before LP-side
  read tests to flush the LP UART RX FIFO as well.

- Missing synchronization: The HP reader could start listening before
  the LP transmitter was ready (or vice versa), causing data loss at
  higher baud rates. Add signal exchange (unity_send_signal /
  unity_wait_for_signal) to coordinate LP-to-HP data transfers.

- Short read timeout: The uart_read_bytes() timeout of 10 ms was too
  aggressive for slower baud rates. Increase to 100 ms.

Made-with: Cursor
2026-04-29 11:53:37 +02:00
Sudeep Mohanty bf6a44f5d1 test(lp_core): use soc_filtered_targets for all LP core pytest parametrization
Several LP core pytest files were either hardcoded to specific chip lists
or using a less-precise SOC capability filter:

- test_lp_core_multi_device: was locked to ['esp32c6'] pending a workaround
  for LP I2C on esp32p4; all three active LP core chips now have
  SOC_LP_I2C_SUPPORTED=1, so switch to soc_filtered_targets.

- test_lp_uart_wakeup_modes: was using SOC_LP_CORE_SUPPORTED which is
  semantically wrong for a UART test; change to SOC_ULP_LP_UART_SUPPORTED.

- LP core example pytests (build_system, interrupt, gpio_intr_pulse_counter,
  lp_timer_interrupt): replace hardcoded ['esp32c5', 'esp32c6', 'esp32p4']
  with soc_filtered_targets('SOC_LP_CORE_SUPPORTED == 1') so that new
  chips automatically get coverage when their SOC cap is enabled.

Made-with: Cursor
2026-04-28 15:30:47 +02:00
Sudeep Mohanty b8d99436a5 test(lp_core): extend LP UART multi-device test coverage
Refactor the LP UART multi-device tests to use a single parameterised
helper pair (test_lp_uart_write_cfg / test_lp_uart_read_cfg) instead of
one-off functions per config, and extend coverage to:

- write and read tests for 5-, 6-, 7-bit and even-parity configurations
- negative tests: word-length mismatch (FRAM_ERR recovery on LP side,
  garbled receive on HP side)
- LP GPIO Matrix routing tests (SOC_LP_GPIO_MATRIX_SUPPORTED chips only):
  swaps the default TX/RX GPIO numbers so both pins go through the LP GPIO
  Matrix, covering the lp_gpio_connect_in/out_signal() branch of
  lp_uart_config_io() that was previously untested at the data-transfer
  level; the same physical cross-wiring as all other LP UART tests is reused

Add rtc_gpio_deinit() cleanup at the end of single-board LP UART tests
so configured pins are returned to HP/digital mode and do not interfere
with subsequent tests that may reuse the same GPIOs.
2026-04-28 15:30:17 +02:00
Sudeep Mohanty b211749924 fix(lp_core): skip LP UART RTS/CTS pin setup when flow control is disabled
lp_core_uart_set_pin() unconditionally configured the RTS and CTS GPIO
pins even when flow control was disabled. Only configure the RTS pin
when UART_HW_FLOWCTRL_RTS is set, and the CTS pin when
UART_HW_FLOWCTRL_CTS is set.

Made-with: Cursor
2026-04-28 15:29:48 +02:00
Sudeep Mohanty 2d3acb0805 fix(lp_core): fix LP UART IOMUX pin not bypassing LP GPIO Matrix for RX
On chips with SOC_LP_GPIO_MATRIX_SUPPORTED (esp32p4, esp32s31), when the
default IOMUX pin is used for LP UART, calling rtc_gpio_iomux_func_sel()
alone only selects the IOMUX function on the pad side but does not set
sig_in_sel=0 on the peripheral side. This leaves the LP UART RX input
still reading from the LP GPIO Matrix (where no signal is connected),
causing RX to receive nothing.

Apply the same fix that was already in the HP UART driver: use
rtc_gpio_iomux_input() / rtc_gpio_iomux_output() which additionally
configure the peripheral to bypass the LP GPIO Matrix for IOMUX pins.
2026-04-28 11:51:55 +02:00
Sudeep Mohanty ffd41dc3e1 fix(lp_core): fix LP UART init parameter validation
Align data_bits, flow_ctrl, and rx_flow_ctrl_thresh checks with uart_param_config().

Made-with: Cursor
2026-04-28 11:51:55 +02:00
Wang Meng Yang 783e86d9a1 Merge branch 'bugfix/ai_review_hfp_v5.4' into 'release/v5.4'
fix(bt): fix HFP issues reported by AI code review (v5.4)

See merge request espressif/esp-idf!47763
2026-04-28 15:18:43 +08:00
Rahul Tank 49873fb1bf Merge branch 'bugfix/gap_name_appearance_clobber_v5.4' into 'release/v5.4'
fix(nimble): Fix few nimble issues 21042026 (v5.4)

See merge request espressif/esp-idf!47941
2026-04-28 11:57:27 +05:30
Shu Chen 02cf0d4284 Merge branch 'feat/update_openthread_upstream_v5.4' into 'release/v5.4'
feat(openthread): update openthread upstream (v5.4)

See merge request espressif/esp-idf!47466
2026-04-28 02:43:59 +00:00
Marius Vikhammer ba65663d52 Merge branch 'fix/freertos_mutex_not_given_by_owner_v5.4' into 'release/v5.4'
fix(freertos): hide obsolete mutex-owner config and harden assert test (v5.4)

See merge request espressif/esp-idf!47595
2026-04-28 10:16:01 +08:00
Rahul Tank b46aad39de fix(nimble): Move ble_log_init/deinit to esp_nimble_init/deinit 2026-04-27 16:24:39 +05:30
Mahavir Jain 173f84edb6 Merge branch 'change/exclude_cve-2025-66442_5.5_v5.4' into 'release/v5.4'
change(mbedtls): adds CVE-2025-66442 to exclude list. (v5.4)

See merge request espressif/esp-idf!47969
2026-04-27 16:11:24 +05:30
Astha Verma f14a4680b1 fix(nimble): Preserve device name across ble_svc_gap_init re-call 2026-04-27 15:59:14 +05:30
Zhang Wen Xu cfc929fed0 feat(openthread/openthread/lib): update thread-lib for upstream a98813b30
* esp-openthread: thread_zigbee/esp-openthread@654e8d3b2
* openthread: espressif/openthread@a98813b30
* esp-idf: espressif/esp-idf@25e0b1a44
2026-04-27 07:47:33 +00:00
zwx 25e0b1a448 fix(openthread): fix build failure in spinel-only mode 2026-04-27 15:37:28 +08:00
zwx 2a8374245f feat(openthread): update openthread upstream 2026-04-27 15:37:04 +08:00
morris c4e3f5e0a9 Merge branch 'fix/isp_clk_error_v5.4' into 'release/v5.4'
Fix ISP clk source error and hal init error (v5.4)

See merge request espressif/esp-idf!47325
2026-04-27 14:53:01 +08:00
Ashish Sharma 832fbe67e8 change(mbedtls): adds CVE-2025-66442 to exclude list.
The CVE is applicable with Clang using LLVM's select-optimize feature. ESP-IDF uses GCC as default compiler and sets -Os as the default optimisation flag
2026-04-27 14:11:34 +08:00
yangfeng 8710d19ec3 fix(bt): fix HFP api and btc component issues reported by AI review 2026-04-27 09:50:14 +08:00
yangfeng 1e02694c94 fix(bt): fix HFP bta component issues reported by AI review 2026-04-27 09:50:14 +08:00
Kapil Gupta a8dc008c54 Merge branch 'bugfix/wps_frag_handling_v5.4' into 'release/v5.4'
fix(wps): harden enrollee WSC fragment handling (v5.4)

See merge request espressif/esp-idf!47858
2026-04-24 18:52:58 +05:30
Jiang Jiang Jian 68974a50e3 Merge branch 'bugfix/eap_frag_optimization_v5.4' into 'release/v5.4'
fix(esp_wifi): Skip allocation of new buffers during EAP processing (v5.4)

See merge request espressif/esp-idf!47874
2026-04-24 20:28:41 +08:00
Jiang Jiang Jian b1b6aa594c Merge branch 'bugfix/validate_ptk_generation_v5.4' into 'release/v5.4'
fix(esp_wifi): fail if ptk derivation fails (v5.4)

See merge request espressif/esp-idf!47853
2026-04-24 20:28:15 +08:00
Jiang Jiang Jian fa69c16e09 Merge branch 'fix/dead_code_remove_v5.4' into 'release/v5.4'
Removing dead code related to ESP_WIFI_SLP_SAMPLE_BEACON_FEATURE (v5.4)

See merge request espressif/esp-idf!46825
2026-04-24 20:27:00 +08:00
Rahul Tank 47a20b6c17 Merge branch 'feat/nimble_logs_compression_v5.4' into 'release/v5.4'
feat(nimble): Support NimBLE log compression and decompression over SPI (v5.4)

See merge request espressif/esp-idf!46998
2026-04-24 17:37:43 +05:30
Wang Meng Yang 9c1adc3ec0 Merge branch 'bugfix/ai_review_a2dp_v5.4' into 'release/v5.4'
fix(bt): fix A2DP issues reported by AI code review (v5.4)

See merge request espressif/esp-idf!47756
2026-04-24 18:54:36 +08:00
Kapil Gupta 97f1d8eeb8 fix(esp_wifi): clean up fragment rx flow 2026-04-24 14:22:58 +05:30
Sahil Yadav 80622c637a feat(nimble): Support NimBLE log compression and decompression over SPI 2026-04-24 13:48:57 +05:30
Zhang Wen Xu 8417919b06 Merge branch 'feat/ot_make_esp_netif_glue_optional_v5.4' into 'release/v5.4'
feat(openthread): make esp_netif glue optional (v5.4)

See merge request espressif/esp-idf!47862
2026-04-24 07:55:50 +00:00
Rahul Tank e87804cbfd Merge branch 'bugfix/ai_fixes_common_components_v5.4' into 'release/v5.4'
Bugfix/ai fixes common components (v5.4)

See merge request espressif/esp-idf!47568
2026-04-24 10:54:19 +05:30
morris 3d0abe7be0 Merge branch 'feat/p4_eco5_dvp_v5.4' into 'release/v5.4'
feat(cam): support esp32p4 eco5 dvp cam (v5.4)

See merge request espressif/esp-idf!43642
2026-04-24 12:12:36 +08:00
gaoxu 4fd3d38d6c refactor(isp): avoid isp ll functions using hal.hw before initialization 2026-04-24 11:20:00 +08:00
gaoxu 7aab2da81e fix(isp): fix isp registers can not be read/write error 2026-04-24 11:19:53 +08:00
gaoxu d2205492ac fix(isp): fix isp clock source error 2026-04-24 11:15:09 +08:00
Zhang Wen Xu 96efc7de9b Merge branch 'feat/radio_spinel_driver_interface_optimization_v5.4' into 'release/v5.4'
feat(openthread): optimize radio spinel uart interface (v5.4)

See merge request espressif/esp-idf!47412
2026-04-23 09:35:57 +00:00
morris b29e7577fd Merge branch 'bugfix/fix_temp_sensor_affect_by_adc_v5.4' into 'release/v5.4'
Bugfix/fix temp sensor affect by adc v (v5.4)

See merge request espressif/esp-idf!47026
2026-04-23 16:44:06 +08:00
yangfeng 87355824ec fix(bt): fix A2DP stack component issues reported by AI review 2026-04-23 16:09:52 +08:00
yangfeng 57ec1ad2ca fix(bt): fix A2DP bta component issues reported by AI review 2026-04-23 16:09:52 +08:00
yangfeng 01df9844b0 fix(bt): fix A2DP api and btc component issues reported by AI review 2026-04-23 16:09:52 +08:00
Kapil Gupta c0e310eca4 fix(esp_wifi): fail if ptk derivation fails 2026-04-23 12:00:10 +05:30
morris fe29ad0ba0 Merge branch 'fix/fix_lcd_cmd_bypassd_unexpectedly_v5.4' into 'release/v5.4'
fix(lcd): fix lcd cmd be bypassd unexpectedly (v5.4)

See merge request espressif/esp-idf!47807
2026-04-23 13:36:12 +08:00
Kapil Gupta 618f9ac28c fix(esp_wifi): Skip allocation of new buffers during EAP processing 2026-04-23 09:47:57 +05:30
Zhibin (Ryan) Wen a49bbb0fa4 feat(openthread): add test support for esp_netif glue disabled scenario
Signed-off-by: Zhibin (Ryan) Wen <wenzhibin@espressif.com>
2026-04-22 19:36:26 +08:00
Zhibin (Ryan) Wen bf10089b8e feat(openthread): make esp_netif glue optional
Signed-off-by: Zhibin (Ryan) Wen <wenzhibin@espressif.com>
2026-04-22 19:30:20 +08:00
Kapil Gupta e49f956c64 fix(esp_wifi): Address review comments on MR 2026-04-22 16:30:40 +05:30
Kapil Gupta 9e61d174cd fix(esp_wifi): Disconnect before sending WPS success event 2026-04-22 16:30:40 +05:30
Kapil Gupta e47d57d9e4 fix(esp_wifi): Address some issues in esp_supplicant WPS states 2026-04-22 16:30:40 +05:30
Kapil Gupta 620c2e8adc fix(wps): harden enrollee WSC fragment handling 2026-04-22 16:30:40 +05:30
Akshat Agrawal 45c72a23a1 fix(wifi): Leave connection after assoc comeback failure 2026-04-22 14:28:38 +05:30
Jiang Jiang Jian d8116f2fa5 Merge branch 'bugfix/wps_deauth_during_scan_v5.4' into 'release/v5.4'
fix(wifi): ignore disconnect events outside WPS handshake phase in WPS (Backport v5.4)

See merge request espressif/esp-idf!47251
2026-04-22 16:47:18 +08:00