Commit Graph

43508 Commits

Author SHA1 Message Date
Roman Leonov
d0f27448ad refactor(usb_host): Made phy and hcd common
fix
2025-03-26 12:49:31 +01:00
Alexey Lapshin
35531c6344 fix(newlib): include missed test for printf 2025-03-26 18:44:12 +07:00
Harshal Patil
a45d713b03 Merge branch 'refactor/unify_bootloader_sha' into 'master'
Unify the bootloader_sha layer

Closes IDF-12704

See merge request espressif/esp-idf!37927
2025-03-26 19:15:25 +08:00
Erhan Kurubas
85a88f33f3 Merge branch 'fix/coredump_uart_checksum_error' into 'master'
Fix/coredump uart checksum error

Closes IDF-12696 and IDFGH-14580

See merge request espressif/esp-idf!38031
2025-03-26 18:54:43 +08:00
Alexey Lapshin
ec68cb3300 feat(newlib): riscv: add CONFIG_LIBC_OPTIMIZED_MISALIGNED_ACCESS config option
This option replaces implementations of functions from ROM:
  - memcpy
  - memcmp
  - memmove
  - str[n]cpy
  - str[n]cmp

The functions used in the firmware will be better optimized for misaligned
memory. Here are some measurements in CPU cycles for 4096-byte buffers:

  memcpy:  28676 -> 4128
  memcmp:  49147 -> 14259
  memmove: 33896 -> 8086
  strcpy:  32771 -> 17313
  strcmp:  32775 -> 13191
2025-03-26 17:27:24 +07:00
Erhan Kurubas
d2c882502d test(coredump): add test to dump dram from uart 2025-03-26 10:00:24 +01:00
Erhan Kurubas
86bffdf23b fix(coredump): make sure consistency with uart data and calculated checksum
Closes https://github.com/espressif/esp-idf-monitor/issues/23
2025-03-26 10:00:12 +01:00
Song Ruo Jing
f3625b0fb0 Merge branch 'refactor/gpio_reset_pin' into 'master'
refactor(gpio): simplified gpio_reset_pin function to not call gpio_configure

Closes IDFGH-14846 and IDFGH-14880

See merge request espressif/esp-idf!37814
2025-03-26 16:56:27 +08:00
Roland Dobai
465ff85d2b Merge branch 'ci/update_copyright_checker' into 'master'
ci: Update the copyright checker version to fix an issue

See merge request espressif/esp-idf!38038
2025-03-26 16:25:52 +08:00
Roland Dobai
ac4f9a5215 ci: Update the copyright checker version to fix an issue 2025-03-26 08:56:46 +01:00
laokaiyao
b834886585 fix(i2s): reset the dma buf_size while allocation failed
Closes https://github.com/espressif/esp-idf/issues/15648
2025-03-26 15:25:39 +08:00
morris
bb4eb3ac8b refactor(rmt): function placement by tx and rx separately 2025-03-26 15:22:05 +08:00
Guillaume Souchere
6ef7ad67d4 Merge branch 'feat/per-task-peak-usage' into 'master'
feat(heap): Add per task peak heap usage feature

Closes IDF-1811 and IDFGH-11277

See merge request espressif/esp-idf!26462
2025-03-26 15:20:04 +08:00
Xu Si Yu
c0ba361334 Merge branch 'fix/fix_ot_set_mac_framecounter' into 'master'
feat(openthread): add a function to ensure monotonically increasing frame counter

See merge request espressif/esp-idf!37363
2025-03-26 15:18:00 +08:00
tarun.kumar
28df32358e fix(wifi): Resolve out-of-bounds memory access in ieee80211w_kde_add 2025-03-26 12:42:14 +05:30
gaoxu
32b7347965 feat(rng): add comment of reserved channel in RNG 2025-03-26 14:52:59 +08:00
Kevin (Lao Kaiyao)
cb1902af19 Merge branch 'refactor/upgrade_i2s_codec_example_dependency' into 'master'
refactor(i2s_es8311): refactor es8311 example

See merge request espressif/esp-idf!37953
2025-03-26 11:27:16 +08:00
igor.masar
5f6155638d fix(usb_host): Fix return code and description
Changed error code from ESP_ERR_INVALID_STATE to ESP_ERR_NOT_FOUND
when the client never opened the device.
Updated function documentation to correctly reflect return values.
2025-03-25 23:00:56 +01:00
laokaiyao
5a0d21a467 refactor(i2s_es8311): remove esp-box bsp support 2025-03-25 19:58:12 +08:00
Jiang Jiang Jian
488e1f88aa Merge branch 'bugfix/separate_the_lr_bit_for_sta_and_softap' into 'master'
fix(wifi/vendor): separate the lr bit in phy mode for station and softAP

