Commit Graph

20701 Commits

Author SHA1 Message Date
Abhik Roy
59a06a8ad2 fix: Added check to ensure safe restart of dhcp fine timer 2023-08-24 00:51:36 +10:00
Roshan Bangar
d57466da3c feat(nimble): Added periodic Adv Feature Updates in BLE 5.3 2023-08-23 18:53:51 +05:30
isha.pardikar@espressif.com
db5b50af2c NimBLE: Added support of encrypted advertising data 2023-08-23 18:18:23 +05:30
Jiang Jiang Jian
64926fd137 Merge branch 'doc_5.1/c2_h2_c6' into 'release/v5.1'
c2 h2 c6 headfile re-organized

See merge request espressif/esp-idf!25079
2023-08-23 20:18:31 +08:00
Rahul Tank
4b512c5e7b fix(nimble): Add API to send pcl set rssi vsc 2023-08-23 17:43:22 +05:30
Jiang Jiang Jian
b638cb3335 Merge branch 'bringup/esp32h2_deep_sleep_for_rebase_v5.1' into 'release/v5.1'
esp32h2: support deep_sleep(backport v5.1)

See merge request espressif/esp-idf!24962
2023-08-23 20:12:01 +08:00
Rahul Tank
acc08b9421 feat(mesh): Add support for Duplicate Exception list update VSC for
Nimble
2023-08-23 17:41:18 +05:30
Rahul Tank
6e3c700bf6 Merge branch 'bugfix/handle_NULL_data_periodic_adv_v5.1' into 'release/v5.1'
fix(nimble): Add check to set length only if data is valid in periodic adv (v5.1)

See merge request espressif/esp-idf!25178
2023-08-23 20:09:13 +08:00
Jiang Jiang Jian
4fc363546e Merge branch 'bugfix/netif_default_sta_init_v5.1' into 'release/v5.1'
wifi: Fix default wifi-netif creation to assert if no event loop (v5.1)

See merge request espressif/esp-idf!25344
2023-08-23 19:57:06 +08:00
Jiang Jiang Jian
372a34f6d5 Merge branch 'fix/wifi_wps_pbc_overlap_v5.1' into 'release/v5.1'
fix(wpa_supplicant): Add support to detect PBC overlap in wps registrar mode (Backport v5.1)

See merge request espressif/esp-idf!25440
2023-08-23 19:54:50 +08:00
Jiang Jiang Jian
43d6f90d72 Merge branch 'bugfix/ignore_eapol_nonkey_v5.1' into 'release/v5.1'
Ignore EAPOL non-key frames in EAPOL txdone callback (Backport v5.1)

See merge request espressif/esp-idf!25453
2023-08-23 19:54:14 +08:00
Jiang Jiang Jian
5256c317f9 Merge branch 'bugfix/role_switch_enc_mode_lmp_timeout_v5.1' into 'release/v5.1'
bt: Fix disconnection due to lmp messages not being processed by both sides(v5.1)

See merge request espressif/esp-idf!25202
2023-08-23 19:53:29 +08:00
Jiang Jiang Jian
d00077e5a9 Merge branch 'bugfix/incr_sdp_max_conns_v5.1' into 'release/v5.1'
fix(bt): Increased SDP maximum connections to avoid connection exhausted (v5.1)

See merge request espressif/esp-idf!25429
2023-08-23 19:51:39 +08:00
Armando
71f2f98b60 adc: fixed legacy adc continuous driver dma descriptor not in internal ram issue 2023-08-23 19:44:25 +08:00
Armando
888ccfe0cb adc: added adc filter exhausted allocation test 2023-08-23 19:41:15 +08:00
Armando
628162d71e adc: fix adc filter acquire logic 2023-08-23 19:41:02 +08:00
Alex
1360b5fa83
fix(esp-tls): fix pointer cast and condition for CONFIG_ATECC608A_TCUSTOM
Closes https://github.com/espressif/esp-idf/pull/11923
2023-08-23 15:49:56 +05:30
Mahavir Jain
4d95619595 Merge branch 'fix/mmu_hal_valid_vaddr_check_v5.1' into 'release/v5.1'
fix(hal): Fix the external memory vaddr region validity check (v5.1)

See merge request espressif/esp-idf!25154
2023-08-23 18:17:53 +08:00
Mahavir Jain
10e100f584 Merge branch 'feature/update_mbedtls_v5.1' into 'release/v5.1'
feat(mbedtls): Update to release/v3.4.1 (v5.1)

See merge request espressif/esp-idf!25394
2023-08-23 18:17:20 +08:00
Mahavir Jain
75692c96e2 Merge branch 'feature/support_mbedtls_ecp_fixed_point_configurable_v5.1' into 'release/v5.1'
feat(mbedtls): support ecp fixed-point multiplication configurable (backport v5.1)

See merge request espressif/esp-idf!25286
2023-08-23 18:16:20 +08:00
Mahavir Jain
a1defb4fd9 Merge branch 'feature/wifi_prov_event_security_session_v5.1' into 'release/v5.1'
wifi_prov: Exposed events for secure session establishment and credential mismatch (v5.1)

See merge request espressif/esp-idf!25474
2023-08-23 18:16:07 +08:00
Mahavir Jain
0f849d4c40 Merge branch 'bugfix/secure_ota_without_padding_v5.1' into 'release/v5.1'
fix(secure_ota): secure app verification issue without padding bytes (v5.1)

See merge request espressif/esp-idf!25211
2023-08-23 18:15:30 +08:00
wuzhenghui
c517a15dd2 fix(light_sleep): shouldn't backup uart fifo reg in pd_top light sleep 2023-08-23 18:00:48 +08:00
cjin
fa806d758a ble: move phy enabled/disable to controller enable/disable 2023-08-23 17:56:33 +08:00
Island
6cca4bddd2 Merge branch 'bugfix/esp32c6_heap_corruption_v5.1' into 'release/v5.1'
Bugfix/esp32c6 heap corruption v5.1

See merge request espressif/esp-idf!25333
2023-08-23 17:52:31 +08:00
Aditya Patwardhan
d710a83982 Merge branch 'bugfix/sha_dma_mode_incorrect_result_v5.1' into 'release/v5.1'
fix(sha): DMA mode iteration calculation issue for certain data lengths (v5.1)

See merge request espressif/esp-idf!25127
2023-08-23 17:11:44 +08:00
luomanruo
f35959d7d1 ble: update btlib to f9db7b90, some esp32c2 issues bugfixed 2023-08-23 10:21:20 +08:00
Laukik Hase
a0da805f2b
fix(hal): Fix the external memory vaddr region validity check
- For c6 and h2, the vaddr end calculated was off by 1
  byte.
2023-08-22 15:24:02 +05:30
Laukik Hase
9d905d18bb
wifi_prov: Fix build issue when building only for sec1 or sec2 2023-08-22 15:21:48 +05:30
Laukik Hase
fcb98e5851
wifi_prov: Exposed events for secure session establishment 2023-08-22 15:21:48 +05:30
KonstantinKondrashov
c93310956a refactor(esp_timer): Remove duplicate code and move it to a common file 2023-08-22 17:22:24 +08:00
Alan Fisher
eef3a90871 fix(esp_timer): Fix delay in ISR dispatch callbacks
Set the following alarm before calling the alarm handler.

Closes https://github.com/espressif/esp-idf/pull/11637
Closes https://github.com/espressif/esp-idf/issues/11636
2023-08-22 17:22:24 +08:00
KonstantinKondrashov
7ac7d43541 fix(app_update): Fix CI test_switch_ota by increasing deepsleep
It increases the deepsleep time from 2000 to 20000.
2000 is too small for esp32-s3 chip.
2023-08-22 16:10:49 +08:00
Nachiket Kukade
c05a0b4c50 fix(supplicant): Ignore EAPOL non-key frames in EAPOL txdone callback 2023-08-21 18:06:32 +05:30
Aditya Patwardhan
e088c3766b versions: Update version to 5.1.1 2023-08-21 14:24:40 +05:50
Sarvesh Bodakhe
2791508094 fix(wpa_supplicant): Add support to detect PBC overlap in wps registrar mode 2023-08-21 12:35:50 +05:30
luomanruo
757bd78247 update btlib to f9db7b90, some esp32c2 issues bugfixed 2023-08-21 11:49:14 +08:00
Jin Cheng
3638d265ed fix(bt): Increased SDP maximum connections to avoid connection exhausted 2023-08-21 11:21:56 +08:00
Planck (Lu Zeyu)
e5394440df fix(intr_flags_to_level): fix value returned one more than correct value 2023-08-21 10:08:49 +08:00
chenjianhua
62f5905be2 bluedroid: fixed compile warning when optimize for performance 2023-08-19 12:26:19 +08:00
Jiang Jiang Jian
8d2dbd461f Merge branch 'bugfix/eapol_txdone_cb_issue_v5.1' into 'release/v5.1'
Fix EAPOL Key TxDone callback implementation (Backport v5.1)

See merge request espressif/esp-idf!25381
2023-08-18 14:36:25 +08:00
Harshit Malpani
7eae1e4534
feat(mbedtls): Update to release/v3.4.1 2023-08-17 17:33:22 +05:30
Adam Múdry
c99a036b43 fix(spiffs): SPIFFS print formatter errors out
Closes https://github.com/espressif/esp-idf/issues/11922
2023-08-17 11:46:25 +02:00
Darian Leung
96b312ddde soc: Move revision MAX/MIN static assert to esp_hw_support
Previously, "soc/chip_revision.h" contained a static assert to check that the
CONFIG_ESP_REV_MIN_FULL <= CONFIG_ESP_REV_MAX_FULL. There are two issues with
this assert:

- Contained in a header file, so it is only compiled if the "chip_revision.h"
is included somewhere
- CONFIG_ESP_REV_MIN_FULL and CONFIG_ESP_REV_MAX_FULL are defined in
"esp_hw_support", which is a G0 component. This creates a reverse dependency
of G0 on G1.

This commit moves the static assert "revision.c" in "esp_hw_support".
2023-08-17 15:26:23 +08:00
Darian Leung
c98aa927f6 usb_host: Restrict ESP32-S2 AHB errata workaround to only ECO0 chips 2023-08-17 15:26:23 +08:00
Michael (XIAO Xufeng)
5d78511eac Merge branch 'bugfix/temperature_get_value_negative_v5.11' into 'release/v5.1'
bugfix(temperature_sensor): Fix issue that get the value is negative (backport v5.1)

See merge request espressif/esp-idf!25251
2023-08-17 15:24:29 +08:00
Jiang Jiang Jian
cd2172935d Merge branch 'bugfix/fix_esp32h2_wakeup_pll_enable_access_flash' into 'release/v5.1'
fix(esp_hw_support): fix esp32h2 wakeup process access flash cause stuck on v5.1

See merge request espressif/esp-idf!25379
2023-08-17 11:53:19 +08:00
morris
77b74ab091 Merge branch 'bugfix/spi_bus_unify_defualt_mosi_level_v5.1' into 'release/v5.1'
spi: unify default mosi level on all targets (v5.1)

