Commit Graph

7824 Commits

Author SHA1 Message Date
Jiang Jiang Jian
97def67a17 Merge branch 'tracing_test_fixes_v6.1' into 'release/v6.1'
Tracing test fixes (v6.1)

See merge request espressif/esp-idf!52327
2026-09-09 10:54:21 +08:00
Vojtech Piroch
c88150ff5f fix(tools): Detect serial port matching the project target
Auto-detect used to pick the first Espressif device, even when it did
not match IDF_TARGET. With several boards attached, flash/monitor could
talk to the wrong chip.

Pass the project target into esptool so unmatched ports are skipped.
Resolve the port after ensure_build_directory() so the target is known.
For monitor on an unconfigured project, probe the connected chip and
pass it directly to idf_monitor without configuring the project.
2026-09-07 14:57:05 +02:00
Erhan Kurubas
c99a63fd18 refactor(examples): group trace examples under examples/system/tracing/
Move 6 trace-related examples (app_trace_basic, app_trace_to_plot,
esp_trace, gcov, sysview_tracing, sysview_tracing_heap_log) from
examples/system/ into a dedicated examples/system/tracing/
subdirectory for better organization.

Update all path references across documentation (en + zh_CN),
build-test-rules, CI configs and component READMEs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KZAGzon27T12sGbDPPbZ8G
2026-09-07 16:41:37 +08:00
Chen Jichang
8cb3743b7c ci(esp32h4): disable h4 build and target test on unsupported release branch 2026-09-07 15:48:11 +08:00
Jiang Jiang Jian
e274c801cd Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20260831_v6.1' into 'release/v6.1'
feat(tools): update openocd version to v0.12.0-esp32-20260831 (v6.1)

See merge request espressif/esp-idf!52391
2026-09-04 16:48:07 +08:00
Mahavir Jain
1612b25e70 fix(build): word-align the length symbol of embedded data files
The generated assembly emitted <name>_length immediately after the raw
payload bytes, so the 32-bit word landed misaligned whenever the data
size was not a multiple of 4. Consumers declare it as a 32-bit object
(e.g. `extern const size_t <name>_length` in the ULP firmware loaders),
so the compiler emits an alignment-assuming word load, which is a
misaligned flash read prone to spurious load faults on chips with
SOC_CPU_MISALIGNED_ACCESS_ON_PMP_MISMATCH_ISSUE (ESP32-C6/H2/H21).
2026-09-04 11:51:56 +08:00
morris
69889c4097 Merge branch 'refactor/dac_examples_v6.1' into 'release/v6.1'
refactor(dac): remove adc read back in dac example, prepare for s31 (v6.1)

See merge request espressif/esp-idf!52330
2026-09-04 09:53:18 +08:00
Daniel Paul
587ae6f770 fix: KConfig test output format 2026-09-04 00:46:51 +08:00
Samuel Obuch
50291d721e feat(tools): update openocd version to v0.12.0-esp32-20260831 2026-09-03 12:59:20 +02:00
Jakub Kocka
9f06f4b158 refactor(tools): Fixed pre-commit findings in idf_utils.py 2026-09-02 16:11:41 +02:00
Jakub Kocka
865d8a2639 ci(tools): Clip idf.py failure logs so Windows log_cli cannot stall
pytest.ini enables log_cli, so logging the full ninja stdout after a
failed first-time build is one multi-MB ERROR. That hung shard 3/6 for
hours after the hints test. Log the last 80 lines; keep the full output
on the exception and at DEBUG.
2026-09-02 15:04:58 +02:00
Jakub Kocka
c73ac9f05a ci(tools): Don't abort idf_copy when a worktree submodule is a gitlink
git worktree add materializes submodules as gitlink files. rmtree() cannot
remove those, and exists()+iterdir() on a source gitlink raises and falls
back to shutil.copytree, which leaves mbedtls/include as a file. Unlink
dest gitlinks and only copy populated source directories.
2026-09-02 15:03:05 +02:00
Hu Rui
1edb899ace refactor(dac): remove adc read back in dac example, prepare for s31 2026-09-02 20:28:32 +08:00
Martin Vychodil
cb709dbf27 Merge branch 'fix/sdmmc_dma_aligned_buffer_leak_v6.1' into 'release/v6.1'
fix(sdmmc): release aligned buffer on card deinit (v6.1)

See merge request espressif/esp-idf!52252
2026-09-02 20:20:40 +08:00
Alexey Gerenkov
89eb1c1516 Merge branch 'add_trace_doc_section_v6.1' into 'release/v6.1'
docs(esp_trace): restructure tracing docs with esp_trace as master (v6.1)

