39195 Commits

Author SHA1 Message Date
zhanghaipeng
dda01d886f fix(ble): Update bt lib for ESP32(194dd63)
- Fix the issue where disconnection events were not reported as a slave.
- Enhance Access Address validation in compatibility mode.
2025-02-10 15:50:20 +08:00
gongyantao
96293d4575 feat(bt): add vendor hci command and event to support test
- add afh related vendor hci command and event
- add vendor event mask command
2025-02-10 15:50:11 +08:00
linruihao
1ca8daee7a feat(bt): add coexist scheme status support for bt page 2025-02-10 15:50:01 +08:00
Marius Vikhammer
780dc81e96 Merge branch 'fix/esp-event-profiling_v5.3' into 'release/v5.3'
fix(esp_event): Fix event loop profiling in handler_execute function (backport v5.3)

See merge request espressif/esp-idf!36690
2025-02-10 14:47:04 +08:00
Guillaume Souchere
693058a728 fix(esp_hw_support): Unused variables in memory_utils functions 2025-02-10 07:16:08 +01:00
Guillaume Souchere
bee3d8ff86 fix(heap): MALLOC_CAP_EXEC does not allocate in RTC IRAM
This commit fixes the issue when trying to allocate memory
with the MALLOC_CAP_EXEC in RTC memory. Prior to the fix,
the heap allocator was returning an address in RTC DRAM.

To fix this issue:
- modified memory_layout.c of the concerned targets to fill the iram_address
field in the rtc entry of the soc_memory_region array properly.
- modified heap component  related functions to return IRAM address when
an allocation in RTC memory with MALLOC_CAP_EXEC is requested.

Closes https://github.com/espressif/esp-idf/issues/14835
2025-02-10 07:16:07 +01:00
morris
33cc36595d Merge branch 'feat/async_memcpy_any_alignment_v5.3' into 'release/v5.3'
async memcpy destination address doesn't have to be cache aligned (v5.3)

See merge request espressif/esp-idf!36634
2025-02-10 13:32:22 +08:00
morris
57061d6336 Merge branch 'feature/malloc_cap_simd_flag_v5.3' into 'release/v5.3'
feat(heap): add a MALLOC_CAP_SIMD flag (v5.3)

See merge request espressif/esp-idf!36650
2025-02-09 10:45:43 +08:00
Song Ruo Jing
6975924104 feat(heap): add a MALLOC_CAP_SIMD flag
MALLOC_CAP_SIMD can be used to allocate memory to be used for SIMD instructions
2025-02-08 16:29:36 +08:00
Shu Chen
b46c03040f Merge branch 'feat/add_callback_for_esp_ot_radio_spinel_init_v5.3' into 'release/v5.3'
feat(openthread): add an API to set rcp version string (v5.3)

See merge request espressif/esp-idf!36744
2025-02-08 16:26:04 +08:00
morris
74615ed1a7 feat(async_memcpy): support rx buffer unaligned to cache line size 2025-02-08 15:48:11 +08:00
morris
1840d3663a refactor(dma): split rx buffer to cache aligned ones 2025-02-08 15:48:11 +08:00
morris
6cf2f3a8e2 Merge branch 'fix/usb_non_periodic_backport_v5.3' into 'release/v5.3'
fix(usb/host): Set SCHED_INFO for all channels (backport v5.3)

See merge request espressif/esp-idf!36771
2025-02-08 10:07:53 +08:00
Jiang Jiang Jian
1b33c442de Merge branch 'bugfix/remove_unused_sco_state_v5.3' into 'release/v5.3'
Bugfix/remove unused sco state (v5.3)

See merge request espressif/esp-idf!36730
2025-02-07 20:02:32 +08:00
Jiang Jiang Jian
354c0f5b8e Merge branch 'bugfix/sync_buf_crash_v5.3' into 'release/v5.3'
fix(bt/controller): fixed missing critical protections on linked-list structure of (e)SCO buffers (v5.3)

See merge request espressif/esp-idf!36341
2025-02-07 15:43:12 +08:00
Geng Yuchao
d418167af1 fix(esp32h2): H2 ble timer clk enable issue 2025-02-07 11:46:27 +08:00
Wang Mengyang
c7c0def473 change(bt): Set default value for BT_BLUEDROID_ESP_COEX_VSC conditionally
- Set default value of BT_BLUEDROID_ESP_COEX_VSC to n if software coexistence is not required,
in host-controller combined Bluetooth stack configuration.
2025-02-07 10:47:59 +08:00
Guillaume Souchere
7d4d24d198 fix(esp_vfs_console): USB CDC read when non blocking
In non blocking mode, the read function is expected
to return weather data is available for reading or not.

