Commit Graph

38427 Commits

Author SHA1 Message Date
Mahavir Jain
a1f17cebdc Merge branch 'fix/s3_memprot_panic_report' into 'master'
Report ESP32-S3 PMS violations as memory protection faults

See merge request espressif/esp-idf!52109
2026-09-02 13:41:24 +05:30
Marius Vikhammer
58ab269d3a Merge branch 'feat/app-rollback-auto-confirmation' into 'master'
feat(app_update): Add auto-confirmation of OTA updates

Closes IDF-15981

See merge request espressif/esp-idf!50531
2026-09-02 15:54:30 +08:00
morris
d6fee00af6 Merge branch 'feat/atomic-internal' into 'master'
fix(driver): allocate driver objects containing atomic variables from internal SRAM

See merge request espressif/esp-idf!52211
2026-09-02 15:28:16 +08:00
morris
77c1190d52 Merge branch 'feat/add_timeout_return_for_dsi_panel' into 'master'
feat(dsi): add timeout check for lp cmd rx

See merge request espressif/esp-idf!50439
2026-09-02 10:44:04 +08:00
radek.tandler
40f25003b4 fix(test_apps_bootloader): Pre-alocate the security provider lock before evaluating mem leaks 2026-09-01 12:53:21 +03:00
Konstantin Kondrashov
b4dd9878f7 fix(test_apps_bootloader): Change type of actual_leak_threshold to ssize_t 2026-09-01 12:53:21 +03:00
Konstantin Kondrashov
de1e5035b5 feat(app_update): Add auto-confirmation of OTA updates
Enable rollback auto-confirmation by default
2026-09-01 12:53:21 +03:00
Marius Vikhammer
dce5812654 Merge branch 'test/idf-additions-pinned-create' into 'master'
test(freertos): cover xTaskCreatePinnedToCore pinning semantics

Closes IDF-8553