See merge request espressif/esp-idf!52264
2026-09-02 17:03:51 +08:00
Adam Múdry
e1f6ec686c fix(sdmmc): release aligned DMA buffer on card deinit 2026-09-01 12:27:09 +02:00
Erhan Kurubas
bd09970094 docs(esp_trace): restructure tracing docs with esp_trace as master
Reorganize the tracing documentation so esp_trace is the master
component, with app_trace, SystemView, and Gcov referenced from it.

(cherry picked from commit 6c6490d54c)
2026-09-01 08:45:18 +02:00
Marek Fiala
cf09ccd766 fix(tools): send mcp-server startup diagnostics to stderr
idf.py mcp-server printed startup, shutdown, and error messages on
stdout. On the stdio MCP transport, stdout is the JSON-RPC channel, so
those non-JSON lines can confuse or break strict clients. Route them to
stderr like the other diagnostics in mcp_ext.py.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 08:10:23 +02:00
Marek Fiala
a6c3f023a2 fix(tools): detach MCP tool subprocess stdin from JSON-RPC pipe
idf.py mcp-server tool handlers were spawning idf.py without redirecting
stdin, so the child inherited the long-lived MCP JSON-RPC transport and
could hang indefinitely on tools/call. Pass stdin=subprocess.DEVNULL on
every spawn of idf.py.

Closes https://github.com/espressif/esp-idf/issues/18961
2026-09-01 08:10:23 +02:00
Jiang Jiang Jian
89dea7df57 Merge branch 'ble-log-console-migration-notice_v6.1' into 'release/v6.1'
Ble log console repository migration (6.1)

See merge request espressif/esp-idf!50608
2026-08-31 11:06:42 +08:00
Mahavir Jain
1dbe2cb8b2 Merge branch 'feat/enable_dpu_region_protection_for_esp32s31_v6.1' into 'release/v6.1'
feat: enable cpu region protection for esp32s31 (v6.1)

See merge request espressif/esp-idf!52003
2026-08-30 21:55:12 +05:30
Rahul Tank
bf93402138 Merge branch 'bugfix/nimble_issues_26082026_v6.1' into 'release/v6.1'
fix(nimble): Fix few nimble issues 26082026 (v6.1)

See merge request espressif/esp-idf!52075
2026-08-29 21:17:04 +05:30
harshal.patil
0580cff0e4 change(esp_hw_support): harden the ESP32-S31 PSRAM region permissions
Both PSRAM layouts were mapped as a single RWX window, so everything in external
RAM - the heap included - was executable.

PSRAM used as data only is now RW, and under XIP-from-PSRAM it is split per
section as ESP32-P4 does: .text RX, .rodata read-only, and the MMU-page
alignment gaps and the reclaimed heap RW, so neither is executable.

Both describe the layout that esp_psram_init() produces, and the entries are
locked, so - again as on ESP32-P4 - they are only narrowed when
CONFIG_SPIRAM_PRE_CONFIGURE_MEMORY_PROTECTION says that layout applies. Without
it the application owns the region and PSRAM stays RWX.

The per-section entries cost one PMP entry more than the 16 available, so the CPU
subsystem and peripheral windows are chained as TOR entries, taking one entry
instead of three.

soc.h is corrected against the S31 bus address map: the peripheral window base
was 1 MB too low, and the LP peripheral top, derived from a register base plus a
size rather than from the map, was 16 KB short. SOC_NON_CACHEABLE_OFFSET_FLASH
is added.
2026-08-28 18:06:56 +05:30
nilesh.kale
8f3d9e7445 feat: enable cpu region protection for esp32s31 2026-08-28 18:06:56 +05:30
morris
f7502ee0cb Merge branch 'isp_dma_one_frame_v6.1' into 'release/v6.1'
feat(isp): support isp dma input and add example (v6.1)

See merge request espressif/esp-idf!50754
2026-08-28 10:05:35 +08:00
Marius Vikhammer
738e9da8e9 Merge branch 'feat/optimize_bootloader_size_v6.1' into 'release/v6.1'
change(bootloader): optimize bootloader size (v6.1)

See merge request espressif/esp-idf!51596
2026-08-27 18:15:49 +08:00
Alexey Gerenkov
9a80cf3721 Merge branch 'fix/coredump_psram_xip_v6.1' into 'release/v6.1'
test(coredump): fix psram memory range for esp32s31 and esp32p4 (v6.1)

See merge request espressif/esp-idf!50738
2026-08-27 17:25:01 +08:00
Fu Hanxi
7eaf5f1b4e Merge branch 'feat/apply-common-scripts-6.1' into 'release/v6.1'
ci: apply common-scripts CI refactor (v6.1)

See merge request espressif/esp-idf!50988
2026-08-27 10:39:58 +02:00
Erhan Kurubas
74265eb43b test(coredump): fix psram memory range for esp32s31 and esp32p4 2026-08-27 10:23:12 +02:00
Mahavir Jain
ead61fe10e Merge branch 'feat/update_documentation_and_cleanup_for_s31_v6.1' into 'release/v6.1'
enable tests and cleanup JIRA references for s31 (v6.1)

