Commit Graph
50232 Commits
Author SHA1 Message Date
morris 04c10be114 Merge branch 'fix/uhci_esp32p4_cache_v6.0' into 'release/v6.0'
fix(uhci): fix uhci cache issue on ESP32-P4 (v6.0)

See merge request espressif/esp-idf!47917
2026-04-28 16:44:32 +08:00
morris 2b874adaef Merge branch 'fix/uhci_test_3_v6.0' into 'release/v6.0'
test(uhci): fix false-pass bug in UHCI receive test (v6.0)

See merge request espressif/esp-idf!47662
2026-04-28 16:43:13 +08:00
morris 9bc9ac583c Merge branch 'fix/fix_spi_lcd_psram_mode_v6.0' into 'release/v6.0'
fix(spi_lcd): add a flag to decide whether dma accsess psram (v6.0)

See merge request espressif/esp-idf!47795
2026-04-28 16:42:33 +08:00
morris 5152f19a65 Merge branch 'fix/fix_lcd_cmd_bypassd_unexpectedly_v6.0' into 'release/v6.0'
fix(lcd): fix lcd cmd be bypassd unexpectedly (v6.0)

See merge request espressif/esp-idf!47805
2026-04-28 16:42:24 +08:00
morris 58bebf92ab Merge branch 'feature/i80_example_improvement_v6.0' into 'release/v6.0'
fix(i80_controller): fixe crash issue when using file system (v6.0)

See merge request espressif/esp-idf!47810
2026-04-28 16:41:43 +08:00
morris 88483aeef2 Merge branch 'fix/isp_clk_error_v6.0' into 'release/v6.0'
Fix ISP clk source error and hal init error (v6.0)

See merge request espressif/esp-idf!47323
2026-04-28 16:41:23 +08:00
morris d53e191915 Merge branch 'fix/i2c_fsm_reset_sequence_v6.0' into 'release/v6.0'
fix(i2c): reset master before bus clear on chips without HW FSM reset (v6.0)

See merge request espressif/esp-idf!47507
2026-04-28 16:40:53 +08:00
morris 7189c22ef2 Merge branch 'doc/i2c_master_probe_comment_update_v6.0' into 'release/v6.0'
docs(i2c): update i2c_master_probe parameter comment (v6.0)

See merge request espressif/esp-idf!47511
2026-04-28 16:40:43 +08:00
Wang Meng Yang 622dcfb864 Merge branch 'bugfix/ai_review_hfp_v6.0' into 'release/v6.0'
fix(bt): fix HFP issues reported by AI code review (v6.0)

See merge request espressif/esp-idf!47761
2026-04-28 15:16:13 +08:00
Wang Meng Yang f93ff3e5f0 Merge branch 'bugfix/btm_sec_free_dev_v6.0' into 'release/v6.0'
fix(bt): avoid deleting device record on partial transport cleanup (v6.0)

See merge request espressif/esp-idf!47294
2026-04-28 15:15:08 +08:00
Wang Meng Yang 068145be52 Merge branch 'bugfix/ai_review_avrcp_v6.0' into 'release/v6.0'
fix(bt): fix AVRCP component issues reported by AI review (v6.0)

See merge request espressif/esp-idf!47676
2026-04-28 15:14:06 +08:00
Wang Meng Yang e07aaaacbd Merge branch 'bugfix/bt_idf_ci_v6.0' into 'release/v6.0'
fix(bt/example): Fixed the HFP printing issue in the CI test (v6.0)

See merge request espressif/esp-idf!47078
2026-04-28 15:13:30 +08:00
Wang Meng Yang 8b82ddcadd Merge branch 'bugfix/spp_deinit_v6.0' into 'release/v6.0'
fix(bt/bluedroid): flushed all the DM PM at the end of SPP deinit (v6.0)

See merge request espressif/esp-idf!47289
2026-04-28 15:11:05 +08:00
Euripedes Rocha e65a084dd3 Merge branch 'fix/eth_init_component_v6.0' into 'release/v6.0'
fix(eth/examples): fixed ethernet_init dependency to v1.3.0 (v6.0)