See merge request espressif/esp-idf!25014
2023-08-17 10:13:05 +08:00
Cao Sen Miao
45288496fb bugfix(temperature_sensor): Fix issue that get the value is negative 2023-08-17 10:06:22 +08:00
Nachiket Kukade
feecbad7db fix(wifi): Fix EAPOL Key TxDone callback implementation
Fix issues arising due to not distinguishing between M2 and M4
TxDone during 4-way handshake. Also fix EAPOL frame rate to lowest
possible rate.
2023-08-16 19:26:22 +05:30
wuzhenghui
d5396e1d84 fix(esp_hw_support): fix esp32h2 wakeup process access flash cause crash 2023-08-16 20:44:16 +08:00
zwl
05e44b1021 ble: Added adv report flow control config on ESP32C6 and ESP32H2 2023-08-16 19:37:09 +08:00
zwl
fb6f00158e ble: fixed heap corruption on esp32c6 and esp32h2 2023-08-16 19:37:03 +08:00
muhaidong
98c39e28c8 fix(wifi): fix disassociation callback miss free key issue 2023-08-15 18:01:43 +08:00
Nebojsa Cvetkovic
075bbb526c twai: twai_driver_install() returns error on interrupt allocation failure
This commit updates twai_driver_install() so that an error is returned when
esp_intr_alloc() fails, instead of aborting.

Closes https://github.com/espressif/esp-idf/pull/11494

[darian@espressif.com: Refactored object allocation and free procedures]
[darian@espressif.com: Updated commit message]
Signed-off-by: Darian Leung <darian@espressif.com>
2023-08-15 03:26:10 +00:00
Adam Múdry
756c61b628 docs(fatfs): Move mentioned APIs to a separate API reference section 2023-08-14 12:44:53 +02:00
movsb
597810bf96 fix(c++): invalid conversion from int to enumeration 2023-08-14 07:49:02 +00:00
David Cermak
67327ed47a fix(wifi): Fix default wifi-netif creation to assert if no event loop
- Added ESP_ERROR_CHECK() checks to `esp_wifi_set_default_wifi_..._handlers()` calls
- Added ESP_ERROR_CHECH() to `esp_netif_attach_wifi_...()` calls
- Updated documentation to reflect the changes

Closes https://github.com/espressif/esp-idf/issues/11580
2023-08-14 09:16:29 +02:00
Mahavir Jain
5e0129c91b fix(secure_ota): secure app verification issue without padding bytes
For the following configuration case:

 - CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME
 - CONFIG_SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
 - CONFIG_SECURE_BOOT_ALLOW_SHORT_APP_PARTITION

verification of the application was failing because the externally
padded bytes were not considered in the hash (checksum) process.

This commit fixes the problem by enabling relevant code for secure OTA
without secure boot case.

Closes https://github.com/espressif/esp-idf/issues/11995
2023-08-14 03:29:44 +00:00
morris
b7aea79cb8 fix(gptimer): hal function placement under wrong condition
timer_hal_capture_and_get_counter_value
should be placed in the IRAM for speed optimization
because the default ISR handler is placed in the IRAM.

Closes https://github.com/espressif/esp-idf/issues/12021
2023-08-14 02:31:16 +00:00
morris
c113507ad7 feat(gptimer): add gptimer linker.lf to control the placement of driver and hal
since the linker placement of the hal functions are controlled by the Kconfig in the driver component,
we should create the linker.lf in the driver component, not in the hal component.
2023-08-14 02:31:16 +00:00
morris
6c0270c788 fix(i80_lcd): reset cs gpio on exit 2023-08-14 02:30:54 +00:00
satish.solanke
5d49509969 Fix the mem corruption 2023-08-11 18:22:58 +00:00
Sudeep Mohanty
6b1292284e fix(lp_i2c): Fixed a bug where the LP_I2C did not send NACK for 16-byte reads
This commit updates the LP_I2C driver used by the LP CPU wherein the
driver did not send out a NACK when we do a read of multiple of the FIFO
depth bytes. This was because the LP I2C controller was configured to
send an ACK when the Rx FIFO reaches the threshold instead of a NACK.
This commit updates the behavior.
2023-08-11 14:43:15 +00:00
Sudeep Mohanty
a9ef76b031 fix(lp_i2c): Fixed a bug where LP I2C write got stuck
This commit fixes a bug where an I2C write got stuck when using the
lp_core_i2c_master_write_read_device() API. This was because the LP I2C
HW was not programmed with an END condition and therefore did not know
the end of a transaction.

Closes: https://github.com/espressif/esp-idf/issues/11958
2023-08-11 14:43:15 +00:00
Sudeep Mohanty
ee8adce5ea fix(lp_i2c): Fixed incorrect clock setting for LP_I2C
The LP_I2C clock setting was incorrect and a lower frequency value was
being set during initialization. This commit fixes the behavior.
2023-08-11 14:43:15 +00:00
Jiang Guang Ming
e9a1a7add5 feat(mbedtls): support ecp fixed-point multiplication configurable 2023-08-11 16:40:38 +08:00
wuzhenghui
94d129df76 fix(light_sleep): save vddsdio_config before lightsleep 2023-08-04 12:04:51 +08:00
wuzhenghui
aaf04f514f fix(esp_hw_support): manage i2c_ana_mst clock witch modem clock driver 2023-08-04 12:04:40 +08:00
xiongweichao
3b48ccb343 fix(bt/controller): Fix disconnection due to lmp messages not being processed by both sides
The master sent lmp_enc_mode_req, and the slave sent lmp_switch_req.
However, both sides failed to handle the LMP message, resulting in LMP timeout.
2023-08-04 10:59:25 +08:00
morris
b68519cb17 feat(gptimer): support set interrupt priority
Related forum post: https://esp32.com/viewtopic.php?f=13&t=34959
2023-08-04 10:20:07 +08:00
Jiang Jiang Jian
6ec52679c3 Merge branch 'bugfix/action_tx_sleep_fix_v5.1' into 'release/v5.1'
Trigger null data frame TX before going offchannel.(v5.1)

See merge request espressif/esp-idf!25095
2023-08-04 08:36:16 +08:00
Jiang Jiang Jian
2c196590d3 Merge branch 'bugfix/vtasksteptick_assert_failed_issue_v5.1' into 'release/v5.1'
backport v5.1:  fix the issue of esp32c6 enable light sleep, vTaskStepTick assert failed caused by wifi baseband sleep retention linked list

See merge request espressif/esp-idf!25147
2023-08-04 02:37:01 +08:00
Nachiket Kukade
96934613fb fix(wifi): Fix error propagation while initiating FTM 2023-08-03 19:55:55 +08:00
Shyamal Khachane
c97181ad5e fix(esp_wifi): Fix some OWE issues
1. Allow flow of traffic after 4 way handshake is completed
2. Fix beacon timeout issue in transition mode
2023-08-03 19:55:15 +08:00
Rahul Tank
b4df07185c fix (nimble): Add check to set length only if data is valid in periodic adv 2023-08-03 14:44:07 +05:30
Geng Yuchao
de0e027bd1 fix(ble): Fix compile issue when disable duplicate config option in kconfig. 2023-08-03 17:07:02 +08:00
Lou Tianhao
830a627362 remove(pm/deep_sleep): enable CI test for esp32h2 deepsleep 2023-08-03 16:46:55 +08:00
Lou Tianhao
5859b83232 docs(pm/sleep): rewrite_all_low_to_any_low_when_not_esp32 2023-08-03 16:46:55 +08:00
Lou Tianhao
badef66538 change(pm/deepsleep): rewrite the option all low as any low for esp32s2, esp32s3, esp32c6 and esp32h2 2023-08-03 16:46:55 +08:00
Lou Tianhao
7c1e797008 change(pm/deepsleep): remove disable rtcio before hold it when ext1 wakeup 2023-08-03 16:46:55 +08:00
Lou Tianhao
b27e57db7b feat(pm/deepsleep): Support EXT1 wakeup for esp32h2 deep_sleep 2023-08-03 16:46:55 +08:00
Song Ruo Jing
6768f098dc change(driver/rtcio): Describe RTCIO CAPS with more accurate note 2023-08-03 16:46:55 +08:00
Lou Tianhao
8833c2bc87 change(pm/deepsleep): Update deep_sleep pmu analog parameter for esp32h2 2023-08-03 16:46:54 +08:00
Lou Tianhao
4bc5e24f82 feat(pm/deepsleep): Support deep_sleep example and deep_sleep_wake_stub example for esp32h2 2023-08-03 16:46:54 +08:00
Michael (XIAO Xufeng)
6dab947f68 spiram: Support configure CLK onto the same pin as flash for ESP32-D0WD
When using PSRAM of rev0, the Flash and PSRAM should use different clock pins. But if using newer PSRAM, this is not necesary. This MR fixed the issue that allocating CLK of PSRAM to the same pin as Flash may crash.
2023-08-03 15:44:22 +08:00
Jiang Jiang Jian
602d021263 Merge branch 'ble_mesh/esp32c6_BLEQABR23-266v5.1' into 'release/v5.1'
ble mesh: stack: return error when scanning failed to be enabled(v5.1)

See merge request espressif/esp-idf!24776
2023-08-03 11:15:42 +08:00
Wu Meng Shi
d6c18ad4c5 ble mesh: stack: return error when scanning failed to be enabled(v5.1) 2023-08-03 11:15:41 +08:00
Jiang Jiang Jian
a56ea11f91 Merge branch 'bugfix/fix_gpio_driver_calloc_v5.1' into 'release/v5.1'
fix(gpio): fix potential crash when processing gpio isr (v5.1)

See merge request espressif/esp-idf!24901
2023-08-03 11:13:47 +08:00
liuning
761af9869f fix(esp_wifi): fix no mac retention at wifi start 2023-08-03 10:54:31 +08:00
Kapil Gupta
d73f61ebc9 fix(wifi): Prevent PMF config overwritten by tx_cb 2023-08-03 10:54:31 +08:00
xueyunfei
bba48079a2 Fix(esp_wifi):revert send wake up and sleep null between scaning 2023-08-03 10:54:31 +08:00
zhangyanjiao
6eb872f7d2 fix(wifi): fix some wifi bugs
1. fix the RX error when softAP and ESP-NOW both encrypted
2.Trigger null data frame TX before offchan channel switch.
2023-08-03 10:54:05 +08:00
Li Shuai
827d863865 fix(wifi/phy): fix the issue of vTaskStepTick assert failed caused by wifi baseband retention linked list 2023-08-02 19:18:22 +08:00
Mahavir Jain
bef0eaf2c7 ci(test): add SHA DMA mode test for large data in PSRAM
Covers a test scenario described in following issue:
https://github.com/espressif/esp-idf/issues/11915
2023-08-02 04:48:40 +00:00
Mahavir Jain
b966103800 fix(sha): DMA mode iteration calculation issue for certain data lengths
SHA hardware DMA mode calculation had off-by-one error for specific
input lengths. This was causing last chunk of the input data not being
fed to the hardware accelerator and hence resulting in an incorrect
final result.

Closes: https://github.com/espressif/esp-idf/issues/11915
2023-08-02 04:48:40 +00:00
Jiang Jiang Jian
afcf3e261b Merge branch 'bugfix/fix_cache_data_mem_corrupt_after_sleep_v5.1' into 'release/v5.1'
fix(lightsleep): Suspend cache before goto sleep to avoid cache load wrong data (backport v5.1)

See merge request espressif/esp-idf!25087
2023-08-02 11:21:33 +08:00
Jiang Jiang Jian
01c6fc6511 Merge branch 'bugfix/minor_enterprise_fixes_v5.1' into 'release/v5.1'
Drop Eapol msg if EAP success is not processed (Backport v5.1)

See merge request espressif/esp-idf!25065
2023-08-02 10:48:56 +08:00
Jiang Jiang Jian
4cb955461f Merge branch 'backport/openthread_feature_to_v51' into 'release/v5.1'
Openthread: backport some features

