liuning
b439f7568c
sleep_modem: split esp_wifi_internal_mac_sleep_configure, add lock for pm functions
2023-09-20 19:49:54 +08:00
liuning
f66740362e
fix(sleep_modem): fix lightsleep failure if enable lightsleep at phy disabled
2023-09-20 19:49:42 +08:00
Lou Tianhao
3dc3ee0817
feat(pm/deepsleep): support pd hp aon domain in deepsleep
2023-09-20 19:26:35 +08:00
Jiang Jiang Jian
41d8715dfe
Merge branch 'feat/add_internal_pull_up_or_pull_down_option_for_deepsleep_wakeup_prepare_v5.1' into 'release/v5.1'
...
feat(pm): add internal pull-up/downs option for gpio used for deepsleep wakeup (backport v5.1)
See merge request espressif/esp-idf!26040
2023-09-20 19:15:48 +08:00
hongshuqing
bb33a2bf6b
fix cpu switches freq bug s2s3 to v5.1
2023-09-19 11:27:08 +08:00
Lou Tianhao
86e5252d63
feat(pm): add internal pull-up/downs option for gpio used for deepsleep wakeup
2023-09-19 10:59:57 +08:00
Armando
cd193469f2
fix(mspi): fixed bbpll calibration issue
2023-09-15 10:38:44 +08:00
Planck (Lu Zeyu)
25922444a6
fix(test_etm): fix vTaskDelay caused ci failure
2023-09-13 10:04:30 +08:00
Jiang Jiang Jian
5d7bcdcf82
Merge branch 'bugfix/esp32c6_udp_bc_mc_short_time_cause_packet_loss_v5.1' into 'release/v5.1'
...
backport v5.1: optimize the retention step of the APM and TEE modules to set only the critical parts to level 2 priority
See merge request espressif/esp-idf!25837
2023-09-12 20:50:12 +08:00
Jiang Jiang Jian
8d0858060a
Merge branch 'feature/management_modem_etm_clock_indepently_v5.1' into 'release/v5.1'
...
feat(esp_hw_support): manage modem_etm clock in modem_clock for bt/154 indepently (backport v5.1)
See merge request espressif/esp-idf!25793
2023-09-08 10:16:59 +08:00
Li Shuai
cbb2a3f8fa
fix(esp32c6/power save): optimize the retention step of the APM and TEE modules to set only the critical parts that affect wifi data frame receipt to level 2 priority
2023-09-07 14:31:12 +08:00
wuzhenghui
d3bfaf8f5f
feat(esp_hw_support): manage modem_etm clock in modem_clock for bt/154 indepently
2023-09-06 15:48:37 +08:00
cjin
d94c9d141b
feat: added ble wake up overhead support
2023-09-05 15:10:38 +08:00
Marius Vikhammer
e10e95282d
Merge branch 'fix/bp_wp_in_panic_v5.1' into 'release/v5.1'
...
fix(breakpoint): fix bp/wp logic when debugger is connected (v5.1)
See merge request espressif/esp-idf!25633
2023-08-31 19:50:11 +08:00
Erhan Kurubas
1c27df8189
fix(breakpoint): fix bp/wp logic when debugger is connected
2023-08-29 12:32:06 +02:00
Li Shuai
6e852f86d9
fix(esp32c6/power save): improve TEE and APM module retention priority to 2 to avoid the wifi fail to read the rxbuf link and trigger the rxbuf overflow error
2023-08-29 16:30:02 +08:00
Jiang Jiang Jian
88e436f85a
Merge branch 'feature/add_ci_for_esp_wifi_powersave_example_v5.1' into 'release/v5.1'
...
ci(wifi): add pytest case for wifi powersave example (backport v5.1)
See merge request espressif/esp-idf!25499
2023-08-28 10:28:44 +08:00
Mahavir Jain
5758b66a9f
Merge branch 'ci/fix_test_switch_ota_v5.1' into 'release/v5.1'
...
fix(app_update): Fix CI test_switch_ota by increasing deepsleep (v5.1)
See merge request espressif/esp-idf!25465
2023-08-24 12:16:51 +08:00
morris
a66f61e33f
Merge branch 'feature/usb_host_restrict_ahb_errata_workaround_to_esp32s2_eco0_v5.1' into 'release/v5.1'
...
USB Host: Restrict ESP32-S2 AHB errata workaround to only ECO0 chips (v5.1)
See merge request espressif/esp-idf!25054
2023-08-24 10:12:48 +08:00
Marius Vikhammer
9838675d3b
Merge branch 'bugfix/intr_flags_to_level_v5.1' into 'release/v5.1'
...
fix(intr_flags_to_level): fix value returned one more than correct value (v5.1)
See merge request espressif/esp-idf!25424
2023-08-24 08:34:37 +08:00
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
wuzhenghui
c517a15dd2
fix(light_sleep): shouldn't backup uart fifo reg in pd_top light sleep
2023-08-23 18:00:48 +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
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
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
wuzhenghui
d5396e1d84
fix(esp_hw_support): fix esp32h2 wakeup process access flash cause crash
2023-08-16 20:44:16 +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
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
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
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
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
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
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
Mahavir Jain
a0d882c25e
fix(esp32h2): correct typo in chip revision prompt
2023-07-28 13:45:28 +00:00
wuzhenghui
9df77e015a
fix(rtc_clk): fix i2c master clock missing in bbpll configure
2023-07-21 11:01:56 +00: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
16d849b95e
fix(esp_pm): fix flash access after light sleep wakeup
2023-07-15 01:41:03 +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
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
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
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
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
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
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
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
Armando
6acc155516
fix(regi2c): wrong ADC_CALI_PD_WORKAROUND on c6, h2
2023-07-12 17:28:01 +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
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
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
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
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
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
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
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
Armando
f142415475
spiflash: added esp_flash API concurrency pressure test
2023-07-07 10:13:28 +08:00
laokaiyao
57312e6e3e
adc_calib: support calibration v2 on esp32c6
2023-07-06 10:36:29 +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
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
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
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
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
Jiang Jiang Jian
b0717c6852
Merge branch 'feature/enable_sleep_reject_for_deep_sleep_v5.1' into 'release/v5.1'
...
sleep: enable sleep reject when entering deepsleep (backport v5.1)
See merge request espressif/esp-idf!24440
2023-07-04 12:16:11 +08:00
Jiang Jiang Jian
159e80246b
Merge branch 'feature/add_modem_module_rst_api_v5.1' into 'release/v5.1'
...
modem_clock: add modem module mac reset api (backport v5.1)
See merge request espressif/esp-idf!24441
2023-07-04 12:15:33 +08:00
Jiang Jiang Jian
207e589917
Merge branch 'bugfix/support_esp32c6_sleep_retention_extra_link_v5.1' into 'release/v5.1'
...
backport v5.1: support extra linked list retention for BLE and 15.4
See merge request espressif/esp-idf!24220
2023-07-04 12:11:04 +08:00
cjin
30a67ed72c
btbb: support register retention in esp32c6
2023-07-04 12:09:22 +08:00
cjin
e72359fc66
ble:added esp32c6 light sleep support
2023-07-04 12:09:22 +08:00
Jiang Jiang Jian
27a5a6fcae
Merge branch 'bugfix/fix_esp32s3_psram_access_failed_in_dfs_v5.1' into 'release/v5.1'
...
esp_pm: fix esp32s3 psram access failed when dfs is enabled (backport v5.1)
See merge request espressif/esp-idf!24202
2023-07-04 12:06:42 +08:00
Jiang Jiang Jian
4647045388
Merge branch 'bugfix/support_esp326_xtal_xpd_v5.1' into 'release/v5.1'
...
esp32c6: support xtal xpd (backport v5.1)
See merge request espressif/esp-idf!24253
2023-07-04 12:04:51 +08:00
morris
934bdca370
Merge branch 'feature/add_log_when_mspi_timing_tuning_is_enabled_v5.1' into 'release/v5.1'
...
mspi: added timing tuning start, and success log (v5.1)
See merge request espressif/esp-idf!24053
2023-07-04 11:02:20 +08:00
Marius Vikhammer
1bf26b2def
Merge branch 'bugfix/incorrect_time_after_ota_v5.1' into 'release/v5.1'
...
esp_hw_support: Fix invalid system time if s_esp_rtc_time_us & s_rtc_last_ticks were moved around (v5.1)
See merge request espressif/esp-idf!24408
2023-07-03 20:37:40 +08:00
morris
cacb45d450
Merge branch 'bugfix/coverity_scan_fix_driver_v5.1' into 'release/v5.1'
...
ADC: Fixed potential multiply overflow in the calibration code (v5.1)
See merge request espressif/esp-idf!24091
2023-07-03 13:40:22 +08:00
cjin
06c6281add
ble: support esp32h2 modem clock selection
2023-07-03 11:45:16 +08:00
morris
c44624c056
Merge branch 'feature/esp_rom_update_cpu_freq_v5.1' into 'release/v5.1'
...
bootloader_support: add missing esp_rom_sys.h to bootloader_flash.c bootloader build (v5.1)
See merge request espressif/esp-idf!24014
2023-07-03 11:38:38 +08:00
Mahavir Jain
0bf93134f4
Merge branch 'feature/anti_dpa_configuration_c6_h2_v5.1' into 'release/v5.1'
...
esp32c6/esp32h2: crypto: add support for DPA protection configuration (v5.1)
See merge request espressif/esp-idf!24128
2023-06-30 23:50:44 +08:00
Jiang Jiang Jian
cbce221e88
Merge branch 'bugfix/mac_ext_order_for_c6_h2_v5.1' into 'release/v5.1'
...
efuse: Fix byte order in MAC_EXT (for C6 and H2) (v5.1)
See merge request espressif/esp-idf!23990
2023-06-28 17:33:53 +08:00
wuzhenghui
2e5a194f62
esp_hw_support: add modem module mac reset api
2023-06-28 14:01:29 +08:00
wuzhenghui
981701755d
ci: fix failed ci test jobs
2023-06-28 13:55:26 +08:00
wuzhenghui
1c12743d44
sleep: enable sleep reject when entering deep sleep and return err if sleep request is rejected
2023-06-28 13:55:16 +08:00
KonstantinKondrashov
6d0d2366f7
esp_hw_support: Fix invalid system time if s_esp_rtc_time_us & s_rtc_last_ticks were moved around
...
The commit fixes the case:
If variables in RTC RAM have been moved around by the linker,
they will be filled with garbage data. Any reset other than OTA would work fine
because the variables would still be initialized from the initial bootup.
So now system time will be valid even after OTA.
Closes https://github.com/espressif/esp-idf/issues/9448
2023-06-26 18:12:30 +08:00
wuzhenghui
f0860ac590
ci: add access psram with DFS unity test
2023-06-19 10:21:46 +08:00
wuzhenghui
ad1605a464
bugfix: fix esp32s3 psram access failed when dfs is enabled
2023-06-19 10:21:42 +08:00
wuzhenghui
8aa7e85e31
sleep: Fix domain power down status cannot get updated accordingly with the allowance of retention in runtime
2023-06-15 10:26:59 +08:00
wuzhenghui
f0b6e8f37e
feature: support xtal_xpd pmu parameters
2023-06-15 10:22:33 +08:00
Li Shuai
ccd4ff2945
sleep retention: implement the extra linked list retention for modules with retention clock bugs
2023-06-13 21:05:36 +08:00
Li Shuai
ef4c0a7753
sleep retention: fix crash issue caused by destroying the module after the module node creation fails
2023-06-13 21:04:38 +08:00
KonstantinKondrashov
e44a6888ea
mac_addr(C6 and H2): Fix byte order of MAC_EXT and change format of IEEE802154 MAC
...
The changes only related to C6 and H2 chips where CONFIG_SOC_IEEE802154_SUPPORTED=y.
For this case these APIs return 8 bytes
esp_efuse_mac_get_default() -> 8 bytes
esp_efuse_mac_get_custom() -> 8 bytes
esp_read_mac(..., ESP_MAC_IEEE802154) -> 8 bytes
The rest cases len is 6 bytes
2023-06-13 16:56:13 +08:00
Armando
778a045e66
mspi: added timing tuning start, and success log
2023-06-12 11:49:05 +08:00
Mahavir Jain
1764a0bd28
crypto: add support for DPA protection configuration in C6/H2
...
- Technical details covered in section "15.3.2 Anti-DPA Attack Security
Control" chapter of the ESP32-C6 TRM
- Default configuration sets the security level low for the DPA
protection
- This change applies to all the crypto peripherals where the clock
frequency is dynamically adjusted to create randomness in the power
consumption trajectory
- This configuration helps to make the SCA attacks difficult on the
crypto peripherals
2023-06-08 20:37:03 +05:30
morris
f9cf8db97e
drivers: fix issue reported by coverity
2023-06-07 11:42:11 +08:00
Jiang Jiang Jian
42592552b5
Merge branch 'feature/itwt_add_setup_timeout_timer_backport_v5.1' into 'release/v5.1'
...
esp_wifi: itwt add setup timeout timer to track response frame (backport v5.1)
See merge request espressif/esp-idf!24040
2023-06-03 08:40:41 +08:00
xuxiao
5a21bea309
esp_wifi: itwt add setup timeout timer to track response frame
2023-06-02 19:46:15 +08:00
wuzhenghui
03832dbd5e
bugfix: fix some flash funcs called in sleep wakeup process
2023-06-02 02:53:51 +00:00
morris
d5fb4ff7c8
esp_rom: add common ROM API to update CPU tick rate
2023-06-01 10:57:13 +08:00
Jakob Hasse
f4f45345ee
esp_hw_support: decrease RNG read frequency on C6 and H2
...
* The RNG reading frequency of 200 KHz has been too high for
C6 and H2 since on these chips the RNG output is combined
with the RTC slow clock which is only 150KHz. Reduced the max
reading frequency via esp_random() from 200KHz to 62.5KHz,
which show best results in tests.
Also updated the bootloader_fill_random() max frequency to the
same value to be in line, even though it was just 83KHz.
2023-05-31 16:16:25 +00:00
Michael (XIAO Xufeng)
30f8f83d52
Merge branch 'bugfix/add_warning_for_rc_fast_calibration_h2_v5.1' into 'release/v5.1'
...
clk: Add warning log if RC_FAST clock calibration is needed on esp32h2 (v5.1)
See merge request espressif/esp-idf!23935
2023-05-31 20:21:11 +08:00
Jiang Jiang Jian
5cd24826bb
Merge branch 'bugfix/fix_rc_fast_calibration_v5.1' into 'release/v5.1'
...
rtc_clk: fix esp32c6/esp32h2 eco chip `RC_FAST` bad calibration value (backport v5.1)
See merge request espressif/esp-idf!23940
2023-05-31 17:40:28 +08:00
Jiang Jiang Jian
0d13f6f09d
Merge branch 'bugfix/fix_hang_during_sleep_process_v5.1' into 'release/v5.1'
...
bugfix: fix hang on pd_top sleep process (backport v5.1)
See merge request espressif/esp-idf!23852
2023-05-31 17:40:02 +08:00
Jiang Jiang Jian
125d00c0f7
Merge branch 'feature/c6_bootloader_rng_v5.1' into 'release/v5.1'
...
Feature/c6 bootloader rng (v5.1)
See merge request espressif/esp-idf!23896
2023-05-26 15:36:45 +08:00
wuzhenghui
8c714acfb5
bugfix: fix rc_fast bad calibration value
2023-05-26 13:59:25 +08:00
Song Ruo Jing
702afbb0f7
clk: Add warning log if RC_FAST clock calibration is needed on esp32h2
2023-05-26 11:45:00 +08:00
Jakob Hasse
b0e2f33082
esp_hw_support/bootloader: made ESP32-C6 and ESP32-H2 RNG available
2023-05-24 09:43:21 +05:30
wuzhenghui
1df2dcc9fe
bugfix: treat too short sleep duration as sleep reject by software
2023-05-19 13:51:24 +08:00
wuzhenghui
00e777aff9
bugfix: fix pmp retention and add pma retention
2023-05-19 13:51:20 +08:00
Sudeep Mohanty
267c5e37a2
lp-i2c: Added support for LP I2C peripheral to LP core
...
This commit adds support for the LP I2C peripheral driver to be used by
the LP core. An example is also added to demonstrate the usage of the LP
I2C peripheral from the LP core.
2023-05-19 07:33:01 +02:00
Jiang Jiang Jian
ed32d7a267
Merge branch 'bugfix/move_adc_onshot_power_management_to_shot_read_func_v5.1' into 'release/v5.1'
...
Sleep: Fixed abnormal deepsleep base current of ULP ADC on esp32s2/esp32s3 chips (backport v5.1)
See merge request espressif/esp-idf!23828
2023-05-19 11:03:54 +08:00
Marius Vikhammer
19f300fa24
Merge branch 'bugfix/use_safe_noreturn_attr_v5.1' into 'release/v5.1'
...
compiler: replaced noreturn by __noreturn__ in header files (v5.1)
See merge request espressif/esp-idf!23811
2023-05-19 09:37:50 +08:00
wuzhenghui
ed076c2bc8
bugfix: move adc_oneshot_power_acquire/release to adc_oneshot_read
...
Closes https://github.com/espressif/esp-idf/issues/10595
Closes https://github.com/espressif/esp-idf/issues/11386
2023-05-18 20:08:47 +08:00
Jiang Jiang Jian
5b4c95c50f
Merge branch 'bugfix/update_esp32c6eco1_sleep_fosc_cal_cycles_backport_v5.1' into 'release/v5.1'
...
bugfix: update esp32c6 eco1 fosc calibration cycles during sleep(backport v5.1)
See merge request espressif/esp-idf!23490
2023-05-18 19:52:05 +08:00
Jakob Hasse
a6cbf68991
compiler: replaced noreturn by __noreturn__ in header files
...
* noreturn may be replaced by third-party macros,
rendering it ineffective
* Closes https://github.com/espressif/esp-idf/issues/11339
2023-05-18 12:49:40 +08:00
Magnus Sörensen
accb45f466
Update esp_cpu.h
...
If esp_attr.h is not included then there are no definitions for the symbol 'FORCE_INLINE_ATTR'.
2023-05-16 04:37:17 +00:00
Marius Vikhammer
d17ab36645
Merge branch 'feature/c6_ulp_timer_v5.1' into 'release/v5.1'
...
ulp: lp timer support for lp core (v5.1)
See merge request espressif/esp-idf!23659
2023-05-16 09:19:56 +08:00
zlq
79a2cc224c
H2:fix temp sensor issue @low temp
2023-05-12 17:00:58 +08:00
morris
1d89e24199
Merge branch 'bugfix/fix_mspi_octal_psram_timing_tuning_point_fallback_id_v5.1' into 'release/v5.1'
...
mspi: modified mspi 80mhz octal psram timing tuning point fallback id on s3 (v5.1)
See merge request espressif/esp-idf!23689
2023-05-11 21:24:44 +08:00
Marius Vikhammer
b1c85cc1d5
Merge branch 'contrib/github_pr_10895_v5.1' into 'release/v5.1'
...
Fix possible conversion errors by using __builtin_ffsll (GitHub PR) (v5.1)
See merge request espressif/esp-idf!23690
2023-05-11 16:45:44 +08:00
Michael (XIAO Xufeng)
a498871111
Merge branch 'bugfix/fix_wrong_hp_ldo_h2_to_v5.1' into 'release/v5.1'
...
ESP32H2: Fix too low hp ldo dbias (v5.1)
See merge request espressif/esp-idf!23598
2023-05-11 11:59:26 +08:00
Jakob Hasse
48ab527148
cxx/esp_hw_support: added build test, changed parameter types
...
Changed rv_utils_intr_edge_ack and esp_cpu_intr_edge_ack to
take uint32_t instead of int to avoid build errors.
The test is to test in particular that __builtin_ffsll, used in
xt_utils.h, which is included via esp_cpu.h, compiles fine
in C++20 with -Wsign-conversion enabled.
Closes https://github.com/espressif/esp-idf/pull/10895
2023-05-11 11:16:45 +08:00
Armando
6ae2c3c240
mspi: modified mspi 80mhz octal psram timing tuning point fallback id on s3
2023-05-11 11:13:32 +08:00
Marius Vikhammer
45fd8feba3
ulp: add support for using lp timer with lp core on C6
2023-05-10 09:39:24 +08:00
Marius Vikhammer
d4a3427eaf
Merge branch 'bugfix/gdma_log_nano_v5.1' into 'release/v5.1'
...
gdma: fixed crash from logging when using newlib nano (v5.1)
See merge request espressif/esp-idf!23585
2023-05-08 10:13:55 +08:00
Marius Vikhammer
94d6614c88
Merge branch 'ci/fix_overwrite_pytest_configs_v5.1' into 'release/v5.1'
...
ci: fixed test apps overriding pytest configs (v5.1)
See merge request espressif/esp-idf!23495
2023-05-06 17:40:58 +08:00
Marius Vikhammer
46f104b3ae
gdma: fixed crash from logging when using newlib nano
...
Newlib nano printf formatting do not support %z, and will crash if such an identifier
is followed by a %s indentifier.
Closes https://github.com/espressif/esp-idf/issues/9631
2023-05-06 13:47:51 +08:00
cje
78b9f5e151
fix too low hp ldo dbias bug for h2
2023-05-05 17:04:18 +08:00
wuzhenghui
123da6baa7
bugfix: fix esp32c6eco1 fosc calibration cycles during sleep
2023-05-04 11:47:54 +08:00
morris
cbd210b431
Merge branch 'refactor/rename_to_esp_clk_tree_prefix_v5.1' into 'release/v5.1'
...
esp_clk_tree: Rename clk_tree_xxx to esp_clk_tree_xxx (v5.1)
See merge request espressif/esp-idf!23449
2023-04-28 17:11:46 +08:00
Mahavir Jain
c49dce48eb
Merge branch 'fix/esp32s3_ununsed_dcache_as_dram_v5.1' into 'release/v5.1'
...
esp_hw_support: Update the memory ptr location/property checks to include the unused DCACHE added to DRAM (v5.1)
See merge request espressif/esp-idf!23303
2023-04-27 22:09:55 +08:00
Michael (XIAO Xufeng)
1a03cb02c2
Merge branch 'feature/support_fosc_calibration_c6_eco1_to_v5.1' into 'release/v5.1'
...
ESP32C6: Fix fosc calibration fail bug for ECO1 & Above (v5.1)
See merge request espressif/esp-idf!23467
2023-04-27 20:38:31 +08:00
Song Ruo Jing
202b18b5fa
esp_clk_tree: Rename clk_tree_xxx to esp_clk_tree_xxx, add compilation warning to clk_tree.h
2023-04-27 11:11:18 +00:00
Marius Vikhammer
c35f7cad45
Merge branch 'feature/c6_ulp_sleep_v5.1' into 'release/v5.1'
...
ulp: added sleep support for lp core (v5.1)
See merge request espressif/esp-idf!23484
2023-04-27 17:07:24 +08:00
Jiang Jiang Jian
411c392d97
Merge branch 'feature/support_fosc_calibration_h2_eco2_to_v5.1' into 'release/v5.1'
...
ESP32H2: Fix fosc calibration fail bug for ECO2 & Above (v5.1)
See merge request espressif/esp-idf!23469
2023-04-27 14:38:01 +08:00
Marius Vikhammer
3724bf6256
ci: fixed test apps overriding pytest configs
2023-04-27 14:29:06 +08:00
Jiang Jiang Jian
46511c8fd1
Merge branch 'bugfix/fix_wrong_frame_ptr_after_wake_restore_backportv5.1' into 'release/v5.1'
...
bugfix: fix wrong RvCoreCriticalSleepFrame ptr value after wake restore (backport v5.1)
See merge request espressif/esp-idf!23473
2023-04-27 10:45:04 +08:00
Marius Vikhammer
0bac174058
ulp: added sleep support for lp core
...
Added support for running LP core while hp core sleeps, as well
as waking up the hp core.
2023-04-27 09:51:41 +08:00
laokaiyao
804a9ea1f6
esp32h4: remove esp32h4 target from peripherals
2023-04-26 18:53:10 +08:00
wuzhenghui
46deef434f
esp_pm: check sleep retention frame integrity in ci UT
2023-04-26 17:36:46 +08:00
wuzhenghui
5ccf93d788
bugfix: fix wrong RvCoreCriticalSleepFrame ptr value after wake restore
2023-04-26 17:36:42 +08:00
hongshuqing
70fc0bde01
support h2 eco2 fosc calibration for v5.1
2023-04-26 17:08:09 +08:00
hongshuqing
1564884cc1
support c6 eco1 fosc calibration for v5.1
2023-04-26 16:32:28 +08:00
Laukik Hase
3118120659
esp_hw_support: Update memory ptr location/property checks
...
- to acknowledge the unused DCACHE added to DRAM for ESP32-S3
- For ESP32-S3, when the DCACHE size is set to 16 kB, the unused 48 kB is added to
the heap in 2 blocks of 32 kB (from 0x3FCF0000) and 16 kB (from 0x3C000000).
- But, if we try allocating memory from the 16 kB block and run an `esp_ptr_internal`
check on that memory pointer, it fails as the address block from 0x3C000000
corresponds to the external memory symbols SOC_DROM_LOW and SOC_EXTRAM_DATA_LOW.
(E.g. freertos - If the IDLE task stack buffer gets allocated from this region,
the firmware will abort due to this failure).
- Thus, the checks `esp_ptr_internal`, `esp_ptr_in_drom` and `esp_ptr_byte_accessible`
have been updated to acknowledge this memory as a part of the DRAM.
Co-authored-by: Mahavir Jain <mahavir@espressif.com>
2023-04-26 04:01:38 +00:00
Michael (XIAO Xufeng)
cfcb57333b
Merge branch 'bugfix/fix_chip_broken_bug_in_monitor_mode_S2_v5.1' into 'release/v5.1'
...
ESP32S2/C3/C2: fixed S2 dangerous power parameters in sleep modes and support S2/C3/C2 different sleep mode (v5.1)
See merge request espressif/esp-idf!23378
2023-04-26 11:41:09 +08:00
Marius Vikhammer
9ddd08c502
system: fix esp32 chip info not listing esp32 pico v3-02 as having embedded spiram
...
Closes https://github.com/espressif/esp-idf/issues/11233
2023-04-24 13:53:26 +08:00
cje
93eeb4265c
fix chip broken bug when run in monitor mode of S2 and modify voltage param to fit all sleep mode of S2/C2/C3
2023-04-24 10:37:57 +08:00
Li Shuai
94ebda298a
fix the issue of failure of receiving beacons in modem state caused by enabling light sleep in wifi min/max modem sleep mode
2023-04-07 05:57:15 +00:00
morris
6057f16cfc
Merge branch 'feature/set_gdma_priority' into 'master'
...
gdma: support override default channel priority
See merge request espressif/esp-idf!22676
2023-04-06 14:52:35 +08:00
Li Shuai
10d02c6c5c
power save: add txq memory to mac retention link to fix tx m f null failure
2023-04-06 11:09:46 +08:00
morris
6c19e7b8a7
gdma: avoid manually start/stop when channel is controled by ETM
2023-04-06 10:49:32 +08:00
morris
1429913042
gdma: support override default channel priority
2023-04-06 10:49:32 +08:00
Song Ruo Jing
5816c47457
spi_flash: Move mspi clock source switch to 64M in 2nd bootloader code from rtc_clk.c to bootloader_flash_config_esp32h2.c
2023-04-04 16:09:47 +08:00
Armando
6d4c0bb3aa
mspi: support 120M DDR flash and psram on S3 (experimental)
2023-04-03 10:30:50 +08:00
wuzhenghui
bd80be3b83
bugfix: fix deepsleep saradc leakage
2023-03-31 15:49:43 +08:00
Wu Zheng Hui
ee05082e35
Merge branch 'feature/support_esp32h2_modem_clock' into 'master'
...
esp32h2: support modem clock driver
Closes IDF-7088
See merge request espressif/esp-idf!22880
2023-03-29 16:49:26 +08:00
Zim Kalinowski
e86864c621
Merge branch 'feature/unify_core_host_target_tests' into 'master'
...
ci: unify core host target tests
Closes IDF-6621, IDF-6622, IDF-6623, and IDF-6624
See merge request espressif/esp-idf!22944
2023-03-29 15:41:01 +08:00
wuzhenghui
042aa93fa2
workaround: bypass clock power_domain maintaining since esp32h2 sleep is not supported
2023-03-29 13:23:32 +08:00
wuzhenghui
ade6d3e5bc
esp_hw_support: support esp32h2 modem_clock driver
2023-03-29 13:23:32 +08:00
wuzhenghui
485f2882d1
modem_clock: rename modem_clock_lp_timer to ble_rtc_timer
2023-03-29 13:23:32 +08:00
Marius Vikhammer
f627506f6b
ci: update driver tests to use run_all_single_board_cases()
2023-03-28 17:05:50 +08:00
Marius Vikhammer
a5c70c24e5
Merge branch 'bugfix/memprot_cleanup_iram_attr' into 'master'
...
memprot: move memprot functions out of IRAM
See merge request espressif/esp-idf!20697
2023-03-28 10:18:22 +08:00
Marius Vikhammer
914bb81b95
ci: move linux host tests to test app folder
2023-03-27 17:41:44 +08:00
Michael (XIAO Xufeng)
dbbc1ba5be
Merge branch 'feat/merge_nuttx_patch' into 'master'
...
G0, G1: fix issues that prevents using G0/G1 components on other platforms
See merge request espressif/esp-idf!22521
2023-03-21 20:48:21 +08:00
Wu Zheng Hui
a79c5ef7ed
Merge branch 'bugfix/esp32c6_deep_sleep_minor_fixes' into 'master'
...
bugfix: esp32c6 deep sleep minor fixes
Closes WIFI-5559, WIFI-5425, WIFI-3494, WIFI-3495, WIFI-4163, and WIFI-4164
See merge request espressif/esp-idf!22697
2023-03-18 14:41:43 +08:00
Kevin (Lao Kaiyao)
d659991bbb
Merge branch 'feature/gpio_runtime_preserve' into 'master'
...
gpio: support runtime reserve
Closes IDF-6731
See merge request espressif/esp-idf!22223
2023-03-18 10:55:44 +08:00
wuzhenghui
cb55d51be4
bugfix: set I2C_MST_SEL_160M always be 1
2023-03-17 19:45:56 +08:00
wuzhenghui
bace80016d
bugfix: fix misspell
2023-03-17 19:45:56 +08:00
wuzhenghui
8e397f9bd9
bugfix: no need to do retention in deepsleep
2023-03-17 19:45:56 +08:00
wuzhenghui
c50e5d45a3
feature: add deep sleep prepare callback hook
2023-03-17 19:45:56 +08:00
wuzhenghui
acecfe4ba5
bugfix: Slow clock power domain management has been maintained in pd_flags
2023-03-17 19:42:01 +08:00
Jiang Jiang Jian
68185c11bd
Merge branch 'bugfix/fix_unit_test_for_esp_phy' into 'master'
...
esp_phy: fix failure of unit test for test_phy_rtc_init on ESP32-C6
Closes WIFI-5112
See merge request espressif/esp-idf!22787
2023-03-17 17:56:21 +08:00
Jiang Jiang Jian
73c06b5039
Merge branch 'bugfix/sleep_current_issue_caused_by_sar_adc' into 'master'
...
sleep current issue caused by sar adc
Closes IDF-6111 and WIFI-4370
See merge request espressif/esp-idf!22769
2023-03-17 17:32:59 +08:00
Jiang Jiang Jian
2658fb7623
Merge branch 'feature/add_memprot_support_for_esp32h2' into 'master'
...
esp32h2: enable memory protection scheme using PMA and PMP
Closes IDF-6452 and IDF-6332
See merge request espressif/esp-idf!22699
2023-03-17 15:19:52 +08:00
Marius Vikhammer
43784e7a24
memprot: move memprot functions out of IRAM
...
Memprot functions are no longer placed by default in IRAM,
selecting ESP_PANIC_HANDLER_IRAM will still force panic related memprot
functions to be placed in IRAM.
2023-03-17 14:51:20 +08:00
Jiang Jiang Jian
3f3a2cf560
Merge branch 'bugfix/fix_systimer_stall_issue_in_lightsleep' into 'master'
...
rtc_sleep: workaround systimer stall issue during sleep on ESP32C3
See merge request espressif/esp-idf!22739
2023-03-17 14:16:36 +08:00