Commit Graph

7990 Commits

Author SHA1 Message Date
armando
6e3abd12a1 refactor(spi_flash): move os layer to esp_mspi and chip configs to spi_flash
Also fixes the implicit dependency on esp_partition.
2026-09-09 14:17:00 +08:00
Marius Vikhammer
25555683b9 Merge branch 'feature/g1_improvements_cmake_v2' into 'master'
feat(build): fixed esp_usb_cdc_rom_console always being included in build

See merge request espressif/esp-idf!51981
2026-09-08 10:36:40 +08:00
morris
77d0058435 Merge branch 'ci/disable_h4_target_test_for_updating_runners' into 'master'
ci(esp32h4): disable h4 target test for updating runners

See merge request espressif/esp-idf!52449
2026-09-07 17:19:53 +08:00
Marius Vikhammer
b38c8a0625 Merge branch 'feat/llvm-opt-integration' into 'master'
feat(compiler): add ESP-IDF LLVM optimization enablement framework

See merge request espressif/esp-idf!51154
2026-09-07 10:11:37 +08:00
Alexey Gerenkov
6d01a64027 Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20260831' into 'master'
feat(tools): update openocd version to v0.12.0-esp32-20260831

See merge request espressif/esp-idf!52371
2026-09-04 19:37:02 +08:00
Chen Jichang
e9c56e2d78 ci(esp32h4): disable h4 target test for updating runners 2026-09-04 17:19:46 +08:00
Roland Dobai
aa03e678f5 Merge branch 'fix/serial_port_target_mismatch' into 'master'
fix(tools): Detect serial port matching the project target

Closes IDF-15356

See merge request espressif/esp-idf!51466
2026-09-04 07:01:30 +02:00
Roland Dobai
c63f12f2d0 Merge branch 'fix/kconfig_test_format' into 'master'
fix: KConfig test output format

See merge request espressif/esp-idf!52329
2026-09-03 12:52:44 +02:00
Samuel Obuch
0a1d19eba1 feat(tools): update openocd version to v0.12.0-esp32-20260831 2026-09-03 07:46:42 +00:00
Marius Vikhammer
157d6b1669 feat(build): fixed esp_usb_cdc_rom_console always being included in build 2026-09-03 15:09:38 +08:00
chenqian
25046e7959 feat(compiler): add ESP-IDF LLVM optimization enablement framework
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 13:02:58 +08:00
morris
0f42b6c4f3 Merge branch 'refactor/dac_examples' into 'master'
refactor(dac): remove adc read back in dac example, prepare for s31

See merge request espressif/esp-idf!52030
2026-09-02 20:04:22 +08:00
Daniel Paul
1c70539375 fix: KConfig test output format 2026-09-02 13:19:40 +02:00
Marius Vikhammer
ff6371a140 Merge branch 'task/remove_build_components_var_in_buildv2' into 'master'
change(build): drop BUILD_COMPONENTS support and migrate test_apps to not use it for buildv2

Closes IDF-15859

See merge request espressif/esp-idf!51695
2026-09-02 19:19:08 +08:00
Vojtech Piroch
19676ffa46 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-02 17:18:57 +08:00
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
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
Jakub Kocka
2a07ad46e7 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-01 09:18:32 +02:00
Jakub Kocka
02a689149c 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-01 09:18:31 +02:00
harshal.patil
8daab867b7 test(panic): enable the memprot panic tests for ESP32-S3
sdkconfig.ci.memprot_esp32s3 was built but listed in no CONFIGS_MEMPROT_*, so
the S3 PMS panic path was never exercised.

expect_gme() takes an optional core, for panics with no attributable core.
2026-09-01 12:33:46 +05:30
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
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
Roland Dobai
1ba374b7e6 Merge branch 'fix/lto_function_data_sections' into 'master'
fix(build): keep per-function sections when generating code at LTO link time