See merge request espressif/esp-idf!25113
2023-08-02 10:47:32 +08:00
Jiang Jiang Jian
adcc697082 Merge branch 'bugfix/neighbour_report_crash_v51' into 'release/v5.1'
Fix crash in RRM neighbour report requests.(v5.1)

See merge request espressif/esp-idf!25114
2023-08-02 10:13:40 +08:00
Jiang Jiang Jian
727f7cbb3a Merge branch 'bugfix/sync_master_esp32c6_and_esp32h2_uart_ll_inline_attr' into 'release/v5.1'
fix(hal): sync esp32c6 and esp32h2 uart ll inline attr from master  to v5.1

See merge request espressif/esp-idf!24961
2023-08-01 16:18:16 +08:00
jgujarathi
0ba37a2b85 fix(rrm) : Fix crash in RRM neighbour report requests.
Fix crash in sending new RRM neighbour report requests by removing
the call to neighbour report request timeout callback in case of
already ongoing neighbour report request timer.
2023-08-01 13:12:00 +05:30
zhangwenxu
12f1c165e3 feat(thread): update openthread lib 2023-08-01 14:59:07 +08:00
Xu Si Yu
31212f284a feat(openthread): enable openthread border agent id support 2023-08-01 14:58:57 +08:00
Jiang Jiang Jian
4fc329fc10 Merge branch 'bugfix/mbedtls_sha_test_fail_when_run_twice_v5.1' into 'release/v5.1'
fix(mbedtls): sha test will fail when run twice (backport v5.1)

See merge request espressif/esp-idf!24827
2023-08-01 10:57:25 +08:00
Jiang Jiang Jian
a4d64dab30 Merge branch 'backport/fix_ieee802154_state' into 'release/v5.1'
ieee802154: fix ieee802154 sleep state (backport v5.1)

See merge request espressif/esp-idf!24841
2023-08-01 10:55:51 +08:00
Jiang Jiang Jian
2f9bb7937a Merge branch 'bugfix/remove__warning_for_rc_fast_calibration_h2_v5.1' into 'release/v5.1'
remove(clk): remove warning log if RC_FAST clock calibration is needed on esp32h2 (v5.1)

See merge request espressif/esp-idf!25075
2023-08-01 10:53:46 +08:00
Jiang Jiang Jian
fbfdd97343 Merge branch 'bugfix/esp32h2_revision_config_prompt_v5.1' into 'release/v5.1'
fix(esp32h2): correct typo in chip revision prompt (v5.1)

See merge request espressif/esp-idf!25024
2023-08-01 10:53:26 +08:00
Jiang Jiang Jian
5dfbd1eb8d Merge branch 'bugfix/malloc_free_removal_v5.1' into 'release/v5.1'
change(esp_wifi): Remove direct call of malloc() and free() (v5.1)

See merge request espressif/esp-idf!24932
2023-08-01 10:53:10 +08:00
wuzhenghui
58a01eb10b fix(hal): sync esp32c6 & esp32h2 uart_ll inline attr from master 2023-08-01 02:32:55 +00:00
wuzhenghui
c5703cff8d fix(lightsleep): fix access pu_cfg after sleep wake wakeup which is linked to flash 2023-07-31 21:41:56 +08:00
wanglai@espressif.com
2b8e8e832a fix(bt/bqb): Modify BQB related configurations 2023-07-31 15:28:33 +08:00
wanglai@espressif.com
f05c0a36e8 feat(bt): Add BQB enabling and rfcomm msc command sending support
1: add the CONFIG_BT_BQB_ENABLED for some functions of bqb test.
2: add bqb_rfc_send_msc_cmd function to send rfcomm msc command with
   only address arg input.
2023-07-31 15:28:20 +08:00
wuzhenghui
1acc14bf72 fix(lightsleep): suspend cache before goto sleep to avoid cache load wrong data after spi io isolation 2023-07-31 14:52:03 +08:00
wanlei
bb845e1841 cache: refactor cache_utils into cache_hal instade 2023-07-31 14:52:03 +08:00
wanlei
45eb0b6271 cache: fix cache suspended/resumed twice on S3 2023-07-31 14:52:03 +08:00
luomanruo
dc4731101d c2 h2 c6 headfile re-organized
c2 c6 h2 cfg_t and addr_t documented

comments for controller_enable
2023-07-31 12:41:52 +08:00
Rahul Tank
56eef9151f fix(nimble): Update connection type in reattempt connection code
Added change to set connection type correctly and clear array when it is
    full in reattempt connection flow
2023-07-31 09:30:45 +05:30
Song Ruo Jing
59672cee17 remove(clk): remove warning log if RC_FAST clock calibration is needed on esp32h2 2023-07-31 10:48:55 +08:00
Jiang Jiang Jian
d83fe16c93 Merge branch 'bugfix/revert_26mhz_esp32c2_bad_apb_clock_fix' into 'release/v5.1'
Revert "fix(soc): fix wrong freq definition for 26Mhz version esp32c2 soc" (v5.1)

See merge request espressif/esp-idf!24983
2023-07-31 10:26:58 +08:00
Jiang Jiang Jian
d026b92c75 Merge branch 'bugfix/fix_c6_wrong_pwdet_register_v5.1' into 'release/v5.1'
pwdet: fix pwdet wrong base address on c6 h2 (v5.1)

See merge request espressif/esp-idf!25025
2023-07-31 10:22:57 +08:00
Jiang Jiang Jian
b98bcd75aa Merge branch 'bugfix/backport_wifi_fixes_v5.1' into 'release/v5.1'
Backport some wifi fixes to v5.1

See merge request espressif/esp-idf!24948
2023-07-31 10:22:14 +08:00
Jiang Jiang Jian
a28ef8df5b Merge branch 'bugfix/cache_writeback_bug_v5.1' into 'release/v5.1'
esp_rom: patch Cache_WriteBack_Addr (backport v5.1)

See merge request espressif/esp-idf!24941
2023-07-31 10:17:10 +08:00
Jiang Jiang Jian
9fa9621a8f Merge branch 'bugfix/enable_i2c_master_clock_in_bbpll_configure_v5.1' into 'release/v5.1'
fix(rtc_clk): fix i2c master clock missing in bbpll configure (backport v5.1)

See merge request espressif/esp-idf!24852
2023-07-31 10:16:20 +08:00
Mahavir Jain
a0d882c25e fix(esp32h2): correct typo in chip revision prompt 2023-07-28 13:45:28 +00:00
Shyamal Khachane
c612f36786 fix(esp_wifi): Drop Eapol msg if EAP success is not processed 2023-07-28 15:11:44 +05:30
Island
4cf31c3194 Merge branch 'feature/services_health_therm_v5.1' into 'release/v5.1'
NimBLE: Added health thermometer profile (v5.1)

See merge request espressif/esp-idf!24830
2023-07-28 15:37:35 +08:00
Island
6fb014d535 Merge branch 'feature/add_ble_multi_conn_example_with_vs_hci_5.1' into 'release/v5.1'
feat(ble): Added ble examples for multiple connections

See merge request espressif/esp-idf!24814
2023-07-28 15:35:54 +08:00
Armando
fcb3ae32cb fix(pwdet): fix pwdet wrong base address on c6 h2 2023-07-27 12:30:44 +08:00
Song Ruo Jing
125014d242 fix(gpio): fix potential crash when processing gpio isr
If CONFIG_SPIRAM_USE_MALLOC is enabled, and cache is disabled when GPIO ISR is triggered,
it would lead to Guru Meditation Error due to "Cache disabled but cached memory region accessed".

Closes https://github.com/espressif/esp-idf/issues/11876
2023-07-26 12:42:11 +00:00
wanlei
7a30edc412 fix(all): unify default mosi level to low on all targets 2023-07-26 20:34:25 +08:00
zhanghaipeng
b1799a7042 fix(bt): Fix bug with address resolution enabling during non-connected activities 2023-07-26 16:36:19 +08:00
zhanghaipeng
063e62f30a docs(bt): Organize header files for esp32c3 and esp32s3 2023-07-26 16:36:08 +08:00
zhanghaipeng
d01fa70ba8 fix(bt): Fix ble periodic advertising data length 0 error
- Fixed issues about data length 0 when set ext adv data,ext scan rsp data and periodic adv data
2023-07-26 16:35:57 +08:00
wuzhenghui
5f6f20ea30 fix(esp_pm): fix bad apb_max_freq for 26mhz esp32c2 2023-07-25 13:54:24 +08:00
wuzhenghui
e0e4642ff8 Revert "fix(esp_pm): Constrains the minimum frequency of APB_MAX when the modem is working"
This reverts commit 9158cba846.
2023-07-25 13:51:37 +08:00
wuzhenghui
c64231564a Revert "fix(soc): fix wrong freq definition for 26Mhz version esp32c2 soc"
This reverts commit d2fb32ed70.
2023-07-25 13:51:32 +08:00
luomanruo
c624b0a45e esp_rom_printf 2023-07-24 21:45:11 +08:00
luomanruo
99c0715962 ble update for doc: bugfix for esp32c6 and esp32h2 2023-07-24 10:59:19 +08:00
Kapil Gupta
020eba74c6 change(esp_wifi): Remove direct call of malloc() and free() 2023-07-22 07:13:53 +00:00
luomanruo
14819cb409 ble update: bugfix for esp32c6 and esp32h2 2023-07-21 20:25:01 +08:00
Jiang Guang Ming
de15b6f819 fix(mbedtls): sha test will fail when run twice 2023-07-21 12:06:26 +00:00
xiaqilin
b8bbd90ad4 fix(ieee802154): fix ieee802154 sleep state 2023-07-21 11:03:23 +00:00
wuzhenghui
9df77e015a fix(rtc_clk): fix i2c master clock missing in bbpll configure 2023-07-21 11:01:56 +00:00
Shyamal Khachane
dbe7c4a78d fix(esp_wifi): Backport some wifi fixes
1. Fix memory leak caused by assoc IE and retry timer
2. Discard commit frame received at confirmed state in SAE
3. Ignore immediate assoc req received from the station while we are
processing the older one. Fix regression caused by 4cb4faa9
2023-07-21 15:06:09 +05:30
gaoxiaojie
aff298be18 fix(cache): no longer use freeze in esp_cache_msync
Writeback and invalidation don't need cache to be frozen first
2023-07-21 17:19:11 +08:00
isha.pardikar@espressif.com
3b8853b3c0 NimBLE: Added health thermometer profile 2023-07-21 05:36:32 +00:00
morris
c8ec729252 feat(mcpwm): support open drain output for generator IO
Closes https://github.com/espressif/esp-idf/issues/11877
2023-07-21 05:08:20 +00:00
Anne Brondijk
c818ddd282 feat(mcpwm): Allow for pull up/down to be configurable on generators 2023-07-21 05:08:20 +00:00
gaoxiaojie
38d54b4b62 fix(esp32s3): patch Cache_WriteBack_Addr api
Need to ensure that the cacheline being written back will not be
accessed during the write back process.
2023-07-21 11:44:56 +08:00
Darian Leung
ff8c4f79d2 usb_host: Run formatting script 2023-07-15 12:56:45 +02:00
Darian Leung
a3e4e9c772 usb_host: Fix spelling errors 2023-07-15 12:56:45 +02:00
Darian Leung
b891aa0443 usb_host: Refactor USBH and USB Host Library calls to HCD
This commit refactors the USBH and the USB Host Library in the following ways:

- USBH now presents an abstraction of an endpoint (via usbh_ep_handle_t)
    - Added separate functions to enqueue/dequeue URBs to a particular endpoint
    - USB Host Library no longer calls HCD API directly. Calls USBH endpoint API
      instead.
- Renamed "notif_cb" to "proc_req_cb" (Processing Request Callback)
    - This is to avoid confusion with FreerTOS task notifications and Host
      Library client event notifications.
    - The processing functions of each layer (i.e., "xxx_process()") request
      calls via the "proc_req_cb"
    - The main handling function (i.e., usb_host_lib_handle_events()) is
      responsible for calling the required "xxx_process()" of each layer
2023-07-15 12:56:45 +02:00
Jiang Jiang Jian
b530d768e6 Merge branch 'fix/esp_aes_return_values_v5.1' into 'release/v5.1'
fix(mbedtls): fix return values of esp-aes APIs (v5.1)

See merge request espressif/esp-idf!24804
2023-07-15 12:24:25 +08:00
Jiang Jiang Jian
d84e6c3dda Merge branch 'bugfix/fix_esp32c2_wifi_works_on_too_low_apb_clk_v5.1' into 'release/v5.1'
fix(esp_pm): fix esp32c2 modem works on too low apb clk (backport v5.1)

See merge request espressif/esp-idf!24811
2023-07-15 12:18:09 +08:00
Jiang Jiang Jian
077cb8d150 Merge branch 'feature/usb_host_interface_claim_debug_info_v5.1' into 'release/v5.1'
USB Host: better debugging information during usb_host_interface_claim() (backport v5.1)

See merge request espressif/esp-idf!23456
2023-07-15 08:37:32 +08:00
Jiang Jiang Jian
b21005487d Merge branch 'bugfix/fix_sleep_cache_spi_safe_issues_backport_v5.1' into 'release/v5.1'
Power Management: fix cache spi flash related issues in sleep process (backport v5.1)

See merge request espressif/esp-idf!24812
2023-07-15 08:36:46 +08:00
wuzhenghui
d2fb32ed70 fix(soc): fix wrong freq definition for 26Mhz version esp32c2 soc 2023-07-15 01:57:07 +08:00
wuzhenghui
9158cba846 fix(esp_pm): Constrains the minimum frequency of APB_MAX when the modem is working 2023-07-15 01:56:55 +08:00
wuzhenghui
16d849b95e fix(esp_pm): fix flash access after light sleep wakeup 2023-07-15 01:41:03 +08:00
harshal.patil
34dccf840e refactor(mbedtls): refactored the return values check in some esp-aes APIs 2023-07-14 20:51:47 +05:30
Mahavir Jain
77f6f72b83 Merge branch 'fix/mbedtls_internal_shaX_process_api_port_v5.1' into 'release/v5.1'
fix(mbedtls): Fix the port for mbedtls_internal_shaX_process api (v5.1)

See merge request espressif/esp-idf!24809
2023-07-14 22:53:13 +08:00
Shen Weilong
2d1544b863 feat(ble): Added ble examples for multiple connections 2023-07-14 19:01:11 +08:00
Jiang Jiang Jian
82fde1e823 Merge branch 'backport_v5.1' into 'release/v5.1'
fix(bt): Fix the issue of not printing the Bluetooth MAC address for ESP32(backport v5.1)

See merge request espressif/esp-idf!24780
2023-07-14 18:17:32 +08:00
wuzhenghui
ec35c2ab60 fix(esp_pm): put vddsdio configure api always in iram if pd_flash is enabled
- Put vddsdio configure api always in iram if pd_flash is enabled to ensure access flash at flash unavailable time
2023-07-14 17:48:27 +08:00
wuzhenghui
f69ea24d15 fix(esp_pm): wait spi bus idle before hold CS pin
- Wait for spi bus idle before holding CS pin to prevent hold selected state during sleep
2023-07-14 17:48:20 +08:00
Mahavir Jain
bba66a1566 Merge branch 'fix/esp_ptr_check_sign_compare_v5.1' into 'release/v5.1'
fix(esp_hw_support): Fix different signed comparison in `esp_ptr_in_drom` (v5.1)

See merge request espressif/esp-idf!24798
2023-07-14 17:27:54 +08:00
Island
4f37aeb747 Merge branch 'update/ble_mesh_debug_log_level_update_v5.1' into 'release/v5.1'
update(ble_mesh: stack): Update provisioning bearer check debug log to INFO level (v5.1)

See merge request espressif/esp-idf!24769
2023-07-14 16:56:19 +08:00
harshal.patil
895d86621b fix(mbedtls): Fixed the transmission of return values of the esp-aes APIs
- Earlier, some intermediate return values were not stored and returned,
thus incorrect return values used to get transmitted to the upper layer of APIs.

- Also, zeroised the output buffer in case of error condition.
2023-07-14 14:20:47 +05:30
harshal.patil
8692da51a0 fix(mbedtls): Fix the port for the mbedtls_internal_shaX_process API
- Also added the fix to update intermediate SHA state in the mbedtls_shaX_update API
2023-07-14 14:20:20 +05:30
Jiang Jiang Jian
e9a3a3eeea Merge branch 'bugfix/fix_some_wifi_bugs_24063_to_v5.1' into 'release/v5.1'
fix(wifi): Backport some wifi bugs 24063 to v5.1(Backport v5.1)

See merge request espressif/esp-idf!24794
2023-07-14 16:41:49 +08:00
Jiang Jiang Jian
fa95b46a0d Merge branch 'bugfix/fix_miss_annotate_ld_function_issue_v5.1' into 'release/v5.1'
fix(wifi): missed annotate ld function from txop fix(Backport v5.1)

See merge request espressif/esp-idf!24800
2023-07-14 16:41:04 +08:00
Jiang Jiang Jian
da8b9ad59d Merge branch 'bugfix/esp32c6_eco1_ble_lpclk_main_xtal_v5.1' into 'release/v5.1'
backport v5.1:  support 40 MHz XTAL as BLE low power clock source of esp32c6 eco1

See merge request espressif/esp-idf!24789
2023-07-14 16:34:09 +08:00
Shu Chen
1296991b2f Merge branch 'backport/fix_br_issues_of_cert' into 'release/v5.1'
OpenThread: fix issues found in certification(backport v5.1)

See merge request espressif/esp-idf!24079
2023-07-14 15:01:07 +08:00
muhaidong
727a8cdb9e fix(wifi): missed annotate ld function from txop fix 2023-07-14 14:04:14 +08:00
Laukik Hase
8abdb33072
fix(esp_hw_support): Fix different signed comparison in esp_ptr_in_drom
- Closes https://github.com/espressif/esp-idf/issues/11653
- Closes https://github.com/espressif/esp-idf/issues/11865
2023-07-14 10:52:19 +05:30
Shu Chen
fabe338a7a Merge branch 'backport/enrich_ieee802154_assert_info' into 'release/v5.1'
ieee802154: add debug feature for driver (Backport v5.1)

See merge request espressif/esp-idf!24793
2023-07-14 13:17:32 +08:00
Jiang Jiang Jian
7148d826eb Merge branch 'bugfix/wifi_bcn_timeout_m_f_probe_req_l0_v5.1' into 'release/v5.1'
backport v5.1: fix bcn_timeout and disconnect with error code 201, m f probe req l=0 issue

See merge request espressif/esp-idf!24781
2023-07-14 11:35:31 +08:00
cjin
5ec30e6fc2 ble : remove extra retention cnt upon deinit temporarily 2023-07-14 11:07:56 +08:00
cjin
6c62d13550 ble: support eco1 BLE light sleep 2023-07-14 11:07:49 +08:00
Li Shuai
ee3452d410 light sleep: enable system clock in PMU HP sleep state when selecting a 40 MHz XTAL as low power clock source of ble 2023-07-14 11:07:41 +08:00
Li Shuai
78683c7c33 modem clock: provide a protected wifipwr clock enable/disable interface to fix the bug of selecting xtal as the low power clock source for ble 2023-07-14 11:07:34 +08:00
Li Shuai
a98db6dbd3 modem clock: gatable clock interface which can gate or ungate modem clock domain 2023-07-14 11:07:27 +08:00
Li Shuai
6a5d4e40d2 Wi-Fi/power save: fix the some mac issues of wifi power save
Some APs are configured to hide the SSID, the length field of the SSID element
in the Beacon frame is set to 0. This can cause incorrect parsing of the Beacon
by the Wi-Fi MAC hardware.

Some APs send two beacon frames with different BSSID in a TBTT cycle. After
correctly parsing the beacon of the associated AP, it continue to receive the
other beacon frame, which will cause the MAC to remain in a wait RX/TXING
state, blocking the Wi-Fi go to sleep.
2023-07-14 10:51:47 +08:00
xuxiao
395ad3edc0 feat(wifi): itwt support itwt wake duration unit 2023-07-14 10:51:26 +08:00
zhangwenxu
6585c521b3 feat(openthread): openthread upstream update 2023-07-14 10:15:59 +08:00
Xu Si Yu
cb29bfa6b4 openthread: forbid otPlatUdp to connect to address 0.0.0.0 and port 0 2023-07-14 09:54:52 +08:00
Xu Si Yu
dd0afffde3 openthread cli: set dua feature optional 2023-07-14 09:54:52 +08:00
Xu Si Yu
77c60765ca openthread rcp: set link metrics feature optional 2023-07-14 09:54:52 +08:00
Aditya Patwardhan
320f8ebe7d Merge branch 'fix/mpi_incorrect_assert_v5.1' into 'release/v5.1'
fix(mbedtls): Fix incorrect assert for H/W MPI operations (v5.1)

See merge request espressif/esp-idf!24784
2023-07-14 09:49:01 +08:00
Jiang Jiang Jian
7d6a86062b Merge branch 'bugfix/multiple_btm_rrm_task_v51' into 'release/v5.1'
Fix race conditions in btm task deletion(v5.1)

See merge request espressif/esp-idf!24764
2023-07-14 08:10:39 +08:00
Jiang Jiang Jian
bf4e212950 Merge branch 'feature/improve_pd_vddsido_help_doc_v5.1' into 'release/v5.1'
Power Management: improve ESP_SLEEP_PSRAM/FLASH_LEAKAGE_WORKAROUND help doc (backport v5.1)

See merge request espressif/esp-idf!24758
2023-07-14 06:38:02 +08:00
Jiang Jiang Jian
d7604b580a Merge branch 'bugfix/fix_some_wifi_bugs_230713_v5.1' into 'release/v5.1'
Wifi: Backport some wifi bugs 230713 to v5.1(Backport v5.1)

See merge request espressif/esp-idf!24753
2023-07-14 03:33:03 +08:00
zhangwenxu
77876e5bea ieee802154: add debug feature for driver 2023-07-14 03:13:04 +08:00
Jiang Jiang Jian
d0a2424151 Merge branch 'bugfix/sae_crypto_optimization_esp32_v5.1' into 'release/v5.1'
esp_wifi: Optimize sae crypto operations for esp32 (v5.1)

See merge request espressif/esp-idf!24760
2023-07-14 00:12:21 +08:00
Jiang Jiang Jian
aa5b7e0100 Merge branch 'bugfix/fix_some_bluedroid_bugs_v5.1' into 'release/v5.1'
Fixed some bluedroid bugs( backport v5.1)