Closes IDFGH-8524 and IDFGH-14876

See merge request espressif/esp-idf!37651
2025-03-25 19:32:25 +08:00
Tomas Rezucha
602a777dbd Merge branch 'mock/usb_dev_info' into 'master'
mock(usb): Extend USB mock with usb_host_device_info()

See merge request espressif/esp-idf!37952
2025-03-25 17:52:53 +08:00
Guillaume Souchere
d429b1fdbb feat(examples): Update heap task tracking examples
update example to showcasee the new API of heap task tracking

- Add basic heap task traacking example
- Add advanced example for task tracking
2025-03-25 10:22:30 +01:00
Island
2217fb81c8 Merge branch 'feat/optimize_cble50y24_111' into 'master'
feat(bt/bluedroid): Added BLE eddystone sender example

Closes BLERP-991

See merge request espressif/esp-idf!34317
2025-03-25 16:46:54 +08:00
laokaiyao
92f3faff41 refactor(i2s_es8311): refactor es8311 example 2025-03-25 16:12:38 +08:00
Armando (Dou Yiwen)
84fca56744 Merge branch 'fix/fix_wrong_mpll_freq' into 'master'
psram: fix wrong mpll freq

See merge request espressif/esp-idf!37976
2025-03-25 16:11:17 +08:00
Xu Si Yu
980160935b feat(openthread): add a function to ensure monotonically increasing frame counter 2025-03-25 15:30:09 +08:00
Tomas Rezucha
914d003c7b test(usb): Extend USB mock with usb_host_device_info()
Also provide mocks for CTRL transfers usb_host_transfer_submit_control()
2025-03-25 08:10:30 +01:00
Shen Weilong
990fea687d feat(ble/controller): Added memory boundary check for ESP32-C2 2025-03-25 15:09:00 +08:00
Shen Weilong
11289ffe86 feat(ble/controller): Added memory boundary check for ESP32-C5 2025-03-25 15:08:52 +08:00
Shen Weilong
66f5d3dd80 feat(ble/controller): Added memory boundary check for ESP32-C61 2025-03-25 15:08:18 +08:00
Shen Weilong
12c0cd63d3 feat(ble/controller): Added memory boundary check for ESP32-C6 and ESP32-H2 2025-03-25 15:08:06 +08:00
baohongde
939a153844 feat(bt): added definitions for BR/EDR hci vendor commands and events 2025-03-25 15:07:31 +08:00
chenjianhua
d5664c20ad fix(bt): Update bt lib for ESP32(dc1cd581)
- Remove unused functions in the controller
- Add an SDK config for the minimum size of encryption key
2025-03-25 15:07:31 +08:00
zhiweijian
e07233bc81 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3 (03d0f8a6)
- Remove unused functions in the controller
2025-03-25 15:07:31 +08:00
zhiweijian
a24fdf2892 feat(bt): fixed some doc error and add ocf parameters description 2025-03-25 15:07:31 +08:00
Shen Weilong
3a71bec278 feat(bt): added definitions for bluetooth hci vendor commands and events 2025-03-25 15:07:31 +08:00
zhangyanjiao
db13e44255 fix(wifi): fix the noise floor error on ESP32C5
Closes https://github.com/espressif/esp-idf/issues/15594
2025-03-25 14:04:56 +08:00
zhangyanjiao
aa05ae68e1 fix(wifi/vendor): separate the lr bit in phy mode for station and softAP
Closes https://github.com/espressif/esp-idf/issues/9978
2025-03-25 14:04:51 +08:00
Kevin (Lao Kaiyao)
5b185da014 Merge branch 'bugfix/fix_esp32_touch_example_task_watchdog_issue' into 'master'
fix(legacy_touch): fixed touch read WDT issue on esp32

Closes IDFGH-14920

See merge request espressif/esp-idf!37974
2025-03-25 12:30:59 +08:00
Jiang Jiang Jian
80f172bb44 Merge branch 'feature/softAP_sae_ext_key' into 'master'
feat(wifi): Add SAE-EXT-KEY feature on softAP

See merge request espressif/esp-idf!35637
2025-03-25 10:24:57 +08:00
Marius Vikhammer
d488fb41e6 feat(log): added option for placing log api in flash 2025-03-25 10:07:21 +08:00
Shu Chen
82bd44d6f3 Merge branch 'fix/csl_rx_off_when_idle' into 'master'
fix(openthread): turn off rx for SSED running CSL during idle