See merge request espressif/esp-idf!47127
2026-04-28 08:54:08 +02:00
Roland Dobai 11bc5423c9 Merge branch 'feat/cmakev2_bootloader_v6.0' into 'release/v6.0'
feat(cmakev2): build bootloader using the cmakev2 build system (v6.0)

See merge request espressif/esp-idf!47903
2026-04-28 08:53:53 +02:00
Island 7fc3744abd Merge branch 'change/ble_update_lib_20260409_v6.0' into 'release/v6.0'
change(ble): [AUTO_MR] 20260409 - Update ESP BLE Controller Lib (6.0)

See merge request espressif/esp-idf!47419
2026-04-28 14:25:25 +08:00
Island 791b3de2ed Merge branch 'feat/support_ble_uart_service_v6.0' into 'release/v6.0'
Feat/support ble uart service (6.0)

See merge request espressif/esp-idf!48000
2026-04-28 13:26:39 +08:00
Island 6cf5b5f67f Merge branch 'dev/ble-log-202603_v6.0' into 'release/v6.0'
dev: BLE Log 202603 (6.0)

See merge request espressif/esp-idf!47277
2026-04-28 13:25:12 +08:00
Zhou Xiao ad62778bc0 fix(ble): fixed ci failures for backport 2026-04-28 12:57:14 +08:00
Zhou Xiao 5a9bb3c7ca feat(ble): add BLE UART daemon notify API 2026-04-28 11:12:10 +08:00
Zhou Xiao a1708452ec docs(ble): document BLE UART bridge usage 2026-04-28 11:12:10 +08:00
Zhou Xiao c6de8e7dff feat(ble): wire BLE UART bridge CLI 2026-04-28 11:12:10 +08:00
Zhou Xiao be95b3fc73 feat(ble): add BLE UART daemon RPC API 2026-04-28 11:12:10 +08:00
Zhou Xiao 29dc646b21 feat(ble): add BLE UART bridge console 2026-04-28 11:12:10 +08:00
Zhang Wen Xu 9e2188364b Merge branch 'feat/ot_make_esp_netif_glue_optional_v6.0' into 'release/v6.0'
feat(openthread): make esp_netif glue optional (v6.0)

See merge request espressif/esp-idf!47859
2026-04-28 02:41:19 +00:00
Zhang Wen Xu 47e1b6f875 Merge branch 'bugfix/fix_ot_ci_testcases_v6.0' into 'release/v6.0'
ci: improve BR host related test cases (v6.0)

See merge request espressif/esp-idf!47261
2026-04-28 02:41:06 +00:00
Zhang Wen Xu d689e38b4c Merge branch 'fix/update_ot_mbedtls_version_v6.0' into 'release/v6.0'
ci(openthread): include mbedtls in openthread dependencies (v6.0)

See merge request espressif/esp-idf!47444
2026-04-28 02:40:14 +00:00
Zhang Wen Xu b7cb1587d6 Merge branch 'fix/add_ifndef_ot_config_v6.0' into 'release/v6.0'
fix(openthread): add ifndef guards to ftd / mtd config (v6.0)

See merge request espressif/esp-idf!47171
2026-04-28 02:39:54 +00:00
Shu Chen ae4c1edc0c Merge branch 'feat/update_openthread_upstream_v6.0' into 'release/v6.0'
feat(openthread): update openthread upstream (v6.0)

See merge request espressif/esp-idf!47464
2026-04-28 02:37:57 +00:00
Island 4e1a423a0f Merge branch 'feat/support_adv_monitor_for_bluedroid_host_v6.0' into 'release/v6.0'
feat(ble/bluedroid): support adv monitor feature (6.0)

See merge request espressif/esp-idf!47038
2026-04-28 10:26:54 +08:00
Island 29687c6d70 Merge branch 'bugfix/fix_some_bluedroid_bugs_260121_v6.0' into 'release/v6.0'
Bugfix/fix some bluedroid bugs 260121 (6.0)

See merge request espressif/esp-idf!46984
2026-04-28 10:26:34 +08:00
Island 3ef0ca7e36 Merge branch 'feat/allow_creat_vendor_descriptor_by_service_table_v6.0' into 'release/v6.0'
feat(ble/bluedroid): Allow add vendor descriptor by service table create API (6.0)

