Michael (XIAO Xufeng)
17b9cc6b4a
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-05-12 15:57:09 +08:00
morris
009e66e625
Merge branch 'feature/esp_lcd_read_i2c_v4.4' into 'release/v4.4'
...
Feature/esp lcd read i2c (backport v4.4)
See merge request espressif/esp-idf!18066
2022-05-11 22:33:41 +08:00
Zim Kalinowski
9f2d407105
Merge branch 'bugfix/i2c_too_short_panics_v4.4' into 'release/v4.4'
...
I2C: Read transactions, without a STOP, won't panic anymore (backport v4.4)
See merge request espressif/esp-idf!17954
2022-05-11 14:04:46 +08:00
morris
571afca7dc
Merge branch 'bugfix/rmt_undetermined_idle_level' into 'release/v4.4'
...
rmt: fix undetermined idle level (v4.4)
See merge request espressif/esp-idf!18035
2022-05-11 12:25:21 +08:00
Vilem Zavodny
c9b0be6ef7
esp_lcd: Add support for rx_param on I2C transport.
...
(cherry picked from commit 4a2766d906
)
2022-05-10 15:03:53 +02:00
morris
f33720a263
rmt_legacy: fix undetermined idle level
...
Closes https://github.com/espressif/esp-idf/issues/8864
2022-05-08 07:20:30 +00:00
Michael (XIAO Xufeng)
4222e93351
Merge branch 'flash/opi_12345G_support_v4.4' into 'release/v4.4'
...
opi_flash: Add new 16MB opi flash (MX25UW12345G) support.(backport v4.4)
See merge request espressif/esp-idf!17782
2022-05-08 12:23:18 +08:00
morris
b021055190
Merge branch 'bugfix/i2s_only_right_mode_v4.4' into 'release/v4.4'
...
i2s: fix only right case and mono stereo switch issue (v4.4)
See merge request espressif/esp-idf!18022
2022-05-07 22:46:45 +08:00
laokaiyao
cdaa440d98
i2s: fix only right case v4.4
2022-05-07 13:43:01 +00:00
morris
baa2748f23
Merge branch 'docs/fix_command_in_partition-tables_4.4' into 'release/v4.4'
...
docs: Fix a command in partition-tables.rst (backport v4.4)
See merge request espressif/esp-idf!18029
2022-05-07 16:57:14 +08:00
mofeifei
91315de70c
docs: fix a command in partition-tables
2022-05-07 15:15:22 +08:00
Jiang Jiang Jian
123288c1c6
Merge branch 'bugfix/default_ssid_not_set_v4.4' into 'release/v4.4'
...
esp_wifi: Fix for default ap ssid not set.(v4.4)
See merge request espressif/esp-idf!18005
2022-05-07 12:36:41 +08:00
Jiang Jiang Jian
d72ba54138
Merge branch 'bugfix/fix_websocket_server_v4.4' into 'release/v4.4'
...
fix(server): Fix websocket server not support handle multiple connections when client send CLOSE frame (backport v4.4)
See merge request espressif/esp-idf!18018
2022-05-07 10:17:59 +08:00
morris
97caa51152
Merge branch 'bugfix/spi_slave_intr_iram_v4.4' into 'release/v4.4'
...
driver: spi_slave: make sure CS helpers are in IRAM if the ISR is (v4.4)
See merge request espressif/esp-idf!17831
2022-05-06 22:23:13 +08:00
yuanjm
e759fa4697
fix(server): Fix websocket server not support handle multiple connections when client send CLOSE frame
2022-05-06 17:55:14 +08:00
morris
2cd59a1a77
Merge branch 'docs/update_usb_pins_and_add_a_note_to_uart_v4.4' into 'release/v4.4'
...
doc: update usb pins and provide a note in api-reference/uart (v4.4)
See merge request espressif/esp-idf!17986
2022-05-05 18:31:14 +08:00
aditi_lonkar
88f79ca9ca
esp_wifi: Fix for default ap ssid not set.
...
Closes https://github.com/espressif/esp-idf/issues/8744
2022-05-05 14:04:49 +05:30
Roland Dobai
e12b3c5644
Merge branch 'fix/idf_tools_fstrings_v4.4' into 'release/v4.4'
...
Tools: Don't use f-string in idf_tools.py
See merge request espressif/esp-idf!17990
2022-05-04 22:30:49 +08:00
Roland Dobai
7b33262d26
Tools: Don't use f-string in idf_tools.py
...
ESP-IDF v4.4 supports Python 3.6 or newer. F-strings are available there
but idf_tools.py can fail if run with older Pythons because the Python
version check is done later.
Closes https://github.com/espressif/esp-idf/issues/8890
2022-05-04 12:01:49 +02:00
Ivan Grokhotkov
a6a245f75f
Merge branch 'feature/ftruncate_vfs_fatfs_support_v4.4' into 'release/v4.4'
...
fatfs: Implement ftruncate function in VFS and FAT VFS (v4.4)
See merge request espressif/esp-idf!17864
2022-05-04 08:14:46 +08:00
Wang Fang
70c336963b
doc: update usb pins and provide a note in api-reference/uart
...
Closes https://github.com/espressif/esp-idf/issues/8811
Signed-off-by: Ivan Grokhotkov <ivan@espressif.com>
2022-05-03 23:41:02 +02:00
Ivan Grokhotkov
a615fccd01
Merge branch 'bugfix/spiffs_check_part_alignment_v4.4' into 'release/v4.4'
...
spiffs: add init checks for partition alignment and data types (v4.4)
See merge request espressif/esp-idf!17835
2022-05-03 17:01:50 +08:00
Jiang Jiang Jian
b6f4629e11
Merge branch 'bugfix/_rtc_slow_length_incorrectly_optimized_backport_v4.4' into 'release/v4.4'
...
sleep_power_domain: fix _rtc_slow_length being incorrectly optimized by compiler(backport v4.4)
See merge request espressif/esp-idf!17974
2022-05-03 15:04:09 +08:00
Jiang Jiang Jian
653cddf091
Merge branch 'bugfix/fix_rtc_mem_load_err_backport_v4.4' into 'release/v4.4'
...
rtc_regulator: fix rtc mem load err(backport v4.4)
See merge request espressif/esp-idf!17977
2022-05-03 15:03:41 +08:00
Vamshi Gajjela
ebb9cc3670
fatfs: Add ftruncate api support for VFS and FAT-VFS
...
Unit test cases added to verify ftruncate within fatfs tests.
Closes https://github.com/espressif/esp-idf/issues/8279
2022-05-02 04:37:56 +00:00
jingli
a2f141807f
fix rtc mem load err(since the voltage of rtc regulator is too low)
2022-05-01 23:29:12 +08:00
jingli
74399f5b44
fix _rtc_slow_length being incorrectly optimized by compiler
2022-05-01 23:14:18 +08:00
Jiang Jiang Jian
8efd164e7f
Merge branch 'bugfix/fix_esp32c3_brownout_bug_after_deepsleep_v4.4' into 'release/v4.4'
...
rtc: fix c3 brownout bug after deepsleep (backport v4.4)
See merge request espressif/esp-idf!17957
2022-05-01 17:29:33 +08:00
David Čermák
8c8f700c1d
Merge branch 'update/mqtt_refs_v4.4' into 'release/v4.4'
...
mqtt: Fix sending log data; dup flag after queue (v4.4)
See merge request espressif/esp-idf!17402
2022-04-28 22:45:59 +08:00
chaijie
fe83802d65
fix c3 brownout bug after deepsleep
2022-04-28 18:23:28 +08:00
Jiang Jiang Jian
dcc77b0bed
Merge branch 'bugfix/idle_task_skipped_light_sleep_backport_v4.4' into 'release/v4.4'
...
pm_impl: fix neither enter light sleep nor enter waiti state in idle task(backport v4.4)
See merge request espressif/esp-idf!17837
2022-04-28 16:12:23 +08:00
David Cermak
198dfc92dd
mqtt: Fix sending log data; dup flag after queue
...
* Fix sending mqtt message longer than Tx buffer size
* Fix enqueue API to send data with correct dup flag
* Update submodule: git log --oneline b86d42c130ac64a916ce6cf299d99f9756692394..985078affa8a2d2b56b87c8e6455252850f895c6
Detailed description of the changes:
* Isolate IDF env for v4.4 and v5.0(master)
- See merge request espressif/esp-mqtt!111
- ci: Isolate IDF env for v4.4 and v5.0(master) (espressif/esp-mqtt@4c5a65c )
* Client: Remove usage of legacy FreeRTOS types
- See merge request espressif/esp-mqtt!120
- ci: Fix build issues with IDF-4.4 against master (espressif/esp-mqtt@c28a56d )
- See commit https://github.com/espressif/esp-mqtt/commit/6ef98d6
* mqtt_client: Fix mqtt send long data error
- See merge request espressif/esp-mqtt!117
- Closes https://github.com/espressif/esp-mqtt/issues/214
- See commit https://github.com/espressif/esp-mqtt/commit/372b323
* Client: Fix use esp_mqtt_client_enqueue API to send data, data dup flag will be set 1
- See merge request espressif/esp-mqtt!116
- See commit https://github.com/espressif/esp-mqtt/commit/df8dc92
2022-04-28 07:55:25 +00:00
Roland Dobai
6398e19245
Merge branch 'feature/update_openocd_version_v4.4' into 'release/v4.4'
...
Update OpenOCD version (v4.4)
See merge request espressif/esp-idf!17934
2022-04-28 14:58:59 +08:00
Omar Chebib
0da60f7b83
I2C: Read transactions, without a STOP, won't panic anymore
...
* Closes https://github.com/espressif/esp-idf/issues/8548
2022-04-28 14:05:22 +08:00
Michael (XIAO Xufeng)
4178cdaa4f
Merge branch 'bugfix/wrong_gpio_is_deep_sleep_wakeup_valid_gpio_v4.4' into 'release/v4.4'
...
gpio: fix wrong GPIO_IS_DEEP_SLEEP_WAKEUP_VALID_GPIO macro (backport v4.4)
See merge request espressif/esp-idf!17807
2022-04-28 11:19:20 +08:00
Jiang Jiang Jian
4fedbdd264
Merge branch 'bugfix/spp_crash_after_call_spp_deinit_v4.4' into 'release/v4.4'
...
Component_bt/Fix spp crash after call esp_spp_deinit(v4.4)
See merge request espressif/esp-idf!17930
2022-04-28 01:26:06 +08:00
Marius Vikhammer
eff2402b5b
Merge branch 'docs/remove_bt_doc_fillers_v4.4' into 'release/v4.4'
...
docs: remove filler template content from BT docs (v4.4)
See merge request espressif/esp-idf!17947
2022-04-27 20:35:06 +08:00
Jiang Jiang Jian
9ae38aa873
Merge branch 'bugfix/fix_disable_bt_log_ci_fail_v4.4' into 'release/v4.4'
...
component_bt: Fix CI failure when disable bluetooth debug log(v4.4)
See merge request espressif/esp-idf!17899
2022-04-27 18:20:41 +08:00
Jiang Jiang Jian
ef7ce17dbd
Merge branch 'bugfix/fix_build_warring_v4.4' into 'release/v4.4'
...
esp_phy: fix build warning(v4.4)
See merge request espressif/esp-idf!17840
2022-04-27 18:19:27 +08:00
Marius Vikhammer
fc30e896c0
docs: remove filler template content from BT docs
2022-04-27 17:51:27 +08:00
Jiang Jiang Jian
fd45998249
Merge branch 'contrib/github_pr_8779_v4.4' into 'release/v4.4'
...
esp_wifi: fix clearing default wifi netif procedure(v4.4)
See merge request espressif/esp-idf!17938
2022-04-27 17:17:47 +08:00
Anton Maklakov
e72017bb23
tools: print system platform
2022-04-27 08:58:32 +02:00
Erhan Kurubas
6ae22d9f3b
tools: add distro links for macos-arm64
2022-04-27 08:56:33 +02:00
Erhan Kurubas
46c5be3197
tools: OpenOCD version updated to v0.11.0-esp32-20220411
2022-04-27 08:55:36 +02:00
xiongweichao
6232753804
Fix spp initialization failure without free mutex
2022-04-27 14:19:59 +08:00
xiongweichao
eb8a4d3423
Fix spp crash after calling esp_spp_deinit
2022-04-27 14:19:50 +08:00
Krzysztof Lewandowski
e0d6398a99
esp_wifi: fix clearing default wifi netif procedure
...
Prior to this change "esp_wifi_clear_default_wifi_driver_and_handlers"
will not remove netif pointer from table when both AP and STA interfaces were
created and destroying default wifi interfaces is done in unfortunate
order. As a result there is dangling pointer left and it may cause crash in
later code (i.e. when esp_wifi_stop() is called).
2022-04-26 22:50:40 -04:00
Island
c41208550a
Merge branch 'bugfix/oversized_SegN_as_valid_v4.4' into 'release/v4.4'
...
ble_mesh: stack: Bugfix for oversized SegN as valid(v4.4)
See merge request espressif/esp-idf!17772
2022-04-26 20:11:35 +08:00
Jiang Jiang Jian
75e50e97f8
Merge branch 'bugfix/scan_mixed_keymgmt_issue_v4.4' into 'release/v4.4'
...
Combined fix for scan issue and PMF disable API (Backport v4.4)
See merge request espressif/esp-idf!17743
2022-04-26 19:24:12 +08:00
Jessy Chen
e57697aef2
esp_phy: fix tx power limit for esp32s2/s3/c3
2022-04-26 03:36:47 -04:00