Commit Graph

48244 Commits

Author SHA1 Message Date
JiangGuangMing
a2e5d0b23f feat(usb): add usb wakeup from light sleep example
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-11 09:24:04 +08:00
JiangGuangMing
33f65d3ff2 feat(esp_hal_usb): add usb suspend wakeup status in ll layer
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-11 09:05:40 +08:00
JiangGuangMing
3b32b1fc96 feat(sleep/usb): support usb as wakeup source from light sleep
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-11 09:05:40 +08:00
morris
0b816722db Merge branch 'fix/spi_buslock_multi_dev_acq_release_issue_v5.5' into 'release/v5.5'
fix(esp_hw_support): fixed spi buslock multi dev acq/release logic issue (v5.5)

See merge request espressif/esp-idf!49171
2026-06-10 10:13:03 +08:00
Mahavir Jain
74eedf49c1 Merge branch 'feat/fix_ws_server_httpd_queue_work_silent_drop_v5.5' into 'release/v5.5'
fix(esp_http_server): prevent silent message drop in httpd_queue_work (v5.5)

See merge request espressif/esp-idf!49354
2026-06-09 10:37:46 +05:30
Mahavir Jain
ffb831422b Merge branch 'fix/mbedtls_build_failure_x509_crt' into 'release/v5.5'
fix(mbedtls): fixes build failure with clang21

See merge request espressif/esp-idf!49326
2026-06-09 10:26:45 +05:30
Wang Meng Yang
04e980649f Merge branch 'bugfix/ci_avrc_abs_vol_example_v5.5' into 'release/v5.5'
fix: Fix the potential stack overflow issue in the Classic Bluetooth example (v5.5)

See merge request espressif/esp-idf!49405
2026-06-09 09:56:11 +08:00
yangfeng
e5b167cef9 fix: Fix the potential stack overflow issue in the Classic Bluetooth example 2026-06-09 09:42:53 +08:00
Mahavir Jain
e4a7d55558 Merge branch 'contrib/github_pr_18641_v5.5' into 'release/v5.5'
fix(protocomm): prevent out-of-bounds write in console line buffer (GitHub PR) (v5.5)

See merge request espressif/esp-idf!49344
2026-06-08 20:20:44 +05:30
Jiang Jiang Jian
407dfb44a7 Merge branch 'bugfix/acl_conn_state_error_v5.5' into 'release/v5.5'
fix: Fix missing handling for HCI_ERR_CONNECTION_EXISTS (v5.5)

See merge request espressif/esp-idf!49314
2026-06-08 13:56:00 +08:00
Rahul Tank
1576525dac Merge branch 'bugfix/fix_clang_compilation_issue_v5.5' into 'release/v5.5'
fix(nimble): Fix for clang compilation issues (v5.5)

See merge request espressif/esp-idf!49307
2026-06-06 09:25:36 +05:30
Mahavir Jain
c2dd042394 Merge branch 'fix/esp_tee_buffer_overflow_v5.5' into 'release/v5.5'
fix(esp_tee): fix buffer overflow (v5.5)

See merge request espressif/esp-idf!49304
2026-06-05 18:28:21 +05:30
Euripedes Rocha
1a89df8c49 Merge branch 'contrib/github_pr_18642_v5.5' into 'release/v5.5'
fix(eth): use stored base_increment when computing PTP addend (GitHub PR) (v5.5)

See merge request espressif/esp-idf!49105
2026-06-05 12:37:32 +02:00
Ashish Sharma
dedb02dd25 fix(esp_http_server): take ctrl_sock_semaphore on shutdown and async wake
httpd_stop() and httpd_req_async_handler_complete() both pushed
messages onto the control mbox via cs_send_to_ctrl_sock() without
reserving a slot in ctrl_sock_semaphore. Once the silent-drop fix
made the semaphore unconditional, the bypass became a real bug:
when the mbox is saturated by pending httpd_queue_work() items the
unguarded sendto() can return ENOBUFS, and even when it succeeds it
leaves the semaphore overstating free slots until the consumer
drains the message — a window during which a concurrent
httpd_queue_work() can take a slot but still find the mbox full.

