Commit Graph
1185 Commits
Author SHA1 Message Date
wangtao@espressif.com f17769e004 fix(wifi): fix wifi blacklist issue 2026-05-09 20:16:56 +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
linruihao 8bc55358c2 fix(coex): fix some esp32 coexistence bugs
- fix ble scan may restart twice in coex scenarios
- fix bredr page/pscan coex request/release not match
- fix bredr incorrect inquiry length calculation
- update bredr page/inquiry pti
- add coex pti protection for entire page/inquiry event
2026-03-24 20:47:10 +08:00
Island 3b5fd9546e Merge branch 'feat/support_run_time_alloc_for_esp_ip_test_v6.0' into 'release/v6.0'
Support Mempool Run Time Allocation for ESP IP Chips (v6.0)

See merge request espressif/esp-idf!46824
2026-03-23 20:22:48 +08:00
morris ed6a7e267e Merge branch 'fix/32mb_120m_v6.0' into 'release/v6.0'
fix(spi_flash): 1. Fix flash 120m in qio mode failed on esp32p4 (with 32M map enabled) 2. Add C61 32M flash support (backport v6.0)

See merge request espressif/esp-idf!46042
2026-03-23 16:14:19 +08:00
Jin Chen 86c6941ddb 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 14:56:43 +08:00
Jiang Jiang Jian b3e7406c39 Merge branch 'bugfix/backport_some_wifi_fixes_v6.0' into 'release/v6.0'
fix(wifi): backport some wifi fixes v6.0

See merge request espressif/esp-idf!46842
2026-03-23 10:50:34 +08:00
Sajia c77e831d78 fix(wifi): Add bss max idle timer and protected keep alive fixes 2026-03-20 20:15:41 +08:00
yinqingzhao 566bea056f feat(bss_max_idle): optimization of the max BSS idle mechanism 2026-03-20 20:11:45 +08:00
C.S.M 52d5b1a173 fix(spi_flash): Fix esp32p4 120m flash suspend failed 2026-03-20 15:21:22 +08:00
yangfeng 728f29289d 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-20 14:26:10 +08:00
Jiang Jiang Jian 2676490557 Merge branch 'feat/fix_esp32c2_rom_rewrite_issue_rebase_v6.0' into 'release/v6.0'
Feat/fix esp32c2 rom rewrite issue rebase (v6.0)

See merge request espressif/esp-idf!45769
2026-03-20 10:30:46 +08:00
wuzhenghui 9ed0d4bc4e fix(esp_rom): sync spi_flash_disable/enable_cache patches to rom implementation 2026-03-10 14:14:01 +08:00
Jin Chen bf5cdc7163 feat(ble): apply new method for rom code logic change on ESP32-C2
(cherry picked from commit 2a0df334e3)

Co-authored-by: cjin <jinchen@espressif.com>
2026-03-02 00:05:00 +08:00
muhaidong 8d35a5a92a fix(wifi): fix phy rfrx gain index issue 2026-02-13 16:12:35 +08:00
Xiao Xufeng dd9706564f fix(tee): fix failed to configure flash on C6 v0.1 and above when REV_MIN_0 configured 2026-02-05 01:19:28 +08:00
Jiang Jiang Jian 31056d5db9 Merge branch 'refactor/spi_flash_private_v6.0' into 'release/v6.0'
refactor(spi_flash): reorganize header files, improve encapsulation and simplify ROM implementation (v6.0)

See merge request espressif/esp-idf!45488
2026-02-02 10:57:34 +08:00
Jiang Jiang Jian 987bbd8646 Merge branch 'fix/backport_wifi_fixes_v6.0' into 'release/v6.0'
fix(esp_wifi): backport some wifi fixes

See merge request espressif/esp-idf!45567
2026-02-02 10:51:00 +08:00
Jiang Jiang Jian 1c2dc4055d Merge branch 'fix/fix_wifi_set_vendor_issue_v60' into 'release/v6.0'
fix(wifi): fix esp32c2 set vendor ie issue 6.0