See merge request espressif/esp-idf!47043
2026-04-28 10:25:59 +08:00
Marius Vikhammer 2f71725790 Merge branch 'feature/wdt_rom_patch_slim_v6.0' into 'release/v6.0'
fix(esp_hal_wdt): reduce IRAM usage of WDT init ROM patch (v6.0)

See merge request espressif/esp-idf!47359
2026-04-28 09:03:15 +08:00
Marius Vikhammer d11267de2b Merge branch 'docs/refresh-broken-links_v6.0' into 'release/v6.0'
docs: refresh broken documentation links (v6.0)

See merge request espressif/esp-idf!47493
2026-04-28 09:03:01 +08:00
Marius Vikhammer 626aac6aea Merge branch 'feature/activate_api_hover_v6.0' into 'release/v6.0'
docs(api): Enable hover api preview feature (v6.0)

See merge request espressif/esp-idf!47194
2026-04-28 09:02:47 +08:00
Marius Vikhammer f823e050fe Merge branch 'docs/fix_check_readme_links_v6.0' into 'release/v6.0'
docs(examples): fix broken README links found by check_readme_links CI (v6.0)

See merge request espressif/esp-idf!47058
2026-04-28 09:02:35 +08:00
Marius Vikhammer dcb68bf51a Merge branch 'ci/panic_tests_p4_s31_v6.0' into 'release/v6.0'
test(system): enable panic tests for P4 and S31 (v6.0)

See merge request espressif/esp-idf!47461
2026-04-28 09:02:20 +08:00
Roland Dobai 75f99323b5 Merge branch 'feat/extenral_components_from_valid_sources_v6.0' into 'release/v6.0'
feat(tools): Restrict loading extension components to trusted sources (v6.0)

See merge request espressif/esp-idf!47668
2026-04-27 17:45:33 +02:00
Mahavir Jain fbd9c33e83 Merge branch 'ci/github-dangerjs-fix-permissions_v6.0' into 'release/v6.0'
ci(github): fix permissions for GitHub-dangerjs (to content read) (v6.0)

See merge request espressif/esp-idf!47920
2026-04-27 20:51:29 +05:30
Frantisek Hrbata e1fbff334b fix(cmakev2/bootloader): use bootloader.bin when signing is not enabled
When CONFIG_SECURE_BOOT_V2_ENABLED=y but
CONFIG_SECURE_BOOT_BUILD_SIGNED_BINARIES is not set, produce the
binary directly as bootloader.bin instead of bootloader-unsigned.bin.

This matches the v1 behavior where the intermediate binary name is
conditional: bootloader-unsigned.bin only when build-time signing is
enabled (so the signed output can be named bootloader.bin), otherwise
the output is bootloader.bin directly.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-04-27 22:07:10 +08:00
Frantisek Hrbata c6db3d1d07 fix(cmakev2/project): guard compiler optimization flags with build property
The __init_project_configuration() function in cmakev2's project.cmake
unconditionally applied app-level compiler optimization flags based on
CONFIG_COMPILER_OPTIMIZATION_* Kconfig options. When the bootloader
subproject was built with cmakev2, these app-level flags leaked into the
bootloader compile command alongside the correct bootloader-specific
flags from CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_*.

For example, with the default configuration (app: DEBUG, bootloader:
SIZE), the bootloader received both "-Og -fno-shrink-wrap" (from app
config) and "-Os -freorder-blocks" (from bootloader config). While GCC
uses the last -O flag (-Os wins), the stray -fno-shrink-wrap persisted.

