Commit Graph

45105 Commits

Author SHA1 Message Date
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
Alexey Lapshin
b62c29c231 feat(tools): update gdb version to 16.2_20250324 2025-03-25 08:27:05 +00: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
zlq
33e4e718df fix(esp32c61): fix xtal32k may fail startup issue 2025-03-25 15:07:26 +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
laokaiyao
ea5c074858 fix(touch): fixed touch read WDT issue on esp32
Closes https://github.com/espressif/esp-idf/issues/15629
2025-03-24 17:25:20 +08:00
Sudeep Mohanty
71a79ac0b1 feat(freertos): Add config to move additional functions into Flash
This commit adds a new Kconfig option, viz.,
CONFIG_FREERTOS_PLACE_ISR_FUNCTIONS_INTO_FLASH, which places
additional FreeRTOS functions, such as those which can be called from
and ISR context, into Flash memory. This feature utilizes the Flash auto
suspend/resume feature of the Flash chip.
2025-03-24 09:19:28 +01:00
Li Shuai
689924724f change(esp_hw_support): cpu domain and retention support for esp32h21 2025-03-24 15:50:20 +08:00
Tan Yan Quan
b30b6bd4d3 fix(openthread): add some bugfixes to pass CI pipeline 2025-03-24 15:46:48 +08:00
Jiang Jiang Jian
578c8b8507 Merge branch 'fix/fix_esp32s2_recv_24m_ba_issue' into 'master'
fix(wifi): fix esp32s2 recv 24M BA issue

See merge request espressif/esp-idf!37381
2025-03-24 15:08:06 +08:00
armando
cf524b41a2 fix(psram): fix wrong mpll freq 2025-03-24 15:02:37 +08:00
morris
c567f0f397 Merge branch 'refactor/rmt_split_encoder_files' into 'master'
change(rmt): split rmt encoders into different files

See merge request espressif/esp-idf!37955
2025-03-24 15:00:37 +08:00
Island
aac2e92f14 Merge branch 'feature/ble_5_1_direction_finding_master_20250311' into 'master'
feat: Add Bluetooth LE 5 1 direction finding feature

See merge request espressif/esp-idf!37684
2025-03-24 14:00:57 +08:00
akshat
68a6ce3c2a fix(wifi): Fix occasional dropping of SA Query responses by SoftAP 2025-03-24 11:29:19 +05:30
David Čermák
23c73cdc37 Merge branch 'feat/ppp_server_improve' into 'master'
feat(ppp): Allow config PPP DNS servers for peer (GitHub PR)

Closes IDFGH-14720

See merge request espressif/esp-idf!37461
2025-03-24 13:46:15 +08:00
morris
1877605e59 change(rmt): split rmt encoders into different files 2025-03-24 12:23:26 +08:00
Zhang Shu Xian
720687e698 Merge branch 'docs/add_note_about_twai_instance_install' into 'master'
docs: Add a note about TWAI multiple instances install

Closes DOC-10581

See merge request espressif/esp-idf!37951
2025-03-24 12:04:46 +08:00
morris
e8c48dbd13 Merge branch 'bugfix/usj_wrong_return_value' into 'master'
fix(usb_serial_jtag): wrong return value in usb_serial_jtag_write_bytes

Closes IDFGH-14911

See merge request espressif/esp-idf!37964
2025-03-24 11:46:09 +08:00
Kevin (Lao Kaiyao)
3cbd3914fc Merge branch 'bugfix/add_i2s_dma_buf_alloc_check' into 'master'
fix(i2s): add check for i2s DMA buffer array allocation

Closes IDFGH-14890

See merge request espressif/esp-idf!37916
2025-03-24 11:37:38 +08:00
Marius Vikhammer
e824091650 Merge branch 'feature/esp_intr_flash' into 'master'
feat(intr): added option for placing intr api in flash

Closes IDF-12523

See merge request espressif/esp-idf!37935
2025-03-24 11:29:38 +08:00
Wang Meng Yang
569f97dae5 Merge branch 'bugfix/fix_pbac_free_undef_mem' into 'master'
fix(bt/bluedroid): Fix some bugs in bluedroid

Closes BT-3984

See merge request espressif/esp-idf!37906
2025-03-24 10:44:29 +08:00
Zhang Shu Xian
7709ec0219 Merge branch 'docs/update_cn_translation_for_core_docs' into 'master'
docs: Update CN translation for core docs for new targets

Closes DOC-10577

See merge request espressif/esp-idf!37942
2025-03-24 10:18:38 +08:00
Jonathan Swoboda
f468b1e9e3 fix(esp_eth): Fix order of fields in ETH_ESP32_EMAC_DEFAULT_CONFIG on P4 2025-03-23 20:22:25 -04:00
gaoxu
09dbbe4452 refactor(rng): refactor to use hal/ll apis for c5 2025-03-23 17:07:30 +08:00