See merge request espressif/esp-idf!45559
2026-02-01 12:29:57 +08:00
sibeibei 43e290ba24 fix(esp_wifi): rf delay cycles set failed for esp32c61ec04 2026-01-31 13:41:22 +08:00
muhaidong 228fcb0b3b fix(wifi): fix esp32s3 ping failure with ip and wifi fragmented packets 2026-01-31 13:34:01 +08:00
muhaidong 824bb89542 fix(wifi): fix lmac tx done assert issue 2026-01-31 13:33:50 +08:00
Mahavir Jain ee2da28726 Merge branch 'feat/esp_tee_backports_v6.0' into 'release/v6.0'
feat(esp_tee): Feature/fixes backports to `release/v6.0`

See merge request espressif/esp-idf!45095
2026-01-31 10:27:34 +05:30
wangtao@espressif.com 2f6c169d31 fix(wifi): fix esp32c2 set vendor ie issue 2026-01-30 17:52:18 +08:00
Laukik HaseandHarshal Patil 17b98b7a29 feat(esp_tee): Enable GDMA burst mode for AES/SHA operations
- Fix the compile-time minimum chip revision check for patching
  the `ets_delay_us` API

Co-authored-by: Harshal Patil <harshal.patil@espressif.com>
2026-01-29 11:49:14 +05:30
Xiao Xufeng 3411286544 refactor(spi_flash): reorganize header files and improve API encapsulation
This commit reorganizes SPI flash header files to better reflect their
visibility and intended usage:

1. Rename `esp_flash_port/` to `esp_flash_chips/`:
   - Better reflects that these headers are for chip driver implementations
   - All chip driver headers moved to `esp_flash_chips/` directory
   - Added README.md explaining semi-public nature of these headers

2. Move internal headers to `esp_private/`:
   - `esp_flash_internal.h` -> `esp_private/esp_flash_internal.h`
   - `memspi_host_driver.h` -> `esp_private/memspi_host_driver.h`

3. Move chip driver related headers to `esp_flash_chips/`:
   - `esp_private/esp_flash_types.h` -> `esp_flash_chips/esp_flash_types.h`
   - `spi_flash/spi_flash_defs.h` -> `esp_flash_chips/spi_flash_defs.h`
   - `spi_flash_override.h` -> `esp_flash_chips/spi_flash_override.h`
   - All `spi_flash_chip_*.h` headers moved to `esp_flash_chips/`

4. Code improvements:
   - Remove unused includes (e.g., `spi_flash_override.h` from `cache_utils.c`)
   - Use public API `esp_flash_get_size()` instead of direct member access
   - Add `esp_flash_is_quad_mode` to linker.lf for IRAM placement

5. Documentation updates:
   - Add README.md in `esp_flash_chips/` explaining semi-public headers
   - Update programming guide with warnings about internal headers
   - Update both English and Chinese documentation

6. Update all references across the codebase:
   - Update includes in `spi_flash` component
   - Update `bootloader_support`, `app_update`, `esp_tee`, `espcoredump`
   - Update example projects

Breaking changes:
- Headers moved to new locations require include path updates
- `custom_flash_driver` example temporarily disabled until external
  components are updated
2026-01-29 03:28:30 +08:00
Xiao Xufeng 29587bb50a fix(esp32p4): fix rom and ld misuse min_rev 2026-01-28 21:42:03 +08:00
Jiang Jiang Jian b34e8b03b9 Merge branch 'fix/fix_secure_boot_fast_wake_feature_v6.0' into 'release/v6.0'
fix(esp_system): fix ROM secure boot fast wake feature (v6.0)

