Commit Graph

47489 Commits

Author SHA1 Message Date
Alexey Lapshin 36ac688705 feat(esp_gdbstub): support watchpoint trigger reason 2026-03-27 17:04:24 +08:00
Alexey Lapshin 9cb94a5a20 fix(gdbstub): fix task lookup by frame 2026-03-27 17:04:24 +08:00
Alexey Lapshin c5cd8769ed fix(gdbstub): xtensa: fix FPU registers read and write
Closes https://github.com/espressif/esp-idf/issues/17944
2026-03-27 17:04:24 +08:00
Alexey Lapshin 4e2cb08534 feat(gdbstub): add f- and q-registers support 2026-03-27 17:04:24 +08:00
Alexey Lapshin 1fc39de502 fix(gdbstub): fix segfault when a non-running task is selected 2026-03-27 17:04:24 +08:00
Alexey Lapshin 95a49ae080 fix(gdbstub): use separate running and selected tasks
'running' - task that was running when execution stopped
  'selected' - task that was selected by used in GDB (command "thread <id>")

Note that initially, after the program is interrupted 'selected' == 'running'
2026-03-27 17:04:24 +08:00
Fu Hanxi 3cdc303f02 ci: fix check-build-test-rules exclude-dir 2026-03-27 09:56:06 +01:00
Marius Vikhammer fe62bfcc2d fix(esp_hw_support): clear LP core SW interrupt in wake stub before sleep
When ulp_lp_core_wakeup_main_processor() is called, it sets the
PMU_SW_INT_RAW bit on the HP side. The normal sleep path clears this
bit before re-entering sleep, but esp_wake_stub_sleep() did not, leaving
the wakeup cause sticky. This caused the PMU to immediately re-trigger a
wakeup as soon as sleep was requested from the wake stub, producing a
rapid re-wakeup loop that eventually triggered LP_WDT_SYS resets.

Add a test case that verifies the wake stub can return to sleep correctly
across multiple LP core wakeup cycles without the re-wakeup bug.

Closing https://github.com/espressif/esp-idf/issues/18308

Made-with: Cursor
2026-03-27 11:50:35 +08:00
Marius Vikhammer 1e82f9e272 docs(examples): fix remaining README links on release/v5.5
release/v5.5 still has additional check_readme_links 404s after the
master backport. Update the remaining board and ESP32-P4 API
references so the release branch no longer fails on those URLs.

Made-with: Cursor
2026-03-27 11:27:51 +08:00
Marius Vikhammer 5e0a0b05a8 docs(examples): fix broken README links found by check_readme_links CI
The hw-reference/modules-and-boards page was removed from esp-idf docs
and moved to esp-dev-kits. The ESP32-S2-Saola-1 user guide similarly
moved. The configure-builtin-jtag link used the now-obsolete chip-less
stable URL format.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-27 11:23:36 +08:00
Xu Si Yu 9fbbf363fc fix(coex): fix ieee802.15.4 external coex tx/rx stage handling 2026-03-27 10:56:07 +08:00
Shen Mengjing 485e8c1007 docs: Add related documentation for unit test 2026-03-27 10:39:43 +08:00
Ashish Sharma c692c1ec8b fix(wifi_provisioning): fixes memory leak on OOM 2026-03-27 10:15:49 +08:00
Marius Vikhammer d3a1700039 docs: clarify PSRAM default allocation behavior
Clarify that MALLOC_CAP_DEFAULT describes a memory capability
rather than the malloc() placement policy, so PSRAM-backed
capability allocations are documented correctly when malloc()
remains internal-only by default.

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

Made-with: Cursor
2026-03-27 10:05:54 +08:00
Zhi Wei Jian 49871dce61 feat(ble/bluedroid): Allow add vendor descriptor by service table create API
(cherry picked from commit 8207bd11e7)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-03-26 17:24:00 +08:00
Zhi Wei Jian effb30cff0 feat(ble/bluedroid): support adv monitor feature
(cherry picked from commit 1566a50929)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-03-26 17:23:46 +08:00
Ashish Sharma 0f294a2d96 fix(wifi_provisioning): fixes potential null dereference on malformed packet 2026-03-26 11:45:06 +08:00
yinqingzhao c045eb3600 feat(wifi): support skip whole band when scanning 2026-03-25 19:53:38 +08:00
armando dadf5ca4b2 change(isp): added lut table depth check 2026-03-25 10:55:25 +08:00
armando f686bc85ec change(isp): added hres and vres limitation check 2026-03-25 10:53:11 +08:00
Mahavir Jain 1b9b001f23 docs: update PSRAM and flash encryption docs with per-page and separate key capabilities 2026-03-24 12:54:59 +05:30
Wei Yuhan 735507283d change(version): Update version to 5.5.4 v5.5.4 2026-03-24 14:55:26 +08:00
yangfeng 5830830175 feat(bt): Add APIs to control transmit power level
- API to read ACL real RSSI
- APIs to read/write tx power of inq/iscan/page/pscan/ACL
2026-03-24 14:28:55 +08:00
Jiang Jiang Jian 5b04915f83 Merge branch 'ci/update_github_permission_v5.5' into 'release/v5.5'
ci(github): update workflow permission (v5.5)