Introduce a SET_COMPILER_OPTIMIZATION build property that defaults to
YES when unset. Subprojects that manage their own optimization flags
(like the bootloader) can set this to NO before calling
idf_project_init() to prevent the default optimization flags from being
applied. This keeps project.cmake generic without requiring it to know
about specific subproject types.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-04-27 22:07:10 +08:00
Frantisek Hrbata 32eacbf0e3 fix(cmakev2/project): initialize idf_path for macro prefix map
The idf_path variable was used in -fmacro-prefix-map and
-fdebug-prefix-map flags but never read from the IDF_PATH build
property, resulting in an empty substitution. This caused full
filesystem paths to leak into .rodata instead of being mapped to /IDF.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-04-27 22:07:10 +08:00
Frantisek Hrbata f34fa1c269 fix(esp_rom): exclude TLSF/multi_heap ROM patches from bootloader build
The bootloader does not use the heap allocator or TLSF, so the ROM
patch files esp_rom_tlsf.c and esp_rom_multi_heap.c are not needed
in the bootloader build.

In the cmakev1 build system this was never an issue because cmakev1
uses an early expansion phase where only Kconfig files for components
listed in BUILD_COMPONENTS are processed. Since the heap component is
not part of the bootloader's component list, its Kconfig options
(CONFIG_HEAP_TLSF_USE_ROM_IMPL, etc.) were never defined and the
conditional compilation of these source files was effectively skipped.

In the cmakev2 build system, Kconfig options from all discovered
components are visible regardless of whether the component is part
of the build. Because the bootloader reuses the main project's
sdkconfig (where CONFIG_HEAP_TLSF_USE_ROM_IMPL defaults to y on
targets with ROM TLSF support like esp32c2), the TLSF patch sources
were being compiled into the bootloader's esp_rom. This caused a
build failure because esp_rom_tlsf.c includes tlsf_block_functions.h
from the heap component, which is not a dependency of esp_rom and is
not part of the bootloader build.

Guard the TLSF and multi_heap ROM patch sources with NOT
BOOTLOADER_BUILD to prevent them from being compiled in the
bootloader context. This fix is compatible with both cmakev1 and
cmakev2.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-04-27 22:07:10 +08:00
Frantisek Hrbata cfc60dba16 fix(cmakev2/utilities): resolve embed file path in idf_component_include
Commit f62f45cf5c changed target_add_binary_data to resolve the
embedded file path relative to the component directory by using
idf_component_get_property to obtain the COMPONENT_DIR. This fixed the
path resolution when target_add_binary_data is called from
idf_component_include, which runs outside the component's directory
context.

However, target_add_binary_data can also be called directly from a
project's CMakeLists.txt with a non-component target, e.g.
target_add_binary_data(app.elf ...) as done in
examples/security/security_features_app. In this case,
idf_component_get_property fails because the target is not a component.

Fix this by moving the path resolution to idf_component_include, where
the embed file paths from EMBED_FILES and EMBED_TXTFILES component
properties are resolved to absolute paths relative to COMPONENT_DIR
before being passed to target_add_binary_data. This way,
target_add_binary_data receives already absolute paths from
idf_component_include and can use plain get_filename_component(ABSOLUTE)
for direct calls, which correctly resolves relative to
CMAKE_CURRENT_SOURCE_DIR.

Fixes: f62f45cf5c ("fix(cmakev2/utilities): add a dependency target for the embedded file")

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-04-27 22:07:10 +08:00
Frantisek Hrbata bff4657ad6 feat(bootloader): build bootloader using cmakev2
Add CMakeLists_v2.txt to the bootloader subproject, implementing the
bootloader build using the new cmakev2 IDF build framework.

The file covers the full bootloader build pipeline:
- Sets PROJECT_COMPONENTS_SOURCE to "idf_components" so that the
  subproject's built-in components (main/, components/) are treated as
  IDF components (priority 0) rather than project components (priority
  3).  This preserves the cmakev1 behaviour where user-supplied
  components in bootloader_components/ can override the built-in ones.
- Registers optional user-supplied bootloader components from the
  application project's bootloader_components/ directory, with support
  for selectively excluding individual components via
  IGNORE_EXTRA_COMPONENT.
- Bootstraps the cmakev2 framework (idf.cmake) and initialises the
  project with BOOTLOADER_BUILD and NON_OS_BUILD properties, which are
  also exposed as C preprocessor definitions.
- Sets GENERATE_SDKCONFIG to 0 to prevent the bootloader subproject
  from regenerating the main project's sdkconfig, as the bootloader
  has a different set of components and hence different Kconfig files.