See merge request espressif/esp-idf!24748
2023-07-14 00:11:43 +08:00
morris
f195d48764 Merge branch 'bugfix/fix_s3_adc1_wrong_clk_div_v5.1' into 'release/v5.1'
adc: fix adc oneshot mode clk div issue on esp32, esp32s2 and esp32s3 (v5.1)

See merge request espressif/esp-idf!24743
2023-07-13 21:40:54 +08:00
Laukik Hase
8e25eb1e08
fix(mbedtls): Fix incorrect assert for H/W MPI operations
- Closes https://github.com/espressif/esp-idf/issues/11850
2023-07-13 16:24:44 +05:30
morris
aba746cdc2 Merge branch 'refactor/s_adc_tsen_enabled_logic_v5.1' into 'release/v5.1'
refactor(adc): maintain s_adc_tsen_enabled in adc driver (v5.1)

See merge request espressif/esp-idf!24629
2023-07-13 18:49:01 +08:00
Roman Leonov
b188085ce8 usb_host: better debugging information during hcd_pipe_alloc() when usb_host_interface_claim() is being fulfiled. 2023-07-13 12:42:00 +02:00
morris
9021fab579 Merge branch 'feature/use_esp_rom_delay_us_to_test_the_accuracy_of_gptimer_v5.1' into 'release/v5.1'
refactor(driver/gptimer): replace vTaskDelay with esp_rom_delay_us in test_apps(v5.1)

See merge request espressif/esp-idf!24724
2023-07-13 17:38:40 +08:00
Jiang Jiang Jian
ae5f8dc139 Merge branch 'bugfix/fix_sometimes_sta_can_not_get_ip_from_softap_issue_v5.1' into 'release/v5.1'
lower the dhcp discover and request retry backoff time (Backport v5.1)

See merge request espressif/esp-idf!24742
2023-07-13 17:09:04 +08:00
Li Shuai
958ae62197 power save: fix bcn_timeout and disconnect with error code 201, m f probe req l=0 issue 2023-07-13 17:02:50 +08:00
zhanghaipeng
2b1269d4fb fix(bt): Fix the issue of not printing the Bluetooth MAC address for ESP32
- Add a log statement to print the Bluetooth MAC address
2023-07-13 16:43:37 +08:00
zhanghaipeng
124cce0de3 fix(bt): Fix ble advertising data length 0 error
- Fixed an issue where the BLE advertisement length of 0 was causing an error
2023-07-13 16:43:37 +08:00
Shu Chen
78e641a4b0 Merge branch 'backport/bugfix_openthread_sleep_esp32s3_build' into 'release/v5.1'
fix(openthread): call sleep api only in native radio (Backport v5.1)

See merge request espressif/esp-idf!24754
2023-07-13 16:38:36 +08:00
Liu Linyan
f718d26d31 update(ble_mesh: stack): Update provisioning bearer check debug log to INFO level 2023-07-13 14:38:23 +08:00
morris
cfa70abe0e Merge branch 'bugfix/fix_adc_cali_workround_wrong_range_v5.1' into 'release/v5.1'
fix(regi2c): wrong ADC_CALI_PD_WORKAROUND on c6, h2 (v5.1)

See merge request espressif/esp-idf!24747
2023-07-13 14:17:27 +08:00
morris
adc2bf1e93 Merge branch 'bugfix/fix_adc_continuous_driver_conv_frame_issue_v5.1' into 'release/v5.1'
adc: fix adc continuous driver conv_frame_size not bigger than 4092 issue / pr 11500, use circular dma descriptors in adc continuous mode (v5.1)

See merge request espressif/esp-idf!24739
2023-07-13 14:16:15 +08:00
Kapil Gupta
d938559efb Fix(esp_wifi): Fix race conditions in btm task deletion 2023-07-13 10:13:57 +05:30
Kapil Gupta
02aa8e1a89 esp_wifi: Optimize sae crypto operations for esp32 2023-07-13 09:47:09 +05:30
chenjianhua
34b4936a7d fix(bt/bluedroid): Fix memory leak of gattc cache upon disconnection 2023-07-13 12:14:16 +08:00
chenjianhua
62bd3973f6 bluedroid: fixed gatt tcb free when disconnecting 2023-07-13 12:13:47 +08:00
muhaidong
d4bb163e32 lower the dhcp discover and request retry backoff time 2023-07-13 11:49:12 +08:00
Chen Jichang
649541e6e3 refactor(driver/gptimer): replace vTaskDelay
with esp_rom_delay_us in test_apps

This commit replaces vTaskDelay with esp_rom_delay_us in the gptimer
driver. The former function can introduce millisecond jitter due to
OS task switching, while the latter has less jitter because of the
polling delay. Therefore this commit reduces the delta values for
various timer tests.

Changes made in this commit include:
- Replacing vTaskDelay with esp_rom_delay_us
- Adjusting delta values for various timer tests
2023-07-13 11:29:39 +08:00
wuzhenghui
3fc984690f change(Kconfig): improve ESP_SLEEP_PSRAM/FLASH_LEAKAGE_WORKAROUND help doc
Closes https://github.com/espressif/esp-idf/issues/11558
2023-07-13 11:02:44 +08:00
muhaidong
7c4cd75fe7 feat(external coex): add set tx line flag api 2023-07-13 10:37:53 +08:00
muhaidong
2f56bd8aac external coex: rename coex gpio struct field names 2023-07-13 10:37:53 +08:00
xiaqilin
5cd0b6216a external coex: add slave mode support 2023-07-13 10:37:53 +08:00
muhaidong
2c70cda9b6 external_coex: add extern coex wire 4 2023-07-13 10:37:53 +08:00
liuning
00ef8391af external coex: add txline, apply coex schm and half tx, apply lowest pti 2023-07-13 10:37:53 +08:00
david zuhn
1f0982c0fc spelling correction in documentation
Signed-off-by: zhangyanjiao <zhangyanjiao@espressif.com>

Closes https://github.com/espressif/esp-idf/pull/9721
2023-07-13 10:37:53 +08:00
Nachiket Kukade
dc46fe5343 fix(esp_wifi): Enable FTM for ESP32C2, fix other FTM issues
Enable FTM for ESP32C2 and update wifi libs with below fixes -

1. Bugfixes in Initiator and Responder mode
2. Fix wrong RTT value in first FTM procedure without connection
3. Update FTM calibration values for ESP32S2, S3, C3 and C2
4. Update distance estimation logic
5. Add some useful command parameters in FTM example
6. Fix bug when number of FTM measurement frames received is more
   than (number_of_brusts * FTMs per brust).

Co-authored-by: Sarvesh Bodakhe <sarvesh.bodakhe@espressif.com>
2023-07-13 10:37:53 +08:00
zhangyanjiao
a2d8225c9d feat(wifi): Add API to get RSSI info after station connects to AP
- Add esp_wifi_sta_get_rssi() function to retrieve RSSI info after station connects to AP
2023-07-13 10:37:53 +08:00
xiaqilin
5492f382f9 fix(openthread): call sleep api only in native radio 2023-07-13 10:29:08 +08:00
Jiang Jiang Jian
a300e79589 Merge branch 'backport/openthread_light_sleep' into 'release/v5.1'
Backportv5.1/openthread light sleep

See merge request espressif/esp-idf!24736
2023-07-13 10:20:38 +08:00
Jiang Jiang Jian
9745b7fab0 Merge branch 'bugfix/update_esp_rom_include_v5.1' into 'release/v5.1'
fix(esp_rom): remove unsupported rom headers (backport v5.1)

See merge request espressif/esp-idf!24735
2023-07-13 09:46:42 +08:00
Rahul Tank
e2e5894bc2 Merge branch 'bugfix/fix_exception_in_wifi_prov_v5.1' into 'release/v5.1'
Nimble: Increase the number of semaphore count for allocation (v5.1)

See merge request espressif/esp-idf!24469
2023-07-13 08:31:53 +08:00
Jiang Jiang Jian
bcd5eea0ea Merge branch 'bugfix/btm_scan_done_crash_v51' into 'release/v5.1'
wpa_supplicant : Fix occasional crash during btm roam.

See merge request espressif/esp-idf!24731
2023-07-13 03:00:30 +08:00
Jiang Jiang Jian
5ed5b83f70 Merge branch 'bufix/update_esp_phy_h_comments_5.1' into 'release/v5.1'
esp_phy:update comments in esp_phy_init.h_5.1

See merge request espressif/esp-idf!24704
2023-07-12 22:36:21 +08:00
Rahul Tank
cab8159187 Nimble: Increase the number of semaphore count to allow more semaphore
allocation
2023-07-12 15:31:46 +05:30
Armando
6acc155516 fix(regi2c): wrong ADC_CALI_PD_WORKAROUND on c6, h2 2023-07-12 17:28:01 +08:00
Armando
d21e332281 fix(adc): fixed esp32, esp32s2,esp32s3 adc oneshot mode clk div issue 2023-07-12 17:10:58 +08:00
Jiang Jiang Jian
e27b44e661 Merge branch 'bugfix/handle_signed_power_level_pcl_v5.1' into 'release/v5.1'
fix(nimble): Fix data type of power level and delta to handle negative values (v5.1)

See merge request espressif/esp-idf!24712
2023-07-12 16:54:23 +08:00
Armando
d8ee45ce08 adc: port gh pr to current adc continuous mode driver
DMA EOF may happens per multiple dma descriptors, instead of only one.

Closes https://github.com/espressif/esp-idf/pull/11500
2023-07-12 16:41:24 +08:00
Niklas Gürtler
5da5e1801b Fix #10804 by running continuous ADC DMA in endless loop instead of restarting after each run (descriptor chain) to avoid losing samples. Use descriptor error callback for GDMA to check for DMA buffer overrun.
Signed-off-by: Armando <douyiwen@espressif.com>
2023-07-12 16:41:19 +08:00
Armando
f76f3dc83f adc: fix adc continuous driver conv_frame_size not bigger than 4092 issue
Closes https://github.com/espressif/esp-idf/issues/11385
2023-07-12 16:41:11 +08:00
Armando
dd9bcef9ea refactor(adc): maintain s_adc_tsen_enabled in adc driver 2023-07-12 16:35:51 +08:00
Jiang Guang Ming
6c4c0c0c78 fix(esp_rom): remove unsupported rom headers 2023-07-12 01:06:04 -07:00
Jiang Jiang Jian
cadf80e875 Merge branch 'bugfix/fpu_registers_overwritten_v5.1' into 'release/v5.1'
Xtensa: fix a bug that altered CPU registers in FPU exception handlers (backport v5.1)

See merge request espressif/esp-idf!24607
2023-07-12 14:53:21 +08:00
xiaqilin
7f722715b9 fix(openthread): Fixed light sleep lock issue 2023-07-12 14:38:36 +08:00
xiaqilin
b422504d10 ieee802154: exclude sleep file when do not define CONFIG_FREERTOS_USE_TICKLESS_IDLE 2023-07-12 14:37:53 +08:00
xiaqilin
6b1e3924af ieee802154: update radio state in test 2023-07-12 14:37:29 +08:00
xiaqilin
043893a49f ieee802154: change light sleep config in ieee802154 2023-07-12 14:37:18 +08:00
xiaqilin
aee329de2b ieee802154: change BLE_BB/ieee802154_BB 2023-07-12 14:36:55 +08:00
xiaqilin
2ac7558da2 openthread: add openthread autostart for sleep device 2023-07-12 14:36:41 +08:00
xiaqilin
b4d951fa6a ieee802154: add sleep state 2023-07-12 14:36:21 +08:00
xiaqilin
4f537d3b98 ieee802154: support light sleep 2023-07-12 14:32:28 +08:00
Shu Chen
65bf500d29 Merge branch 'backport/openthread_feature' into 'release/v5.1'
Backport some Openthread related MR to 5.1(Backport5.1)