In case data are available but the size does not match
the expected size, the function read should return whatever
data is available.

Previously, the function was returning -1 with errno set
to EWOULDBLOCK even if the size of data in the buffer was
less than the requested size. It would only return the
available data if the size in the buffer was greater or equal
to the requested size.

The implementation of cdcacm_read is modified to return the avilable
data from the buffer even is the size is lesser than the requested
size.
2025-02-06 08:58:44 +01:00
Tomas Rezucha
56620eb23b fix(usb/host): Set SCHED_INFO for all channels
Although the hardware documentation suggests that SCHED_INFO is only used
for periodic channels, empirical evidence shows that omitting this configuration
on non-periodic channels can cause them to freeze.
Therefore, we set this field for all channels to ensure reliable operation.
2025-02-06 08:18:04 +01:00
Astha Verma
25b965deba fix(nimble): Handle nested locks when BT_NIMBLE_DEBUG enabled 2025-02-05 14:49:57 +05:30
Astha Verma
c4a5d869eb Updated README.md by removing unclear lines 2025-02-05 14:17:22 +05:30
morris
4d5a7c9864 Merge branch 'fix/move_spi_lcd_cb_fun_to_iram_v5.3' into 'release/v5.3'
feat(spi_lcd): move callback function to iram (v5.3)

See merge request espressif/esp-idf!36740
2025-02-05 14:56:11 +08:00
Xu Si Yu
6fb839eafc feat(openthread): add an API to set rcp version string 2025-02-05 14:36:06 +08:00
David Cermak
c17f0bb36c fix(esp_eth): Fix test code to unregister event correctly 2025-02-05 07:34:02 +01:00
morris
1de6022c76 Merge branch 'fix/periodic_fs_usb_on_p4_backport_v5.3' into 'release/v5.3'
fix(usb/host): Fixed Full Speed periodic transfers on ESP32-P4 (backport v5.3)

See merge request espressif/esp-idf!36648
2025-02-05 14:18:31 +08:00
Chen Jichang
7aab628ea8 feat(dma): Add helper functions to split aligned buffer
In some cases we will need the dma's buffer to be aligned with specific
requirements. This MR add two helper function to split the unaligned
buffer and merge to the origin buffer. The cost is that each unaligned
buffer requires two stash buffers of spilt alignment size. And this
memory should be managed by callers.
2025-02-05 12:48:25 +08:00
morris
400b1e5d57 Merge branch 'bugfix/fix_i2s_reconfig_slot_issue_v5.3' into 'release/v5.3'
fix(i2s): fixed incorrect logic in slot reconfig (v5.3)

See merge request espressif/esp-idf!36642
2025-02-05 12:32:26 +08:00
Chen Jichang
f6bbf60deb feat(spi_lcd): move callback function to iram
Closes https://github.com/espressif/esp-idf/issues/15160
2025-02-05 11:21:53 +08:00
Jin Cheng
d557699837 fix(bt/controller): fixed missing critical protections on linked-list structure of (e)SCO buffers 2025-02-05 10:24:59 +08:00
Wang Mengyang
72cde9aee5 change(bt): Remove unused state variable for (e)SCO disconnect reason in Bluedroid 2025-02-05 10:08:58 +08:00
Alexey Lapshin
88bbf875bd fix(newlib): fix __atomic_test_and_set to ensure atomicity
Before the change described in
https://gcc.gnu.org/pipermail/gcc-patches/2023-September/631393.html it
appeared that inlining built-in GCC function __atomic_test_and_set() was
incorrect. It resulted in a non-atomic write.
For GCC toolchains which do not have such patch yet, this commit fixes
__atomic_test_and_set to be atomic in IDF's builds.
2025-02-04 15:17:25 +07:00
David Cermak
62be7fea47 fix(esp_event): Fix minor no-ISR post regression
from 15f6775f5d5bd9ee73072e914118024d15b685eb
2025-02-04 09:07:13 +01:00
Alexey Gerenkov
3908e7b7b3 Merge branch 'fix/coredump_test_uart_data_missing_v5.3' into 'release/v5.3'
Fix missing coredump uart data in tests (v5.3)

See merge request espressif/esp-idf!36712
2025-02-03 22:55:07 +08:00
Erhan Kurubas
e9161c62d0 test(coredump): collect all expected uart data first, then process lazily 2025-02-03 15:11:27 +01:00
Rocha Euripedes
2c88dd6b46 Merge branch 'fix/test_app_certificate_v5.3' into 'release/v5.3'
Regenerate certificates for testing (v5.3)