Acquire the semaphore (portMAX_DELAY) before both sends and give it
back on send failure so the take/give invariant is preserved. The
httpd task is the consumer in both paths, so blocking is bounded
and deadlock-free. Reword the stale "no-op give on full" comment in
httpd_process_ctrl_msg() to reflect that only the recv-error path
relies on the cap behavior now.
2026-06-05 17:37:55 +08:00
Ashish Sharma
fcc140c11c fix(esp_http_server): prevent silent message drop in httpd_queue_work
Closes https://github.com/espressif/esp-idf/issues/18563
2026-06-05 17:37:55 +08:00
Andrii Anoshyn
c92dc5b035 fix(protocomm): prevent out-of-bounds write in console line buffer
The console transport read loop passed &linebuf[i] to uart_read_bytes()
before checking i < LINE_BUF_SIZE, so a line of LINE_BUF_SIZE or more
bytes without a terminator wrote one byte past the 256-byte linebuf
stack array.

Gate the read on the bounds check and reserve the final byte for the NUL
terminator (LINE_BUF_SIZE - 1), so the buffer handed to esp_console_run()
stays terminated even when an overlong line is truncated.

Closes https://github.com/espressif/esp-idf/issues/18638

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-05 17:33:37 +08:00
Ashish Sharma
99fc683322 fix(mbedtls): fixes build failure with clang21
Closes https://github.com/espressif/esp-idf/issues/18456
2026-06-05 16:49:29 +08:00
yangfeng
5d8aec60a5 fix: Fix missing handling for HCI_ERR_CONNECTION_EXISTS
- Closes https://github.com/espressif/esp-idf/issues/18562
2026-06-05 14:17:55 +08:00
Alexey Lapshin
610be5330f fix(esp_tee): fix buffer overflow 2026-06-05 12:25:35 +07:00
Rahul Tank
010b3a37b2 fix(nimble): Fix for clang compilation issues 2026-06-05 10:55:27 +05:30
Island
0364adce59 Merge branch 'fix/ble_funcs_reset_default_enabled_v5.5' into 'release/v5.5'
fix(bt): Add default BLE controller funcs reset enable (5.5)

See merge request espressif/esp-idf!49137
2026-06-05 12:13:32 +08:00
Jiang Jiang Jian
3d03a4035b Merge branch 'doc-fix_sleep_mode_doc_v5.5' into 'release/v5.5'
docs(system): update GPIO wakeup section for clarity on EXT0 and EXT1 support (v5.5)

See merge request espressif/esp-idf!49116
2026-06-05 10:54:09 +08:00
Island
4ed0e7cc00 Merge branch 'fix/fix_conn_recycle_assertion_at_halt_v5.5' into 'release/v5.5'
fix(ble): fix conn recycle assertion at halt on ESP32-C2 (5.5)

See merge request espressif/esp-idf!49237
2026-06-04 19:21:12 +08:00
wanckl
61e0dca2a0 fix(driver_spi): fixed esp32p4 gpspi with dma potential crash or stuck 2026-06-04 15:49:21 +08:00
morris
9143499717 Merge branch 'fix/jpeg_cve_fix_v5.5' into 'release/v5.5'
fix(jpeg_decoder): Add some strict check to avoid bad picture attack (backport v5.5)

See merge request espressif/esp-idf!49255
2026-06-04 15:47:07 +08:00
wanckl
26263a36a2 fix(esp_hw_support): fixed spi buslock multi dev acq/release logic issue 2026-06-04 15:28:04 +08:00
C.S.M
82c5c2dad4 fix(jpeg_decoder): Add some strict check to avoid bad picture attack 2026-06-04 11:43:26 +08:00
Jiang Jiang Jian
7ec71cefdd Merge branch 'bugfix/ft_igtk_installation_v5.5' into 'release/v5.5'
fix(esp_wifi): Correct igtk key installation in ft-psk mode (v5.5)

See merge request espressif/esp-idf!49210
2026-06-04 11:11:00 +08:00
morris
010a6f5dd6 Merge branch 'test/enable_isp_test_esp32p4_rev1_v5.5' into 'release/v5.5'
fix(isp): enable esp32p4_rev1 unit test (v5.5)

See merge request espressif/esp-idf!49231
2026-06-04 09:57:26 +08:00
Scramble Tools
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
Jin Chen
00ae58b047 fix(ble): fix conn recycle assertion at halt on ESP32-C2
(cherry picked from commit 5483aeedb6)

Co-authored-by: cjin <jinchen@espressif.com>
2026-06-03 17:54:07 +08:00
Chen Chen
504ccd8f46 fix(isp): fix ccm test case for esp32p4-rev1 2026-06-03 16:23:28 +08:00
morris
1fd2e0a7a3 fix(isp): enable esp32p4_rev1 unit test 2026-06-03 16:23:28 +08:00
Rahul Tank
270673d835 Merge branch 'bugfix/fix_security_proto_nimble_v5.5' into 'release/v5.5'
fix(protocomm): harden nimble/bluedroid transport size handling (v5.5)