See merge request espressif/esp-idf!24285
2023-07-12 14:25:22 +08:00
Jiang Jiang Jian
9fb1b59054 Merge branch 'bringup/esp32h2_light_sleep_for_rebase_backport_v5.1' into 'release/v5.1'
esp32h2: support light_sleep(backport v5.1)

See merge request espressif/esp-idf!24697
2023-07-12 13:39:49 +08:00
jgujarathi
3095888aaf fix(wpa_supplicant) : Fix occasional crash during btm roam.
Fix crash due to premature deallocation of neighbour report elements
by scan_done. Post event to btm_rrm_t task to handle scan_done serially
rather than when btm_rrm_t task is processing btm request rx frame.
2023-07-12 10:39:05 +05:30
morris
0c7e2a9d14 Merge branch 'bugfix/bod_intr__v5.1' into 'release/v5.1'
brownout: Disable the hardware BOD when BOD interrupt is enabled(backportv5.1)

See merge request espressif/esp-idf!24692
2023-07-12 11:17:58 +08:00
morris
a0e8f5aa03 Merge branch 'contrib/github_pr_10811_5.1' into 'release/v5.1'
i2c: introduce chip specific cmd register number(backport v5.1)

See merge request espressif/esp-idf!24694
2023-07-12 11:15:03 +08:00
Jiang Jiang Jian
26046c054e Merge branch 'contrib/github_pr_11810_v5.1' into 'release/v5.1'
ledc.c: Fix frequency calculation. (GitHub PR) (v5.1)

See merge request espressif/esp-idf!24696
2023-07-12 10:46:36 +08:00
Island
196fc559b4 Merge branch 'feature/ble_mesh_example_support_duplicate_scan_v5.1' into 'release/v5.1'
Feature/ble mesh example support duplicate scan(v5.1)

See merge request espressif/esp-idf!24700
2023-07-12 10:38:05 +08:00
Shu Chen
966312e54f Merge branch 'backport/ieee802154_feature' into 'release/v5.1'
Backport some IEEE802154 related MR to 5.1(Backport 5.1)

See merge request espressif/esp-idf!24678
2023-07-12 07:23:43 +08:00
Jiang Jiang Jian
788f1def16 Merge branch 'bugfix/esp_netif_recieve_returns_v5.1' into 'release/v5.1'
esp_netif: Report error if esp_netif_receive() fails (v5.1)

See merge request espressif/esp-idf!24655
2023-07-12 04:07:17 +08:00
Shu Chen
6b2209c41d Merge branch 'backport/phy_track_pll_to_v51' into 'release/v5.1'
Backport: phy track pll logic refactor to V5.1(Backport v5.1)

See merge request espressif/esp-idf!24689
2023-07-12 00:13:50 +08:00
Rahul Tank
fa8f99249c fix (nimble): Fix data type of power level and delta to handle negative values 2023-07-11 17:18:09 +05:30
xueyunfei
ba54ce8657 esp_phy:update comments in esp_phy_init.h 2023-07-11 17:37:13 +08:00
Zim Kalinowski
174c38ba5c Merge branch 'bugfix/fix-esp-even-compile-error-v5.1' into 'release/v5.1'
esp_event: fix build error related to format (v5.1)

See merge request espressif/esp-idf!24664
2023-07-11 17:08:38 +08:00
Island
8e2de1b594 Merge branch 'ble_dev/esp32c6_support_power_save_example_5.1' into 'release/v5.1'
ble: support esp32c6 power save example

See merge request espressif/esp-idf!24386
2023-07-11 16:55:22 +08:00
Omar Chebib
3603611af1 freertos: add a unit test for FPU context switch 2023-07-11 15:55:40 +08:00
Omar Chebib
f002aeae3d Xtensa: fix a bug that altered CPU registers in FPU exception handlers
* Fixes https://github.com/espressif/esp-idf/issues/11690
2023-07-11 15:55:35 +08:00
wangjialiang
573755a8d2 feat(ble_mesh: stack: esp32c6/h2): update Kconfig file to support duplicate scan. 2023-07-11 15:54:48 +08:00
IhorNehrutsa
1d158ddd10 fix(ledc): fix frequency calculation
ledc.c: Fix frequency calculation.
Round int instead of truncate.

Merges https://github.com/espressif/esp-idf/pull/11810
2023-07-11 15:22:34 +08:00
Lou Tianhao
af5a2fe4fd bugfix: update pm trace io num for esp32h2 2023-07-11 15:06:01 +08:00
Marius Vikhammer
efc9761ff0 Merge branch 'fix/heap-test-h2_v5.1' into 'release/v5.1'
heap: remove exclusion of esp32h2 as a target for heap pytest (v5.1)

See merge request espressif/esp-idf!24567
2023-07-11 15:05:07 +08:00
Lou Tianhao
ee299b2d53 bugfix: set FORCE_INLINE_ATTR for resume_uart 2023-07-11 15:04:19 +08:00
Hanno
c2b8a1d95c i2c: introduce chip specific cmd register number
Merges https://github.com/espressif/esp-idf/pull/10811
2023-07-11 14:55:46 +08:00
Lou Tianhao
d191b0c540 Power Management: fix hp xtal wait bug for esp32h2 and esp32c6 2023-07-11 14:53:43 +08:00
Lou Tianhao
60a3e5053e Power Management: support pu xtal in light sleep for esp32h2 2023-07-11 14:53:15 +08:00
Lou Tianhao
7599d07c3f bugfix: remove the workaround implemented in MR 22773 about the lp_timer 2023-07-11 14:53:02 +08:00
Lou Tianhao
6e15f589cc Power Management: move lp_timer_hal.c to upper hal layer for esp32h2 and esp32c6 2023-07-11 14:52:46 +08:00
Lou Tianhao
8aaa256aa9 Power Management: support RC32K or Crystal32K powered down 2023-07-11 14:52:35 +08:00
Lou Tianhao
c15c8664ca codeclean: fix prefix to LP_AON and add LP_AON_STORE8_REG 2023-07-11 14:52:24 +08:00
Cao Sen Miao
f44e8a8a8f brownout: Disable the hardware BOD when BOD interrupt is enabled 2023-07-11 14:32:40 +08:00
xiaqilin
bdc49fbff4 ieee802154: update test code 2023-07-11 14:28:54 +08:00
xiaqilin
91d17e0073 ieee802154: support ieee802154 test 2023-07-11 14:28:54 +08:00
xiaqilin
c80ee99c6a ieee802154: add a patch for ieee802154 test 2023-07-11 14:28:54 +08:00
xiaqilin
bba902cc46 ieee802154: add CONFIG_IEEE802154_TEST for supporting ieee802154 test 2023-07-11 14:28:54 +08:00
zhangwenxu
e88adc3401 IEEE802154: match C6 max txpower value with datasheet 2023-07-11 14:28:54 +08:00
xiaqilin
b135270e68 ieee802154: add modem reset and fix ieee802154 test app reg command error 2023-07-11 14:28:54 +08:00
WanqQixiang
181ed29c3a feat(openthread): Add event post for thread role changed and integrate all the thread state change callbacks 2023-07-11 14:27:05 +08:00
zhangwenxu
bcd99bb58d fix(openthread): fix ot settings out of range issue 2023-07-11 14:21:19 +08:00
Rahul Tank
a125e8f7ed Merge branch 'feature/services_proximity_v5.1' into 'release/v5.1'
NimBLE : Added proximity sensor as a service (v5.1)

See merge request espressif/esp-idf!24649
2023-07-11 14:04:31 +08:00
Lou Tianhao
2c9a2a76f7 example: bringup light sleep example for esp32h2 2023-07-11 13:58:08 +08:00
Lou Tianhao
2abfeb19c8 Power Management: change the IO hold interface for esp32c6 2023-07-11 12:04:20 +08:00
Lou Tianhao
8ef8459c0d Power Management: update pmu init and sleep parameter 2023-07-11 12:04:09 +08:00
Lou Tianhao
3b40ce4d9b Power Management: fix REGDMA clock issue when wake up form light sleep 2023-07-11 12:03:59 +08:00
Lou Tianhao
e5e0a0918a Power Management: support MODEM domain powered down in light sleep for esp32h2 2023-07-11 12:03:46 +08:00
Lou Tianhao
c39a0cc0b5 Power Management: fix REGDMA power issue when TOP domain powered down during light sleep for esp32h2 2023-07-11 12:03:36 +08:00
Lou Tianhao
113366820b Power Management: support TOP domain powered down in light sleep for esp32h2 2023-07-11 12:03:25 +08:00
Lou Tianhao
24486dd069 Power Management: support PAU REGDMA feature for esp32h2 2023-07-11 12:03:13 +08:00
Lou Tianhao
c12d7f5463 Power Management: support CPU powered down in light sleep for esp32h2 2023-07-11 12:03:02 +08:00
Lou Tianhao
356fa3ab4b Power Management: support DFS and PMU feature for esp32h2 2023-07-11 12:02:39 +08:00
Marius Vikhammer
62b20b5518 Merge branch 'bugfix/esp_event_err_docs_v5.1' into 'release/v5.1'
fix(core-system/esp event): Fixed missing error return  documentation for... (v5.1)

See merge request espressif/esp-idf!24573
2023-07-11 11:46:43 +08:00
zhangwenxu
2bee46a354 esp_phy: phy track pll logic refactor 2023-07-11 10:50:29 +08:00
zhangwenxu
72cc92578d Openthread: fix dead lock related to ot and lwip 2023-07-11 10:39:34 +08:00
zhangwenxu
26c0a23598 openthread: change partition table to nvs flash 2023-07-11 10:39:34 +08:00
Shu Chen
d4dd3dfa2b openthread: introduce the auto start API 2023-07-11 10:39:34 +08:00
zhangwenxu
f3924e5aa8 openthread: add source address selection hook 2023-07-11 10:39:34 +08:00
zhangwenxu
bcb9e6b5eb lwip: add a hook for ip6 source address selection 2023-07-11 10:39:34 +08:00
Mahavir Jain
e9a8456279 Merge branch 'fix/mbedtls_ecdsa_veriy_restartable_v5.1' into 'release/v5.1'
mbedtls: update submodule (v5.1)

See merge request espressif/esp-idf!24636
2023-07-11 10:18:27 +08:00
Jiang Jiang Jian
87426b8fbd Merge branch 'fix/esp32s3_sysview_trace_corrupt_v5.1' into 'release/v5.1'
fix(app_trace): Fix apptrace data corruption on ESP32-S3 (v5.1)

See merge request espressif/esp-idf!24680
2023-07-11 08:37:55 +08:00
Jiang Jiang Jian
37ff7a92bf Merge branch 'bugfix/wps_deauth_sent_before_eap_failure_v5.1' into 'release/v5.1'
Fix for sending deauth before Eap-Failure in WPS (v5.1)

See merge request espressif/esp-idf!24368
2023-07-11 06:43:27 +08:00
David Čermák
18a8f86ecb Merge branch 'bugfix/lwip_dhcps_hook_types_v5.1' into 'release/v5.1'
lwip: Fix incorrect invocation of the hook `LWIP_HOOK_DHCPS_POST_APPEND_OPTS` (v5.1)