See merge request espressif/esp-idf!50378
2026-08-27 13:45:25 +05:30
Alexey Gerenkov
89bc2b8bc4 Merge branch 'feature/upgrade-esp-rom-elfs_v6.1' into 'release/v6.1'
feat(tools): tools: update esp-rom-elf to version 20260528 (v6.1)

See merge request espressif/esp-idf!50846
2026-08-27 16:15:10 +08:00
Alexey Gerenkov
ad05a2522a Merge branch 'enable_esp32s31_jtag_tests_v6.1' into 'release/v6.1'
change(ci): enable esp32s31 jtag tests (v6.1)

See merge request espressif/esp-idf!50735
2026-08-27 16:09:51 +08:00
Alexey Gerenkov
67d7993822 Merge branch 'coredump_test_fixes_v6.1' into 'release/v6.1'
Coredump fixes (v6.1)

See merge request espressif/esp-idf!50473
2026-08-27 16:00:22 +08:00
Alexey Gerenkov
88ef571889 Merge branch 'enable_esp32h4_coredump_tests_v6.1' into 'release/v6.1'
ci(coredump): enable esp32h4 tests (v6.1)

See merge request espressif/esp-idf!50724
2026-08-27 15:54:24 +08:00
Fu Hanxi
0a0f6ff9d1 tests: replace CLI-dependent xfail/skipif conditions
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-27 09:25:42 +02:00
Fu Hanxi
62cca9b9e0 ci: use main branch of ci/actions/common 2026-08-27 09:25:42 +02:00
Fu Hanxi
d008f9456b ci: remove pip-cache and other unused jobs 2026-08-27 09:25:41 +02:00
Fu Hanxi
321dda29ff ci: apply common-scripts CI refactor (v6.1) 2026-08-27 09:14:23 +02:00
nilesh.kale
256244e89a feat: enable tests and cleanup jira references for s31 2026-08-27 12:28:24 +05:30
Roland Dobai
138482998d Merge branch 'feature/use_zcmp_by_default_v6.1' into 'release/v6.1'
feat(build): add ZCMP workaround post-build check (v6.1)

See merge request espressif/esp-idf!51325
2026-08-27 08:24:39 +02:00
Roland Dobai
b737501fd4 Merge branch 'bugfix/cmakev2-coredump-default-component_v6.1' into 'release/v6.1'
fix(cmakev2): include config-selected default components (v6.1)

See merge request espressif/esp-idf!51930
2026-08-27 08:21:54 +02:00
Roland Dobai
4d777fd05a Merge branch 'fix/harden_empty_toolchain_output_v6.1' into 'release/v6.1'
fix: harden build against empty toolchain output (v6.1)

See merge request espressif/esp-idf!51643
2026-08-27 08:20:56 +02:00
Roland Dobai
46e2563b4b Merge branch 'fix/buildv2_fake_pass_pipeline_v6.1' into 'release/v6.1'
ci(buildv2): skip patching the fake_pass build child pipeline (v6.1)

See merge request espressif/esp-idf!51571
2026-08-27 08:19:13 +02:00
Roland Dobai
e30658c10c Merge branch 'chore/remove_old_root_managed_components_tests_v6.1' into 'release/v6.1'
chore: Remove old root managed components tests (v6.1)

See merge request espressif/esp-idf!51075
2026-08-27 08:17:44 +02:00
Roland Dobai
7c890fccf7 Merge branch 'feat/idf_component_include_optional_v6.1' into 'release/v6.1'
feat(cmakev2/component): add OPTIONAL flag to idf_component_include (v6.1)

See merge request espressif/esp-idf!49570
2026-08-27 08:17:12 +02:00
Euripedes Rocha
cdec505ebd Merge branch 'feat/eth_test_component_v6.1' into 'release/v6.1'
feat(esp_eth): updated test_apps to use Ethernet test component (v6.1)

See merge request espressif/esp-idf!49658
2026-08-27 08:07:55 +02:00
Roland Dobai
5a5c367ee4 Merge branch 'fix/mcp_support_major_2_v6.1' into 'release/v6.1'
fix(tools): mcp-server supports python package mcp > 2 (v6.1)

See merge request espressif/esp-idf!51569
2026-08-27 08:06:47 +02:00
Astha Verma
1265a63943 fix(nimble): Added l2cap_coc throughput examples 2026-08-27 11:33:56 +05:30
morris
3e162786cb feat(build): support aligned embedded binary data
Allow callers to align embedded binary start symbols for DMA-capable
assets.
2026-08-26 11:33:58 +08:00
Marius Vikhammer
702f6354ec fix(cmakev2): include config-selected default components 2026-08-21 10:24:17 +08:00