See merge request espressif/esp-idf!46929
2026-03-24 14:07:48 +08:00
Xiao Xufeng a8fbfb70a7 ci(github): update workflow permission 2026-03-24 11:30:32 +08:00
Sudeep Mohanty 538e782b5b fix(freertos): Use bare ticks for cleanup delays in freertos tests 2026-03-23 14:53:53 +01:00
Sudeep Mohanty 5c905afc15 fix(freertos): Fix flaky PSRAM tests for freertos
This commit adds additional delays to the stress test where we create
and self-delete tasks on PSRAM. iSuch tasks rely on the kernel creating
a special cleanup task to delete them. Hence, the delays in the main
task allow the cleanup task to bescheduled and the deletion to go
through.
2026-03-23 14:52:20 +01:00
Ashish Sharma 08c8c17436 fix: fixes memory leak with subprotocols 2026-03-23 18:42:48 +08:00
Ashish Sharma 00a2f7fbbb fix: fixes websocket server possible null dereference 2026-03-23 18:42:45 +08:00
Zhang Hai Peng 7b1382a63e fix(ble): Fixed BLE assert in "emi.c" when low memory
(cherry picked from commit e3aac6f703)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-03-23 17:53:19 +08:00
Zhi Wei Jian 9e6558e842 fix(bluedroid): printf EXAMPLE_CI_ID, PIPELINE_ID and CHIP_ID
(cherry picked from commit 7bb1018948)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-03-23 17:23:45 +08:00
Zhi Wei Jian 360d404191 fix(ble/bluedroid): Fixed Incorrect use of event parameters in gattc_gatts_coex
(cherry picked from commit b218e02b49)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-03-23 17:23:44 +08:00
Zhi Wei Jian 469b8366f2 feat(ble/bluedroid): Added cancel open function for bluedroid
(cherry picked from commit a3c09afd85)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-03-23 17:23:27 +08:00
cjin d8d616bbc0 feat(ble): supported ble mempool run time allocation for esp ip chips 2026-03-23 15:10:14 +08:00
zhaoweiliang c34ab561e9 change(ble): [AUTO_MR] Update lib_esp32c2 to b8594335 2026-03-23 15:08:15 +08:00
Jin Chen 15765b9df6 feat(ble): make env init function cuttable on ESP32-C2
(cherry picked from commit 5ec82368ba)

Co-authored-by: cjin <jinchen@espressif.com>
2026-03-23 15:08:15 +08:00
Jin Chen 5ef7dff97f change(ble): [AUTO_MR] Update lib_esp32h2 to 913c704d
(cherry picked from commit a8d705ff7a)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-03-23 15:07:39 +08:00
Jin Chen 9c6405881e change(ble): [AUTO_MR] Update lib_esp32c6 to 913c704d
(cherry picked from commit 06010a8b79)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-03-23 15:07:39 +08:00
Jin Chen 7d7ff14866 change(ble): [AUTO_MR] Update lib_esp32c5 to 913c704d
(cherry picked from commit 739cb8e00d)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2026-03-23 15:07:39 +08:00
armando ebf818f028 change(mspi): added sdr divider check to be not odd divider 2026-03-23 11:46:04 +08:00
armando 1fb45f823c change(isp): improve sampling point 2026-03-23 01:27:41 +00:00
Jiang Jiang Jian 495904b15f Merge branch 'fix/fix_phy_update_failure_on_c2_5.5' into 'release/v5.5'
fix(ble): fix conn timeout after phy update on ESP32-C2

See merge request espressif/esp-idf!46750
2026-03-21 14:24:38 +08:00
Jin Cheng 9b61054993 fix(bt/bluedroid): fixed possible use of uninitialized stack variables in bt_hf_client_at.c 2026-03-20 20:13:41 +08:00
Jin Cheng b0959b5ab1 fix(bt/bluedroid): fixed possible OOB read in avrc_pars_vendor_cmd 2026-03-20 20:13:41 +08:00
Meet Patel f562a2bdef fix(spinlock): Added fence instruction in spinlock acquire and release
The existing spinlock mechanism possibly has an overlap of memory
operations during multi core execution, as visible in CI testing. When
running the example inter_cpu_critical_section, shared count increment
stops at 299999 instead of reaching 300000, but this only happens
randomly 1 out of 10 times. It is suspected that a memory operation
happens simultaneously from both core, even though spinlock protection
is in place.

To handle this problem, a memory barrier (fence instruction) is added
at critical places during spinlock acquire and release, to ensure that
all memory operations upto that point are completed and synchronised
before proceeding further.
2026-03-20 11:46:37 +05:30
Alexey Lapshin 9332d2ccd2 fix(newlib): fix CONFIG_LIBC_OPTIMIZED_MISALIGNED_ACCESS for c2/c3/c6/h2/h21
PMP configurations for load and store addresses may
have different permissions (e.g., "R" vs. "RW").

Due to the timing alignment of internal signals, the address
permission check may be incorrectly applied during the second
part of a misaligned access transaction.

As a workaround, insert two instructions (e.g. ADDI/NOP) between
accessing to different memory regions. This spacing avoids the
false permission check caused by signal timing overlap.
2026-03-20 12:59:12 +07:00
Fu Hanxi 2b36ab0fc9 ci: install.sh --enable-docs when job name contains docs 2026-03-20 09:38:17 +08:00
cjin 0ccd2d53bf fix(ble): fix conn timeout after phy update on ESP32-C2 2026-03-19 09:52:29 +08:00
Adam Múdry 4861708a0f fix(sdspi): 0x106 error during SD card init via SPI related fixes
Try to turn on CRC16 again if first failed, allow disabling of CRC check altogether

Releated https://github.com/espressif/esp-idf/issues/15450
2026-03-18 14:05:06 +01:00
zhuanghang d2d14138e3 feat(802.15.4): get txpower table from phylib 2026-03-18 17:46:05 +08:00