See merge request espressif/esp-idf!24658
2023-07-11 03:31:31 +08:00
cjin
1dbbd97749 ble: support esp32c6 power save example 2023-07-10 18:08:37 +00:00
Jiang Jiang Jian
0cf0757224 Merge branch 'bugfix/ulp_fsm_ci_v5.1' into 'release/v5.1'
ulp-system/ulp-fsm: clean up test cases (v5.1)

See merge request espressif/esp-idf!24070
2023-07-11 01:46:39 +08:00
Jiang Jiang Jian
cf517e3e39 Merge branch 'bugfix/tempsensor_wifi_conflict_v5.1' into 'release/v5.1'
temperature_sensor: Fix issue that have conflict with phy / Fix phy pwdet and tsens power cannot be set twice issue (v5.1)

See merge request espressif/esp-idf!24064
2023-07-11 01:38:04 +08:00
harshal.patil
bdbb717be9 mbedtls: update submodule to include:
fix: mbedtls_ecdsa_can_do was not being defined when ECDSA_SIGN_ALT is defined but ECDSA_VERIFY_ALT is not defined causing mbedtls_ecdsa_verify_restartable to always fail.
feature: initial version of the sbom.yml file
2023-07-10 14:11:51 +00:00
Jiang Jiang Jian
a09a503073 Merge branch 'bugfix/nan_sd_dp_fixes_v5.1' into 'release/v5.1'
NAN Service discovery and datapath bugfixes (Backport v5.1)

See merge request espressif/esp-idf!24383
2023-07-10 21:44:49 +08:00
Alexey Gerenkov
3eacf08267 fix(app_trace): Fix apptrace data corruption on ESP32-S3
Close https://github.com/espressif/esp-idf/issues/10604
diff --git a/components/soc/esp32s3/include/soc/tracemem_config.h b/components/soc/esp32s3/include/soc/tracemem_config.h
index 55c9b907dd..75fd87419b 100644
--- a/components/soc/esp32s3/include/soc/tracemem_config.h
+++ b/components/soc/esp32s3/include/soc/tracemem_config.h
@@ -10,7 +10,7 @@ extern "C" {
 #endif

 #define TRACEMEM_MUX_BLK0_NUM                   22
-#define TRACEMEM_MUX_BLK1_NUM                   23
+#define TRACEMEM_MUX_BLK1_NUM                   26

 #if (TRACEMEM_MUX_BLK0_NUM < 6) || (TRACEMEM_MUX_BLK0_NUM > 29)
 #error Invalid TRAX block 0 num!
2023-07-10 13:06:02 +03:00
Island
e21fc0dc50 Merge branch 'feature/update_ble_libs_5.1' into 'release/v5.1'
ble: Added APIs for QA test

See merge request espressif/esp-idf!24651
2023-07-10 17:21:51 +08:00
Island
e68d4a7177 Merge branch 'feature/update_ble_duplicte_vs_hci_lib_fix_5_1' into 'release/v5.1'
Feature/update ble duplicte vs hci lib fix 5 1

See merge request espressif/esp-idf!24638
2023-07-10 15:09:18 +08:00
Zim Kalinowski
e29e39f9d6 esp_event: fix build error related to format
Closes https://github.com/espressif/esp-idf/issues/11428

See merge request !23833
2023-07-10 11:28:03 +08:00
Cao Sen Miao
0954babbd6 temperature_sensor: make as a weak link 2023-07-10 11:16:09 +08:00
Armando
a33541f036 phy: fix phy pwdet and tsens power cannot be set twice issue
Closes https://github.com/espressif/esp-idf/issues/11627
2023-07-10 11:16:09 +08:00
Cao Sen Miao
e493a99da2 temperature_sensor: Apply new-shared interface in temperature sensor driver 2023-07-10 11:16:09 +08:00
Cao Sen Miao
acc6d99572 temperature_sensor: Add new interface and reference counts so that phy and driver can use together 2023-07-10 11:16:09 +08:00
Jiang Jiang Jian
3b7dc69e90 Merge branch 'feature/sync_libphy_v5.1' into 'release/v5.1'
sync libphy to v5.1

See merge request espressif/esp-idf!24588
2023-07-10 10:38:41 +08:00
morris
0930b5ca1e Merge branch 'bugfix/fix_spi_flash_api_concurrency_issue_v5.1' into 'release/v5.1'
spi_flash: fix concurrency issue when concurrently calling esp_flash apis (v5.1)

See merge request espressif/esp-idf!24508
2023-07-10 10:24:51 +08:00
Jiang Jiang Jian
28860655af Merge branch 'bugfix/update_esp_rom_layout_v5.1' into 'release/v5.1'
esp_rom: fix rom layout issues (backport v5.1)

See merge request espressif/esp-idf!24639
2023-07-10 10:23:16 +08:00
aditi_lonkar
33aff4c5a0 Fix for sending deauth before Eap-Failure in WPS 2023-07-10 02:20:51 +00:00
wuyuanyi135
575a433c98 Fix incorrect invocation of the hook LWIP_HOOK_DHCPS_POST_APPEND_OPTS
Fix https://github.com/espressif/esp-idf/issues/11373
2023-07-07 14:14:02 +02:00
David Cermak
cf4c39a225 esp_netif: Make esp_netif_receive() return value configurable 2023-07-07 13:56:13 +02:00
David Cermak
39b8218750 esp_netif: Report error if esp_netif_receive() fails
Closes https://github.com/espressif/esp-idf/issues/10770
2023-07-07 13:56:13 +02:00
Rahul Tank
a7b62bbcaf Merge branch 'bufix/fix_assert_while_stack_deinit_v5.1' into 'release/v5.1'
NimBLE :  Fix assert due to controller event while stack deinit (v5.1)

See merge request espressif/esp-idf!24620
2023-07-07 19:41:52 +08:00
Shen Weilong
027e6ecab9 ble: Added APIs for QA test 2023-07-07 19:40:48 +08:00
Michael (XIAO Xufeng)
5c11366e01 Merge branch 'feature/support_adc_calibration_on_c6_v5.1' into 'release/v5.1'
adc_cali: supported adc calibration on esp32c6 (v5.1)

See merge request espressif/esp-idf!23936
2023-07-07 18:29:11 +08:00
jgujarathi
18ffa02b72 esp_wifi : Fix collection of issues during sta scan and roam.
1) Fix issue during split scan to allow for data tx.
2) Fix issue when parsing wpa_ie to set correct authmode when AP
   supports both WPA_EAP and WPA_EAP_SHA256 authmode.
   Closes https://github.com/espressif/esp-idf/issues/11202
3) Fix an occasional crash during sta roam.
4) Add home_channel_dwell_time to wifi_scan_config_t. This allows
   configuration of the time spent between scanning consecutive
   channels for tx.
2023-07-07 18:11:38 +08:00
Liu Ning
43604dffbe esp_wifi: fix ret when setting channel at wifi not started, fix timer callback 2023-07-07 18:09:29 +08:00
Jiang Jiang Jian
6cb39b4485 Merge branch 'bugfix/concurrency_while_eloop_register_v5.1' into 'release/v5.1'
esp_wifi: Bugfix concurrency observed while doing eloop register (v5.1)

See merge request espressif/esp-idf!24570
2023-07-07 18:00:49 +08:00
zhangwenxu
8592f19a95 esp_phy: fix rtc_printf and libbtbb version print 2023-07-07 17:39:25 +08:00
lixiaofan
044baf90e5 sync libphy to v5.1 2023-07-07 17:38:01 +08:00
Jiang Jiang Jian
66f384cad0 Merge branch 'bugfix/added_chip_based_cca_config_v5.1' into 'release/v5.1'
ble: fix cca for esp32c2

See merge request espressif/esp-idf!24426
2023-07-07 17:31:00 +08:00
isha.pardikar@espressif.com
893967f596 feat (NimBLE): Add proximity sensor as a service 2023-07-07 14:59:22 +05:30
Jiang Jiang Jian
64ba835d05 Merge branch 'feat/improve_wifi_rx_in_high_interference_v5.1' into 'release/v5.1'
esp_phy: update esp32c2 phy lib to fix some issues(v5.1)

See merge request espressif/esp-idf!24163
2023-07-07 17:19:27 +08:00
Island
a8c9665ae2 Merge branch 'ble_dev/support_esp32h2_modem_clock_selection_5.1' into 'release/v5.1'
ble: support esp32h2 modem clock selection

See merge request espressif/esp-idf!24388
2023-07-07 16:57:22 +08:00
jiangguangming
fc7d4488bf esp_rom: fix rom layout issues 2023-07-07 01:02:07 -07:00
Geng Yuchao
730d8e18d8 fix(ble): Fix duplicate var length issue 2023-07-07 14:29:21 +08:00
Geng Yuchao
1398605873 fix(ci): Fix declaration isn't a prototype issue 2023-07-07 14:29:21 +08:00
Geng Yuchao
0359d0df5d feat(ble): Update ble lib to 6f9ef119 2023-07-07 14:29:21 +08:00
Geng Yuchao
eea7df273c change(ble): Enable pdu type trig in duplicate in default mode as before 2023-07-07 14:29:21 +08:00
Geng Yuchao
a5f127ec88 feat(ble): Add duplicate refersh function support for esp32h2 2023-07-07 14:29:21 +08:00
Geng Yuchao
2b195191b3 feat(ble): Add support to scan period refresh duplicate cache list 2023-07-07 14:29:21 +08:00
Geng Yuchao
a357fd17c2 feat(ble): Add duplicate filter feature enable on ble for h2. 2023-07-07 14:29:21 +08:00
Geng Yuchao
6dc7d9b63f feat(ble): Add duplicate filter feature enable on ble for c6. 2023-07-07 14:29:21 +08:00
Armando
a7f00f503a spi_flash: rename spi_flash_os_func_app: spi_start, spi_end
spi_start -> s_acquire_spi_bus_lock
spi_end -> s_release_spi_bus_lock
2023-07-07 10:13:28 +08:00
Armando
f142415475 spiflash: added esp_flash API concurrency pressure test 2023-07-07 10:13:28 +08:00
Armando
faa8c2bc8f spi_flash: fix concurrency issue when calling esp_flash apis under xip_psram or auto_suspen 2023-07-07 10:13:28 +08:00
Armando
d2e8dccd40 spiflash: fix not calling on_spi_acquired when CONFIG_SPI_FLASH_SHARE_SPI1_BUS issue 2023-07-07 10:13:28 +08:00
Rahul Tank
7c6ab05f50 feat(nimble): Add support for PCL Set RSSI VSC and example code for its usage
This commit adds support for sending Vendor Specific HCI commands and handling Vendor Specific HCI
Events in the Nimble stack. It also includes the necessary configuration options and APIs to handle
these commands and events.

The following changes were made:
- Added configuration option to enable support for VSC and VSE
- Added API to send Vendor Specific HCI commands
- Added example code for using the Set RSSI VSC for Power Control

This commit also includes some minor code improvements and bug fixes
2023-07-06 19:54:19 +05:30
Rahul Tank
022ce314c3 Nimble: Add APIs to handle vs HCI commands and events 2023-07-06 19:54:19 +05:30
chenjianxing
bb3bd09b93 esp_phy: update esp32c2 phy lib to fix some issues
1. improve Wi-Fi rx 11b pkts for AC-DC power supply modules.
2. fix Wi-Fi disconnect in low temperature.
3. fix RTC_SW_CPU_RST occur in Wi-Fi start and stop process.
2023-07-06 17:09:09 +08:00
Rahul Tank
f1b9af72fd Merge branch 'bugfix/sync_reporting_files_v5.1' into 'release/v5.1'
NimBLE : Sync common porting and nimble submodule files (v5.1)