See merge request espressif/esp-idf!52013
2026-09-01 14:59:49 +08:00
harshal.patil
73dd203204 fix(esp_system): report ESP32-S3 PMS violations as memory protection faults
On Xtensa the PMS violation shares ETS_MEMACCESS_ERR_INUM with the cache error
and arrives as PANIC_RSN_CACHEERR. ESP32-S2 tells the two apart, ESP32-S3 never
did (//MV note in dd938eb95), so PMS faults were reported as "Cache error".

panic_memprot_fill_info() now claims the panic only when
esp_mprot_get_active_intr() reports a pending violation, and the ESP32-S3 cache
error path consults it, falling back to the cache error report as before.
RISC-V has a dedicated interrupt, so its reporting stays unconditional.
ESP32-S2 and ESP32 are untouched.
2026-09-01 12:29:21 +05:30
harshal.patil
9a201cdd1e refactor(esp_system): factor the memprot panic report out of panic_arch.c
Move print_memprot_err_details() and its state out of the RISC-V panic_arch.c
into port/panic_memprot.c behind panic_memprot_fill_info(), so the report can
be shared with the Xtensa PMS targets. No functional change.
2026-09-01 12:29:21 +05:30
Island
08a66ea273 Merge branch 'refactor/ble-log-esp-timer-rt-migration' into 'master'
refactor: BLE Log Runtime Migration

See merge request espressif/esp-idf!52002
2026-09-01 11:28:59 +08:00
Mahavir Jain
a3192567d5 Merge branch 'feat/cpu_region_protection_h4' into 'master'
Memory region protection for ESP32-H4

Closes IDF-12588

See merge request espressif/esp-idf!47070
2026-08-31 17:41:52 +05:30
Mahavir Jain
8224536f91 Merge branch 'fix/heap_align_hw_test' into 'master'
test(heap): DMA alignment test silently passed on every target

See merge request espressif/esp-idf!52131
2026-08-31 17:28:43 +05:30
Mahavir Jain
d3fe62cee4 Merge branch 'feat/tee_sec_stg_non_det_sign' into 'master'
change(esp_tee): Force non-deterministic ECDSA signing for TEE secure storage keys

Closes IDF-15937 and IDF-15939

See merge request espressif/esp-idf!50355
2026-08-31 16:07:52 +05:30
morris
14c4306e9d Merge branch 'feat/update_h4_eco2_rom_ld' into 'master'
feat(esp32h4): update rom.ld files for esp32h4 eco2

See merge request espressif/esp-idf!51977
2026-08-31 15:52:34 +08:00
morris
c96d9d0380 fix(driver): allocate driver objects containing atomic variables from internal SRAM
Objects with atomic members must not be allocated to PSRAM, otherwise
the ordering guarantee of atomic accesses is weakened due to a hardware
behavior on ESP32 chips. Explicitly request MALLOC_CAP_INTERNAL |
MALLOC_CAP_8BIT for:

- i2c master bus object (atomic status/trans_idx)
- i3c master bus object (atomic fsm)
- ISP processor and AE/AF/AWB/HIST controllers (atomic fsm)
- JPEG decoder/encoder dma2d transaction descriptors (atomic started)
- PPA transaction storage embedding dma2d_trans_t
- dma2d m2m test transaction embedding dma2d_trans_t
2026-08-31 13:48:44 +08:00
Wang Meng Yang
48ba121560 Merge branch 'fix/fxied_wrong_h2_ble_lib_issue' into 'master'
fix(ble): Check if there are illegal library files in controller lib path

See merge request espressif/esp-idf!52180
2026-08-31 12:20:10 +08:00
morris
5ad2617de3 Merge branch 'ci/jpeg_test_esp32p4_rev1' into 'master'
test(jpeg): add ESP32-P4 rev1 coverage

Closes IDF-15446

See merge request espressif/esp-idf!52182
2026-08-31 10:49:58 +08:00
Jiang Jiang Jian
0cae1ec820 Merge branch 'fix/blacklist_roam_reason' into 'master'
Added more reason codes for blacklist roam

Closes WIFIBUG-2040

See merge request espressif/esp-idf!50875
2026-08-31 10:48:44 +08:00
Steven (Yang Minghui)
6dd110f2d1 test(jpeg): add ESP32-P4 rev1 coverage 2026-08-28 21:35:50 +08:00
ShenWeilong
40706bf28f fix(ble): Check if there are illegal library files in controller lib path 2026-08-28 19:20:18 +08:00
Jiang Jiang Jian
2067f3ae32 Merge branch 'fix/low_rssi_roam_diff' into 'master'
fix(wifi): Require RSSI gain before low-RSSI roam

Closes WIFIBUG-2042

See merge request espressif/esp-idf!51706
2026-08-28 18:00:14 +08:00
Chen Jichang
3e32f8bb54 feat(esp32h4): update rom.ld files for esp32h4 eco2 2026-08-28 15:31:08 +08:00
Wang Meng Yang
1b937bd648 Merge branch 'bugfix/a2dp_aac_br' into 'master'
fix(bt): Fix some bugs of A2DP AAC

Closes BTQABR2023-876, BTQABR2023-877, BTQABR2023-878, and BTQABR2023-879

See merge request espressif/esp-idf!51819
2026-08-28 15:26:50 +08:00
Mahavir Jain
0a6f7d27af Merge branch 'contrib/github_pr_18983' into 'master'
fix(http_client): default Content-Type for post field (GitHub PR)

Closes IDFGH-18153

See merge request espressif/esp-idf!51956
2026-08-28 12:53:11 +05:30
morris
6d533d8526 Merge branch 'fix/timing_typo' into 'master'
fix(mspi): Fix a mistake reg action to set timing tuning on p4

See merge request espressif/esp-idf!52164
2026-08-28 15:03:24 +08:00
Wang Meng Yang
63076cf266 Merge branch 'fix/bt_memory' into 'master'
fix(bt_memory): Reduce memory usage in transfer

See merge request espressif/esp-idf!51396
2026-08-28 14:52:59 +08:00
Wang Meng Yang
2608853f3f Merge branch 'bugfix/assert_8486' into 'master'
fix(bt/controller): update libbtdm_common_app.a to f60e5b29

Closes BTQABR2023-884

See merge request espressif/esp-idf!52135
2026-08-28 14:46:34 +08:00
Martin Vychodil
4cce27e1cc Merge branch 'fix/sdmmc_dma_aligned_buffer_leak' into 'master'
fix(sdmmc): release aligned buffer on card deinit

Closes IDF-16031 and DOC-15562

See merge request espressif/esp-idf!51530
2026-08-28 13:57:05 +08:00
Laukik Hase
1fbeea3393 fix(esp_tee): Snapshot input arguments in TEE memory before secure service execution 2026-08-28 10:20:55 +05:30
Laukik Hase
427dc875b9 change(esp_tee): Force non-deterministic ECDSA signing for TEE secure storage keys 2026-08-28 10:20:55 +05:30
Laukik Hase
4812dbd2d8 feat(esp_tee): Use CTR-DRBG for assisting random number generation in TEE
- For ESP-TEE, fault-assert in `esp_random()` if the RNG is held in a
  freeze state
2026-08-28 10:20:54 +05:30
Laukik Hase
52a6ad71ee feat(hal): Add LL-API to check whether RNG is enabled
- Also add RNG LL-APIs for ESP32-C61
- Add SOC_RNG_CLOCK_IS_INDEPENDENT for ESP32-C61: now that
  rng_ll_disable() actually clears the RNG clock gate, the application
  needs the esp_hw_support startup hook to re-enable the RNG after
  bootloader_random_disable()
2026-08-28 10:20:54 +05:30
C.S.M
ac710f6315 fix(mspi): Fix a mistake reg action to set timing tuning on p4 2026-08-28 11:26:12 +08:00
Island
74512f74a4 Merge branch 'feat/adapt_uhci_code_260824' into 'master'
refactor(hci): switch HCI UART DMA transport to UHCI driver APIs

Closes BLERP-2978

See merge request espressif/esp-idf!51986
2026-08-28 11:02:23 +08:00
Alexey Gerenkov
8515684acd Merge branch 'esp_trace_optimizations' into 'master'
change(esp_trace): compile hot path at -O2 regardless of project optimization

See merge request espressif/esp-idf!51918
2026-08-27 18:29:02 +08:00
Meet Patel
81155fe014 test(freertos): give pinned-create tests more stack
2048 bytes is tight once Unity asserts and yields run on the created task.
2026-08-27 15:38:04 +05:30
Adam Múdry
e0c094da69 fix(sdmmc): release aligned DMA buffer on card deinit 2026-08-27 12:00:24 +02:00
Mahavir Jain
626d7e9bb3 Merge branch 'fix/aes_op_zero_buf_check' into 'master'
fix(mbedtls/aes): reject an all-zero AES block output in the encrypt direction

Closes IDF-15997

See merge request espressif/esp-idf!51603
2026-08-27 14:16:38 +05:30
Zhou Xiao
327016d1a3 test(ble_log): add dedicated runtime dispatch test app
Extend the test peripheral with receipt timestamps and an auto-recycle
hook so runtime tests can observe handoff latency and sustain arrivals from
dispatch completion.

Add a standalone Unity app covering fixed first-submission deadlines,
callback-entry batch drain, shared ESP timer task fairness, periodic
timestamp light-sleep behavior, synchronous flush, dispatch latency,
deinit races, bounded inflight peaks, and timeout conversion at both
supported tick rates. Verify FIFO delivery and reject delayed-consumer and
extra-marker false positives.

Render BLE_LOG_RT_PERF lines in the performance log parser and
cross-reference the runtime and performance apps from their READMEs.
2026-08-27 16:16:38 +08:00
Zhou Xiao
620a3c90a9 refactor(ble_log): move runtime dispatch to esp_timer
Replace the dedicated BLE Log FreeRTOS task with a deferred esp_timer
batch dispatch. The first submission anchors a one-shot 1 ms deadline;
the callback drains the queue depth captured at entry and schedules the
next fixed defer only for arrivals left behind. Later submissions cannot
move the current deadline, and no fixed batch-size cap limits throughput.

Protect queue and timer lifetime with runtime references. Drain queued
submissions before ble_log_lbm_flush_all_trans waits for transport
ownership to return, so synchronous flush does not depend on the deferred
alarm firing.

Keep the defer alarm as a light-sleep wake source and select
ESP_TIMER_IN_IRAM. Timestamp synchronization uses the shared ESP timer task
with skipped unhandled events, so it neither wakes light sleep nor replays
missed periods. Retain legacy task and trigger symbols as hidden no-op
sdkconfig compatibility options.
2026-08-27 16:16:38 +08:00
yangfeng
5a8e9347a5 fix(bt): Build the optimal config when registering A2DP SEP 2026-08-27 15:58:39 +08:00
Jin Cheng
2e9769d270 fix(bt/controller): update libbtdm_common_app.a to f60e5b29
- fixed BT ASSERT ID 8486
- relates to BTQABR2023-884
2026-08-27 15:51:59 +08:00
yangfeng
d1d1f91b12 fix(bt): Add invalid codec capability verification when registering SEP 2026-08-27 15:44:58 +08:00
yangfeng
998bd59e3f feat: Add default SBC SEP in A2DP init 2026-08-27 15:44:58 +08:00
yangfeng
ba8b1091a5 fix(bt): Fix the processing of bit rate being 0 in A2DP AAC 2026-08-27 15:44:58 +08:00
harshal.patil
e5026cafea test(heap): DMA alignment test silently passed on every target
"test alignment for dma" discarded every test_alignment() verdict and
counted a failed allocation as a pass, so it could never fail. Fix that,
use the external line size for PSRAM, and run hw-align in PSRAM configs.
2026-08-27 12:54:57 +05:30
hejiaxin
12fe70031f fix(bt_avrcp): size some AVRC command buffers 2026-08-27 15:14:53 +08:00
hejiaxin
59eee88105 fix(bt_l2cap): size L2CAP ERTM S-frame & RX SDU buffer 2026-08-27 15:13:58 +08:00
hejiaxin
8a0156c4ed fix(bt_sdp): size SDP TX buffers 2026-08-27 15:11:44 +08:00