jingli
24eea75f9c
esp_hw_support/sleep: fix current leakage when hold digital io during deep sleep
2022-11-18 03:00:01 +00: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
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
jingli
91b147c9da
wifi/bt: fix part of modem module not reset when power up
2022-10-26 20:47:10 +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
chenjianhua
0446de4429
Revert "component/bt: add local irk to controller"
...
This reverts commit 032f6d34d1
.
2022-10-09 15:28:39 +08:00
jingli
07d69b7cae
esp_hw_support/clk_cali: fix xtal32k error detect
2022-09-21 16:29:36 +08:00
wanlei
8290d450f3
spi_master:fix error when use spi_bus_add_device
more than 3 device
...
update gpio_sig at `spics_out` array in each spi_periph.c of chips later than s2
then `spi_bus_add_device` can correctly distribute gpio_signals for cs_signal
Closes https://github.com/espressif/esp-idf/issues/8876
2022-09-14 12:40:29 +08:00
Jiang Jiang Jian
1b40e6173e
Merge branch 'bugfix/i2c_timeout_issue_v4.3' into 'release/v4.3'
...
I2C: patch for solving watchdog timeout issue(backport v4.3)
See merge request espressif/esp-idf!18132
2022-06-09 11:10:57 +08:00
Wu Zheng Hui
a0b1d016e4
efuse: update efuse name (backport v4.3)
2022-05-31 14:42:05 +08:00
Cao Sen Miao
75f6279c22
I2C: patch for solving watchdog timeout issue
2022-05-17 16:56:58 +08:00
Jiang Jiang Jian
1955dcda69
Merge branch 'bugfix/bootloader_uart_custom_gpio_v4.3' into 'release/v4.3'
...
bootloader: fixed the issue custom_uart_gpio doesn't take effect (v4.3)
See merge request espressif/esp-idf!17308
2022-03-03 16:49:49 +08:00
songruojing
1bcb419fd2
uart: fixed reset logic on ESP32-S3
2022-03-02 02:56:23 +08:00
songruojing
5f3f615ff1
uart: fixed incorrect channel number on ESP32S2, S3 and C3
2022-03-02 02:56:23 +08:00
songruojing
f5f7a77895
gpio: Fix the bug that gpio interrupt cannot be triggered on app cpu on ESP32S3
...
Closes https://github.com/espressif/esp-idf/issues/7885
(cherry picked from commit 91f1159f9c
)
2022-02-28 16:10:37 +08:00
Marius Vikhammer
2a28ec3522
crypto: also apply cache writeback/invalidate for SPIRAM_USE_MEMMAP
...
Closes https://github.com/espressif/esp-idf/issues/7944
2022-01-06 08:11:57 +08:00
weitianhua
b2fba50e78
Remove dummy defines of Classic BT
2021-10-29 14:37:23 +08:00
weitianhua
58ff27cc03
Make Classic BT related document links only visible for ESP32
2021-10-29 14:25:31 +08:00
Jiang Jiang Jian
54b25318cd
Merge branch 'bugfix/remove_dis_rtc_ram_boot_efuse_bit_backport_v4.3' into 'release/v4.3'
...
efuse: remove DIS_RTC_RAM_BOOT efuse bit (backport v4.3)
See merge request espressif/esp-idf!15233
2021-10-26 03:59:46 +00:00
Wu Zheng Hui
e5bd4427e3
fix efuse err address in block0 (backport v4.3)
2021-10-22 13:06:40 +08:00
wuzhenghui
fd5a63f31e
modify csv & generate
...
update efuse_reg.h & efuse_struct.h & references in rst file
2021-10-21 19:24:12 +08:00
suda-morris
91fa868bd6
twai: update register struct file
2021-10-12 10:42:04 +08:00
Li Shuai
aac59ed5ec
Power Management: add XTAL power domain to control whether external 40MHz xtal is powered down during sleep
2021-09-28 11:21:31 +08:00
Li Shuai
4ef6e37fcb
Power Management: add RTC8M power domain to control whether internal 8m oscillator is powered down during sleep
2021-09-28 11:19:57 +08:00
Michael (XIAO Xufeng)
7716134457
idf_size.py: fixed diram counted twice issue, and improve display
...
Currently static RAM usage are listed under corresponding physical
memory.
ld: fix linker script for C3 and S3
2021-09-01 16:36:47 +02:00
xiewenxiang
032f6d34d1
component/bt: add local irk to controller
2021-08-06 18:19:25 +08:00
xiewenxiang
192aa18c31
Fixed ESP32 BLE can't resolve the peer address when enable white list
2021-07-30 15:09:00 +08:00
Darian Leung
9b014138bf
Update TWAI driver docs and registers for esp32c3
...
This commit updates the documentation and register struct
of the TWAI driver for the ESP32-C3. Note that the register
fields for ESP32-S3 have also been updated.
2021-06-23 19:26:16 +08:00
Darian Leung
07291fdd27
TWAI: FIFO overrun handling and errata workarounds
...
This commit adds handling for FIFO overruns and
adds workarounds for HW errats on the ESP32.
Closes https://github.com/espressif/esp-idf/issues/2519
Closes https://github.com/espressif/esp-idf/issues/4276
2021-04-26 19:35:13 +08:00
chaijie
e8282fb5c5
esp32s2/esp32s3/esp32c3: Decrease boot up time by delete useless slow clock calibration
2021-04-21 11:38:26 +00:00
fuzhibo
e310fb1393
fix: reduce the consumption of touch sensor during deep sleep
2021-04-12 12:24:53 +08:00
Michael (XIAO Xufeng)
76ff1724b3
Merge branch 'feature/remove_hspi_macor_on_chips_later_than_s2_v4.3' into 'release/v4.3'
...
spi: remove hspi macor on chips later than s2 (v4.3)
See merge request espressif/esp-idf!12956
2021-04-08 09:37:07 +00:00
Armando
670b057b04
spi: remove HSPI macro on esp32c3 and esp32s3
2021-04-06 15:30:28 +08:00
Marius Vikhammer
c9087c205b
docs: updated system api-reference chapters for C3
2021-03-30 14:28:02 +08:00
Angus Gratton
82ffb33085
Merge branch 'feature/crypto_reserve_gdma_ch_v4.3' into 'release/v4.3'
...
aes/sha: use a shared lazy allocated GDMA channel for AES and SHA (v4.3)
See merge request espressif/esp-idf!12676
2021-03-11 10:50:09 +00:00
Marius Vikhammer
1c8fd4041e
aes/sha: use a shared lazy allocated GDMA channel for AES and SHA
...
Removed the old dynamically allocated GDMA channel approach.
It proved too unreliable as we couldn't not ensure consumers of the mbedtls
would properly free the channels after use.
Replaced by a single shared GDMA channel for AES and SHA, which won't be
released unless user specifically calls API for releasing it.
2021-03-10 09:40:35 +08:00
Marius Vikhammer
fb82bdb9da
docs: update api-reference chapters for C3
...
Checked and updated the following chapters:
* api-reference/network
* api-reference/protocols
* api-reference/provisioning
* api-reference/storage
* api-reference/peripherals/ds
* api-reference/peripherals/hmac
* api-reference/peripherals/secure_element
2021-03-02 15:00:56 +08:00
Xia Xiaotian
9aae8e0ce3
esp_wifi: synchronize Wi-Fi adapter between different chips
...
Support preferring to allocate Wi-Fi memory from PSRAM on ESP32-S3
Support Wi-Fi TX cache buffer on ESP32-S3
2021-02-26 16:34:23 +08:00
Xia Xiaotian
e5e47ebae6
esp_wifi: store PHY digital registers before disabling PHY and load
...
them after enabling PHY
2021-02-26 16:34:10 +08:00
Armando
ed6fb33726
spi: remove hard-coded DMA chan in soc_caps.h
2021-02-25 11:03:07 +08:00
zhiweijian@espressif.com
28fd413bf5
fix ble restart faild when enable ble sleep
2021-01-27 14:45:03 +08:00
Michael (XIAO Xufeng)
7a20ea5f0e
Merge branch 'feature/support_flash_sus_res_c3' into 'master'
...
spi_flash: Add flash auto-suspend auto-resume mode on esp32c3
Closes IDF-2591
See merge request espressif/esp-idf!11888
2021-01-25 17:41:32 +08:00
Michael (XIAO Xufeng)
d7d1dee208
system: reset dma when soft reset
2021-01-25 04:51:40 +00:00
Cao Sen Miao
9905da46e0
spi_flash: Add auto suspend mode on esp32c3
2021-01-25 11:14:02 +08:00
Chen Jian Xing
f71adec8fb
Support ESP32S3 (beta2) WiFi
2021-01-25 00:18:42 +08:00
Michael (XIAO Xufeng)
a08265aad8
Merge branch 'bugfix/fix_x32k_config_param' into 'master'
...
esp32s2/esp32s3: Improve 32k xtal startup time
See merge request espressif/esp-idf!11836
2021-01-22 16:42:54 +08:00
Angus Gratton
3532f52f60
Merge branch 'bugfix/ldgen_ignore_nonexistent_archives_and_obj' into 'master'
...
ldgen: check mappings
Closes IDF-1624
See merge request espressif/esp-idf!8557
2021-01-21 15:59:35 +08:00
Angus Gratton
fe8a891de9
Merge branch 'feature/support_esp32c3_master_cmake_secure_boot' into 'master'
...
bootloader/esp32c3: Support secure boot
Closes IDF-2115
See merge request espressif/esp-idf!11797
2021-01-21 08:42:49 +08:00
Angus Gratton
cfdd7f0f22
Merge branch 'feature/c3_crypto_gdma' into 'master'
...
AES/SHA: GDMA crypto driver
Closes IDF-2192 and IDF-2501
See merge request espressif/esp-idf!12014
2021-01-20 16:42:39 +08:00