See merge request espressif/esp-idf!44951
2026-01-28 17:50:30 +08:00
liuning 62a940f823 feat(coex): support c5 eco3 and c61 eco4 coexist rom 2026-01-10 13:23:28 +08:00
yinqingzhao 826de54b6d feat(wifi): update esp32c61 ld files 2026-01-10 13:23:03 +08:00
yinqingzhao 695fa93894 feat(rom): add esp32c61 eco4 ld files 2026-01-10 13:22:52 +08:00
yinqingzhao 06b73db9e7 feat(wifi): update esp32c5 eco3 ld files 2026-01-10 13:22:42 +08:00
wanglei b4f0bcbcdc fix(ld): add missing eco3 newly added rom functions 2026-01-10 13:15:23 +08:00
wanglei f4a5e3cb9b feature(esp_rom): add esp32c5 eco3 rom ld 2026-01-10 13:15:12 +08:00
wuzhenghui 9a20ef85f5 fix(esp_system): fix rom secure boot fast wake feature for c5/c6/h2/h21 2026-01-09 11:15:12 +08:00
morris 4fbcab88f8 Merge branch 'refactor/esp_hal_uart_v6.0' into 'release/v6.0'
refactor(uart): split UART HAL into separate component (v6.0)

See merge request espressif/esp-idf!44642
2026-01-06 23:31:23 +08:00
Ashish Sharma 246b052c93 fix(mbedtls): use ROM functions for md5 2026-01-05 14:54:33 +05:30
Song Ruo Jing ce475d901d refactor(uart): split UART HAL into separate component 2026-01-04 16:02:57 +08:00
harshal.patil 88fc8952e5 test(ota): Add tests for verifying app build's SBv2 ECDSA signature verify APIs 2025-12-26 11:49:15 +05:30
Shreyas Sheth 1879e4702f fix(rom): Allow hmac_md5 override for ESP32-C3 and ESP32-S3 ROM functions
- Allow override of hmac_md5 and hmac_md5_vector rom functions
  for esp32s3 and esp32c3

This fixes crash when using hmac_md5 in wpa_supplicant component
2025-12-19 07:29:38 +08:00
Ashish Sharma b0da66f7e1 feat(bt): migrate mbedtls to PSA APIs 2025-12-18 21:18:58 +08:00
Kapil Gupta 54a41e1b29 Merge branch 'feat/wpa_supplicant_rom_md5_tests_v6.0' into 'release/v6.0'
fix(esp_rom): use hmac_md5 and hmac_md5_vector from ROM only if CONFIG_LIBC_NEWLIB (v6.0)

See merge request espressif/esp-idf!44330
2025-12-17 21:19:34 +05:30
morris 311bec8f82 Merge branch 'fix/spi_edma_and_hal_component_6.0' into 'release/v6.0'
feat(driver_spi): split esp_hal_gpspi and support master driver edma (v6.0)

See merge request espressif/esp-idf!44222
2025-12-17 14:54:05 +08:00
Alexey Lapshin 5008666133 fix(esp_rom): use hmac_md5 and hmac_md5_vector from ROM only if CONFIG_LIBC_NEWLIB 2025-12-17 12:05:44 +07:00
wanckl d12f941787 feat(driver_spi): split spi hal component 2025-12-16 20:38:09 +08:00
muhaidong adb22338d5 fix(wifi): fix some wapi and fragment issues
1. fix gcmp fragment rx issue
2. support wapi fragment tx and rx
3. fix wapi uskid issue
2025-12-14 15:37:40 +08:00
yinqingzhao baa6f312e5 fix(wifi): fix cannot send omc 2025-12-14 15:37:13 +08:00
yinqingzhao 82a6633607 fix(wifi): fix some bugs related to ampdu 2025-12-14 15:37:02 +08:00
morris 553978bf5e Merge branch 'fix/update_h4_mp_final_ld_v6.0' into 'release/v6.0'
fix(esp_rom): update H4 MP ld files (v6.0)

See merge request espressif/esp-idf!44035
2025-12-10 22:56:20 +08:00
morris b390af239b refactor(hal_wdt): esp_hal_wdt also maintains the ROM implementation 2025-12-10 13:54:44 +08:00