See merge request espressif/esp-idf!35968
2025-03-25 09:33:45 +08:00
Myk Melez
aa669fa25d fix(usb_host): Give semaphore on attempted close of non-opened device
If you call *usb_host_device_close()* for a device that isn't open, the function exits early,
without giving back the semaphore it took, which causes any other call that tries to take
that semaphore to hang indefinitely.

Strangely, there's redundant handling of this condition, with two checks in a row that both handle
the case where `_check_client_opened_device(client_obj, dev_addr)` returns `false`:

```c
    HOST_CHECK_FROM_CRIT(_check_client_opened_device(client_obj, dev_addr), ESP_ERR_NOT_FOUND);
    if (!_check_client_opened_device(client_obj, dev_addr)) {
        // Client never opened this device
        ret = ESP_ERR_INVALID_STATE;
        HOST_EXIT_CRITICAL();
        goto exit;
    }
…
exit:
    xSemaphoreGive(p_host_lib_obj->constant.mux_lock);
    return ret;
```

The first line is the one that exits early, as HOST_CHECK_FROM_CRIT returns its second parameter
if its first parameter is false, without giving back the semaphore (although it does exit
the critical section).

The subsequent block handles the exact same case, except that it ensures the semaphore is given
back before returning. Currently, this block is never reached.

Perhaps the first check was added, then someone noticed the issue and added the second check,
but they forgot to remove the first one.

In any case, this PR removes the first check, so the second check can properly handle this case
by giving back the semaphore before returning.

This bug appears to have been present in the initial commit of the USB Host library to the ESP-IDF
repo: accbaee57c

Of course, if you never try to close a non-opened device, then you won't encounter it!
Unfortunately, I have some code that tried to do that, which is how I found the issue.
2025-03-24 21:58:34 +01:00
tarun.kumar
4355fc8fbc feat(wifi): Add SAE-EXT-KEY feature on softAP 2025-03-24 20:04:57 +05:30
Jiang Jiang Jian
13953d5e59 Merge branch 'bugfix/pmf_enabled_sae_query' into 'master'
fix(wifi): SA Query responses not transmitted

Closes WIFIBUG-1030

See merge request espressif/esp-idf!36695
2025-03-24 21:27:38 +08:00
Kapil Gupta
fb75c854ce Merge branch 'bugfix/pmksa_null_check' into 'master'
Draft: fix(wifi): Fix crash when set config is called with changed password

Closes IDFGH-14863 and IDFGH-14926

Closes https://github.com/espressif/esp-idf/issues/15635

See merge request espressif/esp-idf!37840
2025-03-24 21:25:34 +08:00
Guillaume Souchere
daf8f9edb6 feat(heap): Add feature to get peak heap usage
This feature keeps track of the per task peak memory usage.

- Update the heap_task_tracking example to make use of the new feature
Cleanup the implementation:
- multi_heap_get_free_size() is never used, remove it.
- Minor update in heap_caps_update_per_task_info_xx() funcitons.
- Update settting on block owner in heap_caps.c to work with the
get peak usage feature.

- Update heap_caps_update_per_task_info_free() to detect when it
is called to delete the memory allocated for a task TCB. Mark
the corresponding task in the statistic list as deleted.

- Add a Kconfig option dependant on HEAP_TASK_TRACKING being enabled
that force the deletion of the statistics related to deleted task
when set to true.

- In task tracking feature, add a current and peak memory usage
to the heap_stat_t structure to keep track of the current and
peak memory usage of the given task across all heaps.

- Fix missing block owner when allocating memory for heaps_array
in heap_caps_init.

- Keep the original implementation of the task tracking
for backward compatibility reasons.
2025-03-24 12:08:48 +01:00
Roman Leonov
253b0e1f9d Merge branch 'feature/usb_host_hcd_binterval_test_case' into 'master'
feature(hcd): Added test cases to verify intr pipe allocation with all possible bInterval

See merge request espressif/esp-idf!37482
2025-03-24 18:32:12 +08:00
Gao Xu
a33d709b38 Merge branch 'feat/fix_h2_gpio_ll' into 'master'
Fix H2 gpio_num_t to uint32_t on gpio_ll.h

See merge request espressif/esp-idf!37446
2025-03-24 18:10:05 +08:00
Mahavir Jain
8e4cbdfe36 Merge branch 'feat/configurable_mbedtls_sha1' into 'master'
feat(mbedtls): Make mbedtls SHA1 support configurable

See merge request espressif/esp-idf!37795
2025-03-24 17:38:05 +08:00