See merge request espressif/esp-idf!49181
2026-06-03 11:37:41 +05:30
Kapil Gupta
0268c8ee50 fix(esp_wifi): Correct igtk key installation in ft 2026-06-03 08:56:33 +05:30
wuzhenghui
2ea0d4639d docs(system): update GPIO wakeup section for clarity on EXT0 and EXT1 support
backport !47362
2026-06-03 10:57:54 +08:00
Jiang Jiang Jian
c2fd5ea019 Merge branch 'fix-fix_rtc_spinlock_sleep_dead_lock_v5.5' into 'release/v5.5'
fix(esp_hw_support): fix possible dead lock in deepsleep process (v5.5)

See merge request espressif/esp-idf!49176
2026-06-03 10:52:05 +08:00
Jiang Jiang Jian
5c36eef57e Merge branch 'fix/isp_iram_safe_typo_v5.5' into 'release/v5.5'
fix(isp): fix typo in CONFIG_ISP_ISR_IRAM_SAFE macro reference (v5.5)

See merge request espressif/esp-idf!49069
2026-06-03 10:51:12 +08:00
Jiang Jiang Jian
c987c21dbc Merge branch 'bugfix/esp_idf_ulp_wakeupcauses_record_v5.5' into 'release/v5.5'
fix(ulp): record wakeup causes before lp core request sleep v5.5

See merge request espressif/esp-idf!49121
2026-06-03 10:51:04 +08:00
Jiang Jiang Jian
bb45b5725a Merge branch 'fix/https-redirect-downgrade_v5.5' into 'release/v5.5'
fix(esp_http_client): block HTTPS-to-HTTP redirect downgrade (v5.5)

See merge request espressif/esp-idf!48980
2026-06-03 10:38:18 +08:00
Jiang Jiang Jian
adcccedd92 Merge branch 'change/esp_idf_ulp_add_int_api_5.5' into 'release/v5.5'
change(ulp): add lp periph intr enable apis v5.5

See merge request espressif/esp-idf!49144
2026-06-03 10:37:39 +08:00
Jiang Jiang Jian
d5a918aefb Merge branch 'fix/fix_put_phy_init_bin_into_partiiton_when_embed_v5.5' into 'release/v5.5'
fix(phy): fix still put multiple phy init date bin into flash when...(backport v5.5)

See merge request espressif/esp-idf!49149
2026-06-03 10:37:21 +08:00
Jiang Jiang Jian
faa3edd8b2 Merge branch 'fix-fix_ub_in_gpio_wakeup_setting_v5.5' into 'release/v5.5'
fix(esp_hw_support): add validation for gpio_pin_mask (v5.5)

See merge request espressif/esp-idf!49107
2026-06-03 10:35:23 +08:00
Jiang Jiang Jian
e51e13b518 Merge branch 'feat/ble-log-iram-optim_v5.5' into 'release/v5.5'
opt(bt): Move SPI Tx Callback to Flash When SPI ISR IN IRAM Disabled (5.5)

See merge request espressif/esp-idf!48923
2026-06-03 10:31:17 +08:00
Marius Vikhammer
dc9334ef0a Merge branch 'fix/esp32c5_usj_console_stuck_v5.5' into 'release/v5.5'
fix(esp32c5): Do not disable UART0 sclk when USB Serial/JTAG is primary console (v5.5)

See merge request espressif/esp-idf!48887
2026-06-03 10:30:36 +08:00
Jiang Jiang Jian
a3ef6b3446 Merge branch 'change/ble_update_lib_20260520_v5.5' into 'release/v5.5'
change(ble): [AUTO_MR] 20260520 - Update ESP BLE Controller Lib (5.5)

See merge request espressif/esp-idf!48769
2026-06-03 10:29:48 +08:00
Jiang Jiang Jian
aa137bacfd Merge branch 'fix/freertos_delete_with_caps_smp_race_v5.5' into 'release/v5.5'
fix(freertos): close vTaskDeleteWithCaps cross-core delete race on SMP preview kernel (v5.5)

See merge request espressif/esp-idf!48601
2026-06-03 10:29:20 +08:00
Zhang Wen Xu
a4119dc2b8 Merge branch 'fix/disable_i2c_master_clk_while_hw_hop_processing_v5.5' into 'release/v5.5'
fix(esp_phy): check hw freq hop done before disabling common clock (v5.5)

See merge request espressif/esp-idf!48559
2026-06-03 02:28:51 +00:00
Chen Jichang
e1d48975fb feat(lcd): support buffer switch interrupt 2026-06-02 19:35:19 +08:00