Commit Graph

18996 Commits

Author SHA1 Message Date
wangjialiang
215e1262ba ble_mesh: stack: Fix can't trans optional info to group address 2022-11-07 15:48:56 +08:00
jingli
81b98881ac esp_hw_support/sleep: fix cannot pd cpu and rc fast at the same time during light sleep
Since cpu retention dma use rc fast as clk source, so rc_fast_digi
will be enabled when we config to pd cpu. And cpu retention does not
need rc fast keep on during light sleep. So, if we use rc_fast_digi
to determine whether rc fast can be powered down, then cpu and and
rc fast cannot pd at the same time.
2022-11-06 01:34:18 +08:00
Michael (XIAO Xufeng)
7931c033ed pm: fixed RTC8M domain power issues
introduced in e44ead5356

1. The int8M power domain config by default is PD. While LEDC is using
RTC8M as clock source, this power domain will be kept on.

But when 8MD256 is used as RTC clock source, the power domain should
also be kept on.

On ESP32, there was protection for it, but broken by commit
e44ead5356. Currently the power domain
will be forced on when LEDC is using RTC8M as clock source &&
!int8m_pd_en (user enable ESP_PDP_DOMAIN_RTC8M in lightsleep). Otherwise
the power domain will be powered off, regardless of RTC clock source.

In other words, int8M domain will be forced off (even when 8MD256
used as RTC clock source) if LEDC not using RTC8M as clock source, user
doesn't enable ESP_PDP_DOMAIN_RTC8M, or in deep sleep.

On later chips, there's no such protection, so 8MD256 could't be used as
RTC clock source in sleep modes.