- Sets the common implicit component dependencies shared by every
  bootloader component (log, esp_rom, esp_common, esp_hw_support,
  esp_libc, arch-specific component).
- Applies the compiler options specific for bootloader
- Selects the correct target-specific linker script, including a
  separate script for ESP32-P4 silicon revisions < v3.
- Links the bootloader ELF via idf_build_executable and then converts it
  to a flat binary via one of three paths depending on the secure boot
  configuration:
    * No secure boot: plain binary + size check + metadata.
    * Secure Boot V1 one-time-flash: plain binary with post-build
      instructions showing the esptool.py flash command.
    * Secure Boot V1 reflashable: derives the symmetric eFuse key from
      the ECDSA signing key, produces the reflash-digest image, and
      prints burn/flash instructions.
    * Secure Boot V2: produces an unsigned binary, optionally signs it
      with the configured signing key (RSA-PSS 3072, ECDSA P-256, or
      ECDSA P-384) via idf_sign_binary, and prints flash/multi-key
      signing instructions.
- Adds comprehensive inline documentation explaining each section's
  purpose, the rationale behind individual flags, and the relationships
  between Kconfig symbols and generated artefacts.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-04-27 22:07:10 +08:00
Frantisek Hrbata 792f0975dd feat(cmakev2/kconfig): add GENERATE_SDKCONFIG build property
Add a GENERATE_SDKCONFIG build property that controls whether kconfgen
writes the sdkconfig file (--output config) during the configuration
step. It defaults to 1 (enabled).

When building the bootloader as a subproject, the set of components
(and their Kconfig files) differs from the main project. Running
kconfgen with --output config in this context rewrites the main
project's sdkconfig. Even when the content is identical, the timestamp
update causes ninja to detect sdkconfig as newer than build.ninja
outputs (e.g. cmake_install.cmake), triggering an infinite CMake
re-run loop.

Setting GENERATE_SDKCONFIG to 0 in a subproject prevents this,
matching the behaviour of cmakev1's __OUTPUT_SDKCONFIG property.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-04-27 22:07:10 +08:00
Frantisek Hrbata 1c6414f21d feat(cmakev2/idf): add PROJECT_COMPONENTS_SOURCE build property
Add the PROJECT_COMPONENTS_SOURCE build property to control how project
components are categorised during component discovery.  By default it is
set to "project_components" (priority 3 - highest), preserving the
existing behaviour.

Setting it to "idf_components" (priority 0) before calling
idf_project_init() makes the project's built-in components overridable
by user-supplied components through EXTRA_COMPONENT_DIRS (priority 2).

This is needed for sub-projects like the bootloader, whose built-in
components (e.g. main) are provided by ESP-IDF and should be overridable
by user-supplied components placed in bootloader_components/.  The
cmakev1 build system allowed this override because it used a
last-one-wins strategy, but cmakev2 uses strict priority-based component
resolution where project_components always win.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-04-27 22:07:10 +08:00
Frantisek Hrbata d8fcec199e feat(cmakev2/build): add ALL option to idf_build_binary and idf_sign_binary
Add an optional ALL parameter to idf_build_binary and idf_sign_binary
functions. When specified, the created custom target is included in the
default build target. Without ALL, custom targets created by these
functions are excluded from the default build (add_custom_target
behavior), meaning they won't be built unless explicitly requested or
depended upon by another target in ALL.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-04-27 22:07:10 +08:00
Frantisek Hrbata a0b0ee562a feat(cmakev2/utilities): add idf_target_post_build_msg helper
Add a helper function for printing multi-line post-build messages on a
target. The message lines are joined with newlines, written to a file at
configure time, and printed at build time using a single cmake -E cat
command, replacing the need for repeated cmake -E echo invocations.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-04-27 22:07:10 +08:00
Frantisek Hrbata de156c9e5a feat(cmakev2/build): add idf_check_bootloader_size helper
Add a public API function to check that the bootloader binary does not
overlap the partition table, mirroring the existing idf_check_binary_size
pattern for application binaries.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-04-27 22:07:10 +08:00