See merge request espressif/esp-idf!36673
2025-01-31 16:00:00 +08:00
Michael (XIAO Xufeng)
0d73471a9d Merge branch 'test/add_cache2phys_xip_tests_v5.3' into 'release/v5.3'
fix(mmap): fixed spi_flash_phys2cache, spi_flash_cache2phys return addr in PSRAM issue (v5.3)

See merge request espressif/esp-idf!33628
2025-01-30 23:08:33 +08:00
Guillaume Souchere
e12090a6c8 fix(esp_event): Handler unregistration by itself issue
when esp_event_handler_unregister_with_internal cannot take
the loop mutex (e.g., when the handler unregisters itself),
create an event with a special base identifier and add it to
the queue of the corresponding loop to postpone the removal
of the handler from the list at a time when the loop mutex can be
successfully taken.
2025-01-30 10:39:20 +01:00
David Čermák
9c7be1d697 Merge branch 'fix/ping_data_race_v5.3' into 'release/v5.3'
fix(lwip): Fix potential data-race in ping tcpip callback (v5.3)

See merge request espressif/esp-idf!36535
2025-01-30 17:34:18 +08:00
Guillaume Souchere
295f691e14 fix(esp_event): Fix event loop profiling in handler_execute function
handler_execute function is looking to match the handler only in the
list of loop events but does not look in the base event handler list
nor the id event handler list. So unless the event handler is
registered to be triggered for all event bases and all event ids of
an event loop, its profiling fields (invoked and time) are not updated
when it is called.

This commit updates the search for the matching handler to also look
in base event list and ID event list.

Closes https://github.com/espressif/esp-idf/issues/15041
2025-01-30 10:33:56 +01:00
Mahavir Jain
2ee980590b Merge branch 'feat/bootloader_nvs_read_encrypted_v5.3' into 'release/v5.3'
fix(esptool_py): NVS partition being incorrectly marked as encrypted by the build system (v5.3)

See merge request espressif/esp-idf!36680
2025-01-30 17:14:36 +08:00
harshal.patil
1318d51dd4
fix(esptool_py): Fix NVS partition being incorrectly marked as encrypted
- The CMake function esptool_py_partition_needs_encryption() in the esptool_py
component used to mark NVS partition as encrypted, instead it should have marked
the NVS keys partition as encrypted.
2025-01-30 12:02:54 +05:30
David Cermak
8da8db7a4e fix(lwip): Fix potential data-race in ping tcpip callback
Need to use tcpip_api_call() instead of tcpip_callback(), since the
former waits for the tcpip task to complete and thus prevents potential
data races with subsequent TCP/IP tasks.
2025-01-29 23:34:27 +08:00
David Čermák
b7d6d7459e Merge branch 'test/bridge_v5.3' into 'release/v5.3'
[network/examples]: Fix build rules to test builds on for all targets (v5.3)

See merge request espressif/esp-idf!36630
2025-01-29 23:22:50 +08:00
Euripedes Rocha
6c83f8a838 fix(mqtt): Regenerate certificates for testing
- Previous fix ommited one of the client certificates by mistaque.
- This regenerates all certificates to clean that up.
2025-01-29 14:04:14 +01:00
Tomas Rezucha
fc39a5b836 refactor(usb): Include supported PHYs information in SoC 2025-01-27 08:07:59 +01:00
Tomas Rezucha
55f5f29517 fix(usb): Fixed missing GPIO drive capability on ESP32-P4
All USB PHYs that share their IOs with GPIOs must set
the GPIO's drive capability to maximum.
2025-01-27 08:07:46 +01:00
Tomas Rezucha
47577b83c5 fix(usb/host): Fixed Full Speed periodic transfers on ESP32-P4
For FS periodic endpoints 'tokens_per_frame' must be set to 8
LL usb_dwc_ll_hctsiz_set_sched_info() function.
2025-01-27 08:07:30 +01:00
laokaiyao
3cb9ab1f1b fix(i2s): fix uninitialize warning for the default macros
Closes https://github.com/espressif/esp-idf/issues/15271
2025-01-27 14:21:31 +08:00
laokaiyao
a1631226d9 fix(i2s): fixed incorrect logic in slot reconfig
Closes https://github.com/espressif/esp-idf/issues/15256
2025-01-27 14:13:19 +08:00
David Cermak
c06e2509f3 fix(network/examples): Fix build rules to test builds on for all targets
Uses wifi defines only if wifi is enabled for this target
2025-01-24 17:01:59 +01:00