See merge request espressif/esp-idf!51629
2026-08-27 13:55:43 +02:00
Adam Múdry
e0c094da69 fix(sdmmc): release aligned DMA buffer on card deinit 2026-08-27 12:00:24 +02:00
Hu Rui
7bb7fed5ec refactor(dac): remove adc read back in dac example, prepare for s31 2026-08-27 16:06:40 +08:00
Sudeep Mohanty
dfe99a4a41 feat(idf_py): hint at the BUILD_COMPONENTS migration path
Reading the BUILD_COMPONENTS build property aborts the build with a bare
message stating that the property is unsupported, without naming a
replacement. Add a hint that points at the $<TARGET_EXISTS:idf::component>
generator expression and at the documentation section describing the
migration, so the guidance lives with the other build hints instead of
being spelled out in the build system sources.
2026-08-26 15:28:18 +02:00
Sudeep Mohanty
b91f894234 change(build): reject BUILD_COMPONENTS in all cmakev2 builds
The compatibility shim populated BUILD_COMPONENTS from the library
interface's linked-components list so that consumers reading it kept
working. Those consumers now query the library interface directly, so
drop the shim population and reject reads of the property
unconditionally.
2026-08-26 15:28:18 +02:00
Sudeep Mohanty
052f444f32 change(test_apps): decouple netif_components from BUILD_COMPONENTS property
The BUILD_COMPONENTS build property only exists when building through the
Build system v1 compatibility shim. Query the executable library
interface's linked-components list instead, so the app does not depend on
compatibility-only properties.
2026-08-26 15:28:18 +02:00
Sudeep Mohanty
d519de14d1 change(test_apps): decouple g1_components from BUILD_COMPONENTS property
The BUILD_COMPONENTS build property only exists when building through the
Build system v1 compatibility shim. Query the executable library
interface's linked-components list instead, so the app does not depend on
compatibility-only properties.
2026-08-26 15:28:18 +02:00
Sudeep Mohanty
78d3f61757 change(test_apps): decouple g0_components from BUILD_COMPONENTS property
The BUILD_COMPONENTS build property only exists when building through the
Build system v1 compatibility shim. Query the executable library
interface's linked-components list instead, so the app does not depend on
compatibility-only properties.
2026-08-26 15:28:18 +02:00
Sudeep Mohanty
73bbe343ec fix(test_apps): drop obsolete esp_common dependency violations 2026-08-26 15:28:18 +02:00
harshal.patil
53c9439161 change(esp_hw_support): rework ESP32-H4 region protection to the application-owned layout
The bootloader programs only unlocked PMA entries (no PMP), so the layout is
not a bootloader<->application ABI; the application resets all entries, programs
them in ascending order from IRAM, and locks everything. Verified on ESP32-H4 v0.1.
2026-08-25 10:40:28 +05:30
harshal.patil
07debe6edc feat(esp_hw_support): Memory region protection for ESP32-H4 2026-08-25 10:40:28 +05:30
Roland Dobai
e37a7ae137 Merge branch 'feat/cmakev2-configdep' into 'master'
feat: Adopt rebuild optimization tool (configdep) in cmakev2

Closes IDF-15301

See merge request espressif/esp-idf!51263
2026-08-24 13:53:47 +02:00
Roland Dobai
502c3c305b Merge branch 'fix/mcp_subprocess_stdin' into 'master'
fix(tools): detach MCP tool subprocess stdin from JSON-RPC pipe

Closes IDFGH-18123

See merge request espressif/esp-idf!51872
2026-08-24 13:43:23 +02:00
Marius Vikhammer
b95b1bbf1f Merge branch 'bugfix/cmakev2-coredump-default-component' into 'master'
fix(cmakev2): include config-selected default components

See merge request espressif/esp-idf!49614
2026-08-21 10:16:27 +08:00
Jan Beran
8b213b517d feat: Adopt rebuild optimization tool (configdep) in cmakev2 2026-08-20 15:57:10 +08:00
Fu Hanxi
289a17b3a2 tests: replace CLI-dependent xfail/skipif conditions 2026-08-20 09:14:41 +02:00
Marius Vikhammer
5c0facdaba fix(cmakev2): include config-selected default components 2026-08-20 11:09:58 +08:00
Marius Vikhammer
71ec4f2699 Merge branch 'fix/buildv2_ldgen_template_rebuild_test' into 'master'
fix(test_build_system): fix ldgen template rebuild test for build system v2

See merge request espressif/esp-idf!51732
2026-08-20 11:08:46 +08:00
Mahavir Jain
53076b8aad Merge branch 'feat/enable_dpu_region_protection_for_esp32s31' into 'master'
feat: enable cpu region protection for esp32s31

Closes IDF-15238

See merge request espressif/esp-idf!49270
2026-08-19 19:13:11 +05:30
Marek Fiala
7613daadc6 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-08-19 09:10:01 +02:00
Marek Fiala
be74313d0b 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-08-19 09:09:34 +02:00
harshal.patil
01b86f1269 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-19 09:39:52 +05:30
Daniel Paul
7e6fc433cc chore: Pin the testing versions of components 2026-08-18 20:51:54 +08:00
Daniel Paul
39de6e1429 fix: Kconfig test - Make assertion whitespace-insensitive 2026-08-18 20:51:54 +08:00
Daniel Paul
b764f073ac feat: Consume root-managed components from IDF Component Manager 2026-08-18 20:51:54 +08:00
Fu Hanxi
399b92e15c Merge branch 'fix/worktree-submodule-copy' into 'master'
Fix worktree submodule copy of gitlink files

See merge request espressif/esp-idf!51815
2026-08-18 14:45:55 +02:00
Wang Meng Yang
9150d065a3 Merge branch 'feat/support_pan_bnep' into 'master'
feat(bt/bluedroid): support Classic Bluetooth PAN profile

See merge request espressif/esp-idf!50641
2026-08-18 17:38:59 +08:00