See merge request espressif/esp-idf!24277
2023-07-06 15:05:54 +08:00
cjin
7b70e2eb34 ble: fix cca for esp32c2 2023-07-06 14:05:43 +08:00
Roshan Bangar
fe05003a8f fix(nimble): Fix assert due to controller event while stack deinit 2023-07-06 10:30:36 +05:30
laokaiyao
57312e6e3e adc_calib: support calibration v2 on esp32c6 2023-07-06 10:36:29 +08:00
Jiang Jiang Jian
5e3488396a Merge branch 'bugfix/fix_some_bt_controller_bug_v5.1' into 'release/v5.1'
component_bt:Fixed some bluetooth bugs(v5.1)

See merge request espressif/esp-idf!24579
2023-07-06 00:54:40 +08:00
Jiang Jiang Jian
16ff61b36e Merge branch 'ble_dev/support_ble_light_sleep_using_extra_link_5.1' into 'release/v5.1'
Ble dev/support ble light sleep using extra link 5.1

See merge request espressif/esp-idf!24192
2023-07-05 20:32:56 +08:00
Jiang Jiang Jian
71a5663786 Merge branch 'bugfix/hfp_packet_type_err_v5.1' into 'release/v5.1'
Revised (e)SCO configuration parameter sets (v5.1)

See merge request espressif/esp-idf!24346
2023-07-05 20:05:59 +08:00
Jiang Jiang Jian
d682fbeb07 Merge branch 'bugfix/alarm_not_free_when_a2dp_deinit_v5.1' into 'release/v5.1'
bugfix/Fixed the issue of alarm leak (v5.1)

See merge request espressif/esp-idf!24351
2023-07-05 19:53:09 +08:00
Jiang Jiang Jian
425b660583 Merge branch 'feature/update_avrcp_v1.5_v5.1' into 'release/v5.1'
change(bt/Bluedroid): Update AVRCP version to 1.5 (v5.1)

See merge request espressif/esp-idf!24582
2023-07-05 19:52:09 +08:00
Jiang Jiang Jian
4474b0ac8c Merge branch 'bugfix/resume_ext_scan_pti_in_time_v5.1' into 'release/v5.1'
bt: fix the issue that BLE scan uses high priority incorrectly and causes Wi-Fi unable to work normally on ESP32-C3 and ESP32-S3(backport v5.1)

See merge request espressif/esp-idf!24403
2023-07-05 19:49:05 +08:00
Jiang Jiang Jian
51ed7ef9f1 Merge branch 'bugfix/fix_hang_during_sleep_process_v5.1' into 'release/v5.1'
Power Management: fix hang on pd_top sleep process (backport v5.1)

See merge request espressif/esp-idf!24459
2023-07-05 19:48:19 +08:00
Jiang Jiang Jian
60163c3b0f Merge branch 'bugfix/memory_cleanup_optimization_v5.1' into 'release/v5.1'
Nimble: Fixes for memory leak / optimization (v5.1)

See merge request espressif/esp-idf!24139
2023-07-05 19:42:58 +08:00
Jiang Jiang Jian
97b0cb9d14 Merge branch 'contrib/github_pr_11337_v5.1' into 'release/v5.1'
w5500: mac: poll VERSIONR to ensure the chip is initialised (GitHub PR) (v5.1)

See merge request espressif/esp-idf!24551
2023-07-05 19:34:10 +08:00
Jiang Jiang Jian
87b960121a Merge branch 'contrib/github_pr_10987_v5.1' into 'release/v5.1'
Allow to config the maximum number of VFS entries. (GitHub PR) (v5.1)

See merge request espressif/esp-idf!23871
2023-07-05 19:32:32 +08:00
Jiang Jiang Jian
40f93bcc41 Merge branch 'ci/tcp_transport_test_app_v5.1' into 'release/v5.1'
ci: Migrate unit test for tcp_transport to unit test app (v5.1)

See merge request espressif/esp-idf!24248
2023-07-05 19:30:44 +08:00
Jiang Jiang Jian
aa434942c1 Merge branch 'backport/fix_multipan_api_error_and_coex_delay_reg' into 'release/v5.1'
ieee802154: fix multipan api error and update coex_arb_delay reg(Backport v5.1)

See merge request espressif/esp-idf!24399
2023-07-05 19:30:07 +08:00
Jiang Jiang Jian
9658469de2 Merge branch 'backport/modification_when_154_stop_tx_rx_ack' into 'release/v5.1'
Fix OpenThread/IEEE802.15.4 bugs found in test(backport v5.1)

See merge request espressif/esp-idf!24060
2023-07-05 19:28:43 +08:00
Jiang Jiang Jian
b8cfb56c43 Merge branch 'bugfix/tx_only_link_up_v5.1' into 'release/v5.1'
Ethernet minor fixes (v5.1)

See merge request espressif/esp-idf!23968
2023-07-05 19:25:46 +08:00
Jiang Jiang Jian
46396d7c16 Merge branch 'bugfix/usb_serial_jtag_select_poll_crash_v5.1' into 'release/v5.1'
vfs: select sanity NULL check (v5.1)

See merge request espressif/esp-idf!23946
2023-07-05 19:25:25 +08:00
Shyamal Khachane
5d05aa9942 fix(esp_wifi): NAN Service discovery and datapath bugfixes
1. Increase timeout value for NDP Accepted/Rejected events
2. Update publisher ID incase publisher restarts(service)
3. Ignore service discovery frames with invalid/inactive service ID
4. Update NAN documentation
2023-07-05 14:33:56 +05:30
wangmengyang
1e7d3425e5 bt-coexist: fix the issue for BLE scan in using whitelist that scan PTI keeps high and not resumes after reception of ADV_EXT_IND but no AUX_ADV_IND followed on ESP32-C3 and ESP32-S3, which causes Wi-Fi unable to work normally 2023-07-05 12:54:59 +08:00
laokaiyao
6f673e95c9 adc_oneshot: move power acquire back to adc_oneshot_new_unit
Revert and fix of d197c59eaa in !23575

adc_cali: fix the condition of ocode calibration
2023-07-05 12:48:11 +08:00
laokaiyao
e90a2d50c4 adc_cali: supported channel compensation of adc calibration on esp32c6 2023-07-05 12:48:11 +08:00
KonstantinKondrashov
0b7485db02 efuse(c6): Adds adc calib efuses 2023-07-05 12:48:11 +08:00
laokaiyao
6336a9e2b5 adc_cali: supported adc calibration on esp32c6 2023-07-05 12:48:11 +08:00
Roshan Bangar
a41f5387c1 NimBLE : Sync porting files 2023-07-05 10:02:58 +05:30
Jiang Jiang Jian
2cffd23655 Merge branch 'bugfix/pmu_wait_xtal_stable_time_issue' into 'release/v5.1'
fix PMU wait xtal stable time issue for esp32c6

See merge request espressif/esp-idf!24259
2023-07-05 12:27:26 +08:00
Jiang Jiang Jian
7c696fcb71 Merge branch 'bugfix/rtc_clk_int_rc32k_miss_calib_cycles_config_v5.1' into 'release/v5.1'
backport v5.1: fix the issue of missing configuration for calibration cycles of the internal 32 kHz RC

See merge request espressif/esp-idf!24584
2023-07-05 12:27:08 +08:00
Jiang Jiang Jian
9d47a58750 Merge branch 'bugfix/macro_changes_in_nimble-1.5_v5.1' into 'release/v5.1'
NimBLE : Update macro name changes in nimble-1.5 (v5.1)

See merge request espressif/esp-idf!23745
2023-07-05 12:24:52 +08:00
Jiang Jiang Jian
8051cb704c Merge branch 'bugfix/fix_bootloader_wrong_spi_freq_print_v5.1' into 'release/v5.1'
bugfix: fix esp32c6 bootloader print wrong spi speed mode (backport v5.1)

See merge request espressif/esp-idf!24460
2023-07-05 12:24:16 +08:00
Rahul Tank
bd0343c9c3 Merge branch 'bugfix/fix_config_option_v5.1' into 'release/v5.1'
Nimble: Fixed setting macro values based on selected configuration (v5.1)

See merge request espressif/esp-idf!24137
2023-07-05 12:16:36 +08:00
Aditya Patwardhan
bcef59f33c Merge branch 'bugfix/mbedtls_dyanmic_buffer_with_dhm_build_v5.1' into 'release/v5.1'
fix(mbedtls): Build issue in dynamic buffer feature (v5.1)

See merge request espressif/esp-idf!24537
2023-07-05 12:04:00 +08:00
Rahul Tank
051965af52 Merge branch 'bugfix/fix_pcl_enh_rsp_v5.1' into 'release/v5.1'
Nimble: Removed the extra status field in the enh read transmit power level (v5.1)

See merge request espressif/esp-idf!23883
2023-07-05 12:00:25 +08:00
Darian Leung
8cb70f0d12 ringbuf: Fix ordering of StaticRingbuffer_t
When building on linux/host compilers (e.g., GCC), the compiler may add padding
depending on the size and order of the member types.

This commit fixes the ordering or the StaticRingbuffer_t such that it matches
the internal Ringbuffer_t. The "_Static_assert" is always enabled for all
compilers.

Closes https://github.com/espressif/esp-idf/issues/11726
2023-07-04 21:30:43 +01:00
Aditya Patwardhan
c81bc8c819 Merge branch 'bugfix/aes_dma_align_issue_v5.1' into 'release/v5.1'
aes: fix DMA descriptor calculation for the alignment case (v5.1)

See merge request espressif/esp-idf!24093
2023-07-04 19:57:10 +08:00
Rahul Tank
1ed419e23c Nimble: Removed the extra status field in the enh read transmit power level 2023-07-04 15:48:38 +05:30
Rahul Tank
4e1ec90525 Nimble: Fixed setting macro values based on selected configuration 2023-07-04 15:48:16 +05:30
Rahul Tank
73639cf0b4 Nimble: Fixes for memory leak / optimization 2023-07-04 15:45:22 +05:30
Li Shuai
9216bdc078 Power Management: fix PMU wait xtal stable time issue 2023-07-04 16:22:00 +08:00
wuzhenghui
94a10372cc feature: skip console uart flush and sleep when estimated uart flush time exceeds the sleep duration to avoid rtos tick jump failed 2023-07-04 16:14:20 +08:00
Li Shuai
963fac95d7 fix(rtc_clk): fix the issue of missing configuration for calibration cycles of the internal 32 kHz RC 2023-07-04 16:06:37 +08:00
xiongweichao
015555c6fb change(bt/Bluedroid): Update AVRCP version to 1.5 2023-07-04 15:52:29 +08:00
xiongweichao
6e9dabe659 bt: Fixed some bluetooth bugs
1. Fixed LC_AFH_UPDATE_IND  has not benn processed causing memory exhaustion
2. Fixed no free elt in prog push
3. Fixed disconnect due to sniff with error Dsniff
4. Fixed the problem that the host continued to send ACL data to the controller after disconnection, which caused the connection to fail again
2023-07-04 15:03:10 +08:00
chenjianhua
4bf8f8895c Update bt-lib for esp32
- Fixed memory leak when setting adv data
2023-07-04 15:03:05 +08:00
xiongweichao
50904e9353 components/bt: Fix crash due to NULL point 2023-07-04 14:55:04 +08:00