This commit adds protection of 8MD256 clock to other chips. Fixes the
incorrect protection logic overriding on ESP32. Now the power domain
will be determiend by the logic below (order by priority):

    1. When RTC clock source uses 8MD256, power up
    2. When LEDC uses RTC8M clock source, power up
    3. In deepsleep, power down
    4. Otherwise determined by user config of ESP_PDP_DOMAIN_RTC8M,
       power down by default. (This is preferred to have highest
       priority, but it's kept as is because of current code structure.)

2. Before, after the macro `RTC_SLEEP_CONFIG_DEFAULT` decides dbias, the
protection above may force the int8m PU. This may cause the inconsistent
of dbias and the int8m PU status.

This commit lifts the logic of pd int8m/xtal fpu logic to upper layer
(sleep_modes.c).

Related: https://github.com/espressif/esp-idf/issues/8007, https://github.com/espressif/esp-idf/pull/8089

temp
2022-11-05 20:02:53 +08:00
Jiang Jiang Jian
abb7962161 Merge branch 'bugfix/set_ap_rsnxe_while_connect_v4.3' into 'release/v4.3'
esp_wifi:Set AP rsnxe while connecting to a AP

See merge request espressif/esp-idf!20482
2022-11-04 16:38:16 +08:00
Michael (XIAO Xufeng)
ba76597923 ci: add s2, s3, c3 component ut jobs 2022-11-04 12:37:45 +08:00
Michael (XIAO Xufeng)
696de2e7ac pm: add test for RTC using 8MD256 as clock source 2022-11-04 12:37:45 +08:00
Michael (XIAO Xufeng)
b56b459960 rtc: fixed 8MD256 can't be used as RTC slow src on ESP32
Sync configuration from other chips

Closes: https://github.com/espressif/esp-idf/issues/8007, https://github.com/espressif/esp-idf/pull/8089
2022-11-04 12:37:45 +08:00
morris
2788e7e131 Merge branch 'test/stop_s3_test_v4.3' into 'release/v4.3'
ci: stop building & testing s3 apps

See merge request espressif/esp-idf!20924
2022-11-04 10:06:14 +08:00
Michael (XIAO Xufeng)
30c1b3d00f ci: stop building & testing s3 apps 2022-11-03 17:22:03 +08:00
morris
164d9bb782 Merge branch 'bugfix/calib_i2c_clk_v4.3' into 'release/v4.3'
I2C: Make I2C clock frequency accurate(backport v4.3)

See merge request espressif/esp-idf!19070
2022-11-03 10:04:31 +08:00
KonstantinKondrashov
2c3f30378f esp_hw_support: Fix time jump after reboot
Closes https://github.com/espressif/esp-idf/issues/9448
2022-11-02 19:38:26 +08:00
Shreyas Sheth
dc23667db8 esp_wifi:Set AP rsnxe while connecting to a AP 2022-11-02 15:25:31 +05:30
Jiang Jiang Jian
91c60b9cbd Merge branch 'bugfix/fast_scan_profile_issue_v4.3' into 'release/v4.3'
Fix repeated scans causing bss overwrite in connect process (Backport v4.3)

See merge request espressif/esp-idf!19860
2022-11-01 20:32:53 +08:00
Cao Sen Miao
32dca66fb6 I2C: Make I2C clock frequency accurate 2022-11-01 15:48:26 +08:00
Nachiket Kukade
aabfb142bc esp_wifi: Update wifi libs
Fix scan causing bss overwrite in connect process
2022-11-01 09:43:43 +05:30
Jiang Jiang Jian
1d5efaddac Merge branch 'bugfix/fix_sta_scan_when_already_connected_v4.3' into 'release/v4.3'
esp-wifi: Restores station status to connected when no other AP is found for roam

See merge request espressif/esp-idf!20343
2022-11-01 11:03:01 +08:00
Jiang Jiang Jian
9e6d5dce34 Merge branch 'bugfix/use_nonblocking_coex_callback_v4.3' into 'release/v4.3'
bluetooth: use non-blocking coexistence callback functions so that Wi-Fi task is not blocked by Bluetooth(backport v4.3)

See merge request espressif/esp-idf!20780
2022-11-01 10:48:38 +08:00
morris
9a9f503c73 Merge branch 'bugfix/spi2_add_device_cs_more_than_3_v4.3' into 'release/v4.3'
spi_master:fix error when use `spi_bus_add_device` more than 3 device(v4.3)

See merge request espressif/esp-idf!20127
2022-11-01 10:18:24 +08:00
Jiang Jiang Jian
6225c718c3 Merge branch 'bugfix/fix_xtal_related_rtc_params_for_esp32_backport_v4.3' into 'release/v4.3'
esp32/rtc: fix xtal unstable in some cases when sleep(backport v4.3)

See merge request espressif/esp-idf!20804
2022-10-31 19:52:04 +08:00
Jiang Jiang Jian
167a9896a2 Merge branch 'bugfix/fix_part_of_modem_not_reset_when_power_on_backport_v4.3' into 'release/v4.3'
Coexistence: fix part of modem module not reset when power up(backport v4.3)

See merge request espressif/esp-idf!20813
2022-10-31 19:51:50 +08:00
Island
c10ce8f92b Merge branch 'bugfix/ble_mesh_console_memory_leak_test_forv4.3' into 'release/v4.3'
ble_mesh:example:fix memory leak(v4.3)

See merge request espressif/esp-idf!20039
2022-10-28 16:12:36 +08:00
Wang Meng Yang
4fecbc30fa Merge branch 'bugfix/spp_vfs_mode_send_data_fail_v4.3' into 'release/v4.3'
bt: Fixed SPP VFS mode not being able to send data(v4.3)

See merge request espressif/esp-idf!20802
2022-10-27 10:50:11 +08:00
jgujarathi
c7edfd4ef0 esp-wifi: Restores station status to connected when no other AP is found for roam 2022-10-26 19:03:27 +05:30
jingli
91b147c9da wifi/bt: fix part of modem module not reset when power up 2022-10-26 20:47:10 +08:00
wangmengyang
de2e183c9a bt: use non-blocking coexistence callback functions so that Wi-Fi task is not blocked by Bluetooth for ESP32 2022-10-26 19:13:16 +08:00
Wang Meng Yang
067d5fb28d Merge branch 'bugfix/handle_issue_of_malloc_fail_v4.3' into 'release/v4.3'
bugfix/avoid unexpected free when malloc failed (v4.3)

See merge request espressif/esp-idf!20726
2022-10-26 18:57:28 +08:00
jingli
d8141bdf51 esp_hw_support/sleep: fix light sleep wakeup flag
light sleep wakeup flag is true to indicate the most recent successful wakeup from light sleep,
which means the most recent light sleep occurred successfully and then wakes up by wakeup source
2022-10-26 17:07:07 +08:00
jingli
b6491464e1 esp32/rtc: fix xtal unstable in some cases when sleep
1. add xtal buf wait to fix high temperature restart issue
2. add min sleep value to fix xtal stop due to too short sleep time issue
2022-10-26 17:05:07 +08:00
xiongweichao
45d4780760 bt: Fixed SPP VFS mode not being able to send data 2022-10-26 16:27:49 +08:00
Jiang Jiang Jian
a2086ca355 Merge branch 'bugfix/fix_esp32_esp32c3_some_bugs_v4.3' into 'release/v4.3'
Fixed BLE lld_per_adv.c line 401 assert on ESP32C3 (backport v4.3)

See merge request espressif/esp-idf!20759
2022-10-26 11:07:37 +08:00
Jiang Jiang Jian
69ae164794 Merge branch 'bugfix/update_ctrl_init_config_macro_v4.3' into 'release/v4.3'
Bugfix/update ctrl init config macro (v4.3)

See merge request espressif/esp-idf!20713
2022-10-25 17:41:53 +08:00
Jiang Jiang Jian
031d4c904c Merge branch 'bugfix/crash_in_i2s_when_reconnect_to_a2dp_v4.3' into 'release/v4.3'
fixed crash in I2S when reconnect to a2dp sink (v4.3)

See merge request espressif/esp-idf!20720
2022-10-25 17:40:41 +08:00
zhiweijian
2dfdea8b50 update ble tx power level mapping 2022-10-24 20:10:48 +08:00
zhiweijian
8005e6f0d5 Fixed BLE lld_per_adv.c line 401 assert on esp32c3 2022-10-24 19:51:34 +08:00
Island
18efe0ec9b Merge branch 'bugfix/remove_get_modle_and_get_comp_api_forv4.3' into 'release/v4.3'
ble_mesh:example:change the method of get model(for v4.3)

See merge request espressif/esp-idf!20394
2022-10-24 19:42:41 +08:00
zwj
858b869bb6 Fixed ESP32 BLE assert(32 0) 2022-10-24 19:36:58 +08:00
zwj
38945f54e1 allow bluedroid host to report adv_ind separately 2022-10-24 19:36:47 +08:00
Jiang Jiang Jian
d96bb082ba Merge branch 'bugfix/esp_spp_write_len_0_v4.3' into 'release/v4.3'
bt: Fixed esp_spp_write() crash when len is 0 (v4.3)

See merge request espressif/esp-idf!20707
2022-10-24 12:31:37 +08:00
Jiang Jiang Jian
1adb0b6b94 Merge branch 'bugfix/fix_some_wifi_bugs_1019_v4.3' into 'release/v4.3'
esp_wifi: fix deinit return wrong value(Backport v4.3)

See merge request espressif/esp-idf!20733
2022-10-24 11:21:39 +08:00
Fu Hanxi
a03444ebdd Merge branch 'ci/force_based_on_commit_v4.3' into 'release/v4.3'
ci: support one pipeline must based on commmits (v4.3)

See merge request espressif/esp-idf!17923
2022-10-24 08:57:42 +08:00
Li Shuai
54d59fae28 sleep: beacon loss and noise check timer optimize for wifi power save
esp_phy: optimize phy calibration for C3
2022-10-21 21:43:24 +08:00
tgotic
416f9b0cea [bt] fix if allocation fails
If osi_malloc fails for work_queues or osi_work_queue_create fails, osi_work_queue_delete in _err may release unallocated memory.
2022-10-21 14:46:12 +08:00
Jiang Jiang Jian
dd62e3bb9b Merge branch 'bugfix/close_stack_callback_during_ble_stop_v4.3' into 'release/v4.3'
Nimble: Added check to deregister stack callback with controller during stack deinit(v4.3)

See merge request espressif/esp-idf!20605
2022-10-21 14:21:41 +08:00
Jin Cheng
c8db15a4cd fixed crash in I2S when reconnect to a2dp sink 2022-10-21 14:11:56 +08:00
Evan Neidler
850efb4bbe Update #define BT_CONTROLLER_INIT_CONFIG_DEFAULT().
Corrects header names in string from "bt.h" to "esp_bt.h".
2022-10-21 12:03:39 +08:00
xiongweichao
58a7082114 bt: Fixed esp_spp_write() crash when len is 0
Closes https://github.com/espressif/esp-idf/issues/9977
2022-10-21 11:21:51 +08:00
Fu Hanxi
eab8c067bd ci: support one pipeline must based on commmits 2022-10-20 12:41:30 +00:00
Jiang Jiang Jian
844624ead2 Merge branch 'bugfix/revert_commit_da44fc9c_v4.3' into 'release/v4.3'
Revert "fixed the issue iOS devices cannot initiate connection" (v4.3)

See merge request espressif/esp-idf!20667
2022-10-20 19:18:28 +08:00
Jiang Jiang Jian
d2cc0f9f77 Merge branch 'bugfix/add_security_patches_v4.3' into 'release/v4.3'
Adding security patch for SAE side channel attacks (Backport v4.3)

See merge request espressif/esp-idf!20650
2022-10-20 19:17:36 +08:00
muhaidong
bfdccbd7cb esp_wifi: fix deinit return wrong value
1. Deinit does not return ESP_ERR_WIFI_NOT_INIT if the wifi driver is no longer initialized.
2. Fix get wrong channel value use esp_wifi_get_config.
3. Fix bug of missing unlock when wifi stop.
4. Fix annotation error of api esp_wifi_connect.
2022-10-20 11:41:07 +08:00