Jakob Hasse
c8791f30c0
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-11 16:07:45 +08:00
Armando (Dou Yiwen)
476e50b026
Merge branch 'bugfix/fix_mspi_octal_psram_timing_tuning_point_fallback_id' into 'master'
...
mspi: modified 80mhz octal psram timing tuning point fallback id on s3
See merge request espressif/esp-idf!23627
2023-05-11 11:11:51 +08:00
Li Shuai
87dd7bb51a
Merge branch 'bugfix/support_esp32c6_sleep_retention_extra_link' into 'master'
...
support extra linked list retention for BLE and 15.4
Closes IDF-6528
See merge request espressif/esp-idf!22985
2023-05-10 15:07:03 +08:00
Zim Kalinowski
099ffe6243
Merge branch 'feature/c6_ulp_timer' into 'master'
...
ulp: lp timer support for lp core
Closes IDF-6956, IDF-6830, and IDF-6835
See merge request espressif/esp-idf!23453
2023-05-10 03:06:35 +08:00
zlq
ff88f42819
H2:fix tsensor issue @low temp
2023-05-09 19:40:53 +08:00
Wu Zheng Hui
35bb946653
Merge branch 'bugfix/update_esp32c6eco1_sleep_fosc_cal_cycles' into 'master'
...
bugfix: update esp32c6eco1 / esp32h2eco2 fosc calibration cycles during sleep and support calibrate OSC clock every N times lightsleep
Closes IDF-7287
See merge request espressif/esp-idf!23489
2023-05-09 18:44:20 +08:00
Armando
8e4974d66f
mspi: modified mspi 80mhz octal psram timing tuning point fallback id on s3
2023-05-08 14:57:12 +08:00
Armando (Dou Yiwen)
38e84bdd4f
Merge branch 'refactor/mspi_timing_tuning_compatible_on_all_chips' into 'master'
...
mspi: timing tuning driver framework
Closes IDF-7004
See merge request espressif/esp-idf!22786
2023-05-08 10:27:29 +08:00
Li Shuai
2e22491b02
sleep retention: implement the extra linked list retention for modules with retention clock bugs
2023-05-06 14:58:00 +08:00
Marius Vikhammer
3ced7b12e8
ulp: add support for using lp timer with lp core on C6
2023-05-06 14:13:14 +08:00
Marius Vikhammer
97aab3bedc
Merge branch 'bugfix/gdma_log_nano' into 'master'
...
gdma: fixed crash from logging when using newlib nano
Closes IDFGH-8134
See merge request espressif/esp-idf!23579
2023-05-06 13:46:50 +08:00
Marius Vikhammer
e806d9c9cb
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 10:51:03 +08:00
David Čermák
292d16b440
Merge branch 'bugfix/linux_target_with_out_lwip' into 'master'
...
linux: Add lwip support to networking components under linux
See merge request espressif/esp-idf!23053
2023-05-05 17:26:45 +08:00
Michael (XIAO Xufeng)
120d848ef8
Merge branch 'bugfix/fix_wrong_hp_ldo_h2' into 'master'
...
ESP32H2: Fix wrong hp ldo
See merge request espressif/esp-idf!23501
2023-05-05 14:39:54 +08:00
David Cermak
b2af4d9689
lwip/linux: Add lwip support for networking component under linux
...
linux/lwip: Wrap some IO posix functions
* to workaourd the FreeRTOS EINTR issue (when building without lwip)
* to correctly choose the sub-system based on fd (when building with
lwip) -- passing control to either linux/system or to lwip
This commit also addapts tapio-if to provide DHCP client by default and
configurable settings for static IP
2023-05-05 05:03:39 +00:00
Armando
dbf3612d6d
spi_flash: replace flash clock src change API with mspi timing API
2023-05-04 17:05:35 +08:00
Armando
8eec6558d1
mspi: refactor timing tuning driver to make it compatible with p4
2023-05-04 17:05:35 +08:00
morris
da3b3cf4a4
dma: use ccomp_timer component for testing performance metric
...
ccomp_timer now becomes a standalone component, located in the component registry.
we can use that in the test app by component manager.
2023-05-04 14:09:36 +08:00
wuzhenghui
dcab6368ce
feature: support configuration of sleep clock calibration frequency
2023-05-04 12:09:26 +08:00
wuzhenghui
dd4d1bbe90
bugfix: fix esp32c6eco1 fosc calibration cycles during sleep
2023-05-04 11:46:21 +08:00
Jakob Hasse
0a3cfce671
Merge branch 'contrib/github_pr_10895' into 'master'
...
Fix possible conversion errors by using __builtin_ffsll (GitHub PR)
Closes IDFGH-9541
See merge request espressif/esp-idf!23429
2023-05-04 10:41:46 +08:00
hongshuqing
430776fc46
fix wrong hp ldo for h2
2023-04-27 17:29:10 +08:00
Jiang Jiang Jian
afd0e384db
Merge branch 'feature/support_fosc_calibration_h2_eco2' into 'master'
...
ESP32H2: Fix fosc calibration fail bug for ECO2 & Above
See merge request espressif/esp-idf!23464
2023-04-27 14:37:38 +08:00
Jakob Hasse
ca44fc3847
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-04-26 19:06:39 +08:00
hongshuqing
cbc5a38e26
support h2 eco2 fosc calibration
2023-04-26 15:31:18 +08:00
Marius Vikhammer
1a5e47bd07
ci: fixed test apps overriding pytest configs
2023-04-26 11:07:35 +08:00
Zim Kalinowski
4a647d08de
Merge branch 'feature/c6_ulp_sleep' into 'master'
...
ulp: added sleep support for lp core
Closes IDF-7012
See merge request espressif/esp-idf!23103
2023-04-25 22:40:52 +08:00
Mahavir Jain
a8b6a70620
Merge branch 'feature/add_bignum_ll_layer' into 'master'
...
bignum: added bignum hal and ll layer
Closes IDF-7071
See merge request espressif/esp-idf!22823
2023-04-25 19:50:25 +08:00
Song Ruo Jing
e2a5c092f7
Merge branch 'refactor/rename_to_esp_clk_tree_prefix' into 'master'
...
esp_clk_tree: Rename clk_tree_xxx to esp_clk_tree_xxx
See merge request espressif/esp-idf!23362
2023-04-25 19:41:39 +08:00
Song Ruo Jing
a4e8960ab4
esp_clk_tree: Rename clk_tree_xxx to esp_clk_tree_xxx, add compilation warning to clk_tree.h
2023-04-25 14:12:06 +08:00
Marius Vikhammer
359b237cc5
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-25 11:51:35 +08:00
harshal.patil
56327452ce
esp_hw_support: add crypto lock layer for esp32
2023-04-24 16:15:11 +05:30
Marius Vikhammer
895c21cc6b
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 11:23:15 +08:00
Michael (XIAO Xufeng)
59a899230c
Merge branch 'feature/support_fosc_calibration_c6_eco1' into 'master'
...
ESP32C6: Fix fosc calibration fail bug for ECO1 & Above
Closes IDF-7093
See merge request espressif/esp-idf!23215
2023-04-23 18:04:28 +08:00
hongshuqing
e3148369f3
support c6 eco1 fosc calibration
...
support c6 eco1 fosc calibration
support c6 eco1 fosc calibration
support c6 eco1 fosc calibration
Apply suggestion
Apply
support c6 eco1 fosc calibration
support c6 eco1 fosc calibration
2023-04-23 13:36:20 +08:00
laokaiyao
b7053b46ef
esp32h4: remove esp32h4 target from peripherals
2023-04-20 15:19:45 +08:00
morris
4123e611dc
esp_rom: add common ROM API to update CPU tick rate
2023-04-19 13:21:26 +08:00
Laukik Hase
f6aadd1e39
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-17 10:42:04 +05:30
Wu Zheng Hui
98849634b3
Merge branch 'bugfix/fix_wrong_frame_ptr_after_wake_restore' into 'master'
...
bugfix: fix wrong RvCoreCriticalSleepFrame ptr value after wake restore
See merge request espressif/esp-idf!23113
2023-04-14 13:22:24 +08:00
wuzhenghui
332d6fddb9
esp_pm: check sleep retention frame integrity in ci UT
2023-04-11 11:18:52 +08:00
Jiang Jiang Jian
a624d8d061
Merge branch 'bugfix/fix_chip_broken_bug_in_monitor_mode_S2' into 'master'
...
ESP32S2/C3/C2: fixed S2 dangerous power parameters in sleep modes and support S2/C3/C2 different sleep mode
Closes IDF-4999, IDFGH-4893, and IDFGH-7938
See merge request espressif/esp-idf!19598
2023-04-11 09:52:02 +08:00
cje
6c35ee3fc5
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-10 18:04:24 +08:00
wuzhenghui
b2f6ba87f2
bugfix: fix wrong RvCoreCriticalSleepFrame ptr value after wake restore
2023-04-07 18:55:44 +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
Li Shuai
ec61a0e3cc
sleep retention: fix crash issue caused by destroying the module after the module node creation fails
2023-04-03 19:24:33 +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
Li Shuai
a25ce78392
sleep: fix sleep current issue caused by sar adc
2023-03-17 13:06:39 +08:00
laokaiyao
c9f780dc2e
gpio: support runtime preserve
2023-03-17 11:59:49 +08:00
wangmengyang
20e596bbcf
esp_phy: fix failure of unit test for test_phy_rtc_init on ESP32-C6
...
- esp_phy_enable() blocks in the unit test due to the FE related functions in modem clock registers are not enabled. This MR adds dependency of FE for PHY module.
2023-03-16 12:13:00 +08:00
wanlei
a48d1a85c1
mspi: add test_app measuring time cost of mspi APIs
...
and merge mspi unit test into this
2023-03-16 11:11:43 +08:00
Gustavo Henrique Nihei
459ebff4ff
esp_hw_support: Fix check for SOC_MODEM_CLOCK_IS_INDEPENDENT definition
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-16 01:50:22 +08:00
liuning
14ca81f03f
rtc_sleep: workaround systimer stall issue during lightsleep on ESP32C3
2023-03-15 20:33:03 +08:00
Mahavir Jain
233d8e1a33
esp32c6: Ensure that previous PMP entry is correctly set for TOR case
2023-03-15 13:16:27 +05:30
Mahavir Jain
891df4eff9
Cleanup soc_memprot_types.h for C6/H2
...
This header is not required as there is no PMS peripheral in C6/H2
Closes IDF-6332
2023-03-15 13:16:27 +05:30
Mahavir Jain
fb1ef7c6d6
esp32h2: enable memory protection scheme using PMA and PMP
...
Closes IDF-6452
2023-03-15 13:16:18 +05:30
wanlei
d0c70aa7ac
mspi: turn down freq to fix crash when sleep
2023-03-15 11:26:34 +08:00
Jiang Jiang Jian
abc43d8e94
Merge branch 'bugfix/some_small_fix_for_sleep' into 'master'
...
esp_hw_support/sleep: update soc caps for chips that support power down modem
Closes WIFI-4424
See merge request espressif/esp-idf!20198
2023-03-13 10:47:26 +08:00
Marius Vikhammer
75591a8a13
Merge branch 'ci/driver_single_board' into 'master'
...
ci: update test apps to use run_all_single_board_cases
See merge request espressif/esp-idf!22669
2023-03-13 09:25:42 +08:00
Wu Zheng Hui
c8364fb921
Merge branch 'feature/add_wakeup_cost_info_to_dslp_wakestub_example' into 'master'
...
feature: add wake up time cost info to deep_sleep_wake_stub example
See merge request espressif/esp-idf!22683
2023-03-11 15:11:53 +08:00
Jiang Jiang Jian
d5f53fb415
Merge branch 'feature/nan_datapath' into 'master'
...
NAN Datapath support and console example
Closes WIFI-1223
See merge request espressif/esp-idf!13593
2023-03-11 04:50:10 +08:00
C.S.M
b0b99a9a1b
Merge branch 'feature/flash_support_h2' into 'master'
...
spi_flash: Allow clock frequency up to 64M on ESP32H2
See merge request espressif/esp-idf!22476
2023-03-10 19:13:03 +08:00
wuzhenghui
8820efe2e1
feature: add wake up time cost info to deep_sleep_wake_stub example
2023-03-10 16:37:02 +08:00
Marius Vikhammer
0be8e03907
ci: update test apps to use run_all_single_board_cases
2023-03-10 14:27:09 +08:00
jingli
cb0f517fe3
soc/soc_caps: update soc caps for chips that support power-down of modem hardware
...
Closes WIFI-4424
2023-03-10 14:15:27 +08:00
Armando (Dou Yiwen)
1b4643d323
Merge branch 'refactor/create_mspi_timing_tuning_ll' into 'master'
...
mspi: create mspi timing tuning ll
Closes IDF-6638
See merge request espressif/esp-idf!21924
2023-03-10 14:14:23 +08:00
Nachiket Kukade
4c76af3f68
esp_wifi: Add support for NAN Discovery and Datapath
...
Update wifi lib with below -
1. Create NAN Discovery SM for beaconing & cluster formation
2. Create NAN interface for Tx/Rx of beacons & action frames
3. Add commands & events for NAN Services Publish/Subscribe/Followup
4. Add NAN Datapath definitions, Events, Peer structures
5. Support for forming and parsing of Datapath related attributes
6. Modules for NDP Req, Resp, Confirm, Term, Peer management
7. NAN Interface related additions in Datapath, Data Tx Q's
In addition include below changes -
1. Add netif and driver support for NAN Interface
2. Add simple examples for Publisher-Subscriber usecases
3. Add an advanced console example that supports commands
for NAN Discovery, Services & Datapath
4. Add wifi_apps for providing better NAN API's and Peer management
Co-authored-by: Shyamal Khachane <shyamal.khachane@espressif.com>
2023-03-10 11:18:23 +05:30
Mahavir Jain
00f30bb199
Merge branch 'esp32c6/fix_pmp_config' into 'master'
...
esp32c6: Fix incorrect PMP configuration
Closes IDF-6927
See merge request espressif/esp-idf!22435
2023-03-10 12:21:30 +08:00
Cao Sen Miao
bc655a6890
spi_flash: Allow clock frequency up to 64M, and make it default on ESP32H2
2023-03-10 11:39:53 +08:00
Marius Vikhammer
dfedaa2b65
Merge branch 'feature/c6_ulp' into 'master'
...
ulp: added basic support for building and running a binary in the lp core
Closes IDF-6829 and IDF-6272
See merge request espressif/esp-idf!22554
2023-03-10 09:56:38 +08:00
Armando
36532aaea8
mspi: make mspi_timing_tuning.h available for all supported targets
2023-03-09 10:38:32 +00:00
Armando
99882ac2d1
mspi: mspi timing tuning ll
2023-03-09 10:38:32 +00:00
Sachin Parekh
ed0a1f7b52
esp32c6: Fix incorrect PMP configuration
...
- Enable pytest memprot tests for C6
2023-03-09 11:37:29 +05:30
Sachin Parekh
7bd5d93905
esp_hw_support: Move cpu protection in port files
2023-03-09 11:37:29 +05:30
Marius Vikhammer
284dabf17f
ulp: added basic support for building and running a binary in the lp core
2023-03-09 10:12:23 +08:00
wuzhenghui
43bf9fd3ab
bugfix: fix wrong lock in sleep retention entry destroy
2023-03-07 20:56:13 +08:00
Li Shuai
ffcec33057
modem clock: enable all clock enable of wifi module when PMU switch to ACTIVE from sleep state
2023-03-07 16:19:39 +08:00
wuzhenghui
f44e0cdb80
bugfix: add SPI_MEM_MMU_POWER_CTRL_REG to REGDMA_SPIMEM_LINK
2023-03-06 13:41:36 +08:00
wuzhenghui
fd7e8abd73
workaround: bypass esp32c6 flash powedown sleep time adjustment
2023-03-04 00:17:40 +08:00
wuzhenghui
45c2900ec0
resolve WIFI-5150
...
bugfix: Don't hold CS pin when VDDSDIO is power down to reduce the base current
2023-03-04 00:17:40 +08:00
Li Shuai
1a10eabe41
Power Management: refactor the configuration of each module in sleep mode
2023-03-04 00:17:40 +08:00
Li Shuai
200f69e6eb
auto beacon: support esp32c6 autobeacon (advanced DTIM sleep feature)
...
modem retention: Support esp32c6 wifi MAC and baseband sleep retention
sleep_modem: wifi MAC modem wakeup protect in modem state before PMU trigger sleep enable request
sleep modem: provide a interface to get whether the Modem power domain is allowed to power off during sleep
add i2c_ana master header file to project
auto beacon: release PMU's lock on root clock source (it is locked in the PLL)
wifi receiving beacon frame in PMU modem state strongly depends on the BBPLL
clock, PMU will forcibly lock the root clock source as PLL, when the root
clock source of the software system is selected as PLL, we need to release
the root clock source locking.
When it is judged that the PLL is locked by PMU after wakeing up from the PMU
modem state, switch the root clock source to the PLL in the sleep process (a
critical section).
auto beacon: fix the failure to receive broadcast/multicast frames in modem state
When the multicast field in the beacon frame received in the PMU modem state is
True, the PMU switches to the PMU active state (the PMU waits for the HP LDO to
stabilize and then restores the MAC context) and starts to receive
broadcast/multicast frames (Broadcast/Multicast frames will be sent after a
minimum delay of 48 us after the beacon frame), because the PMU waits for the HP
LDO to stabilize too long (~154 us), which will cause broadcast/multicast frame
reception to be missed.
auto beacon: select the PLL clock source as the REGDMA backup clock source when the PMU switches to ACTIVE from MODEM state
update Digital Peripheral (M2A switch) REGDMA restore time parameter
auto beacon: fix the issue that only channel 1 can connect to AP in modem state
2023-03-04 00:17:40 +08:00
Li Shuai
93c02fed3b
light sleep: add modem power domain and power down the modem power domain during sleep
2023-03-04 00:17:40 +08:00
Li Shuai
3a5fe2ab63
light sleep: rename sleep mac bb to modem, it includes MAC and baseband of wifi, bt and ieee802.15.4 modules
2023-03-04 00:17:40 +08:00
wuzhenghui
186da9af93
codeclean: rename sleep_periph to sleep_sys_periph
2023-03-04 00:17:40 +08:00
wuzhenghui
6f7eadf1ea
bugfix: fix wrong _ms suffix
2023-03-04 00:17:40 +08:00
wuzhenghui
975a53aee1
bugfix: workaround for CPU stuck due to DBUS request blocking when fetching unaligned instructions in LP_RAM
2023-03-02 18:10:10 +08:00
wuzhenghui
7ee64bd8e8
refactor: always jump to wake stub wrapper after wakeup
2023-03-02 18:10:06 +08:00
wuzhenghui
9eae151f7c
esp32c6: bringup deepsleep examples
2023-03-02 15:06:05 +08:00
wuzhenghui
d3ec7880fe
bugfix: support GPIO current leakage workaround for esp32c6/esp32h2
2023-03-02 15:06:05 +08:00
wuzhenghui
d1d6b7349f
pmu: pmu parameter adjustment
2023-03-02 15:06:05 +08:00
wuzhenghui
709adaaa37
soc_caps: since esp32c6 only support one ext wakeup src, split SOC_PM_SUPPORT_EXT_WAKEUP
...
Close IDF-5924
2023-03-02 15:06:05 +08:00
Marius Vikhammer
2f6a362be9
Merge branch 'bugfix/c6_pmp_ulp' into 'master'
...
hw-support: configure PMP to allow writing to ULP memory area
See merge request espressif/esp-idf!22555
2023-03-02 11:56:48 +08:00
zhangwenxu
c07ec73201
efuse: fix esp_read_mac on esp32h2
2023-03-01 14:14:30 +08:00
Marius Vikhammer
3f65959eef
hw-support: configure PMP to allow writing to ULP memory area
2023-03-01 12:50:28 +08:00
Armando
663e881868
gdma: fix potential unaligned cache writeback issue
2023-02-28 10:42:22 +08:00
Song Ruo Jing
8486a2c3ad
Merge branch 'bugfix/revert_rtc_clock_bbpll_power_on_with_usb' into 'master'
...
usb_serial_jtag: Improve the code for the issue of usb cdc device unable to work during sleep
Closes IDFGH-6887
See merge request espressif/esp-idf!20973
2023-02-27 23:18:54 +08:00
Song Ruo Jing
1a66459b44
usb_serial_jtag: Improve the code for the issue of usb cdc device unable to work during sleep
...
1. Remove RTC_CLOCK_BBPLL_POWER_ON_WITH_USB Kconfig option
During sleep, BBPLL clock always gets disabled
esp_restart does not disable BBPLL clock, so that first stage bootloader log can be printed
2. Add a new Kconfig option PM_NO_AUTO_LS_ON_USJ_CONNECTED
When this option is selected, IDF will constantly monitor USB CDC port connection status.
As long as it gets connected to a HOST, automatic light-sleep will not happen.
Closes https://github.com/espressif/esp-idf/issues/8507
2023-02-27 12:10:49 +08:00
Armando
4997689de5
cache: support h2 and c6 cache error
2023-02-24 16:16:46 +08:00
Armando (Dou Yiwen)
4452a3cf3e
Merge branch 'feature/support_h2_adc' into 'master'
...
adc: support adc h2
Closes IDF-6124, IDF-6214, IDF-6543, IDF-6215, IDF-6664, and IDF-6695
See merge request espressif/esp-idf!22205
2023-02-24 14:28:33 +08:00
Jing Li
a529771d88
Merge branch 'refactor/pm_use_unified_esp_pm_config_t' into 'master'
...
pm: refactor pm codes to use unified esp_pm_config_t
See merge request espressif/esp-idf!22472
2023-02-24 14:06:19 +08:00
Armando (Dou Yiwen)
aeaf119338
Merge branch 'refactor/resolve_mmu_soc_dependency_to_sdkconfig_h' into 'master'
...
g0: resolve MMU_PAGE_SIZE not defined in g0 build issue
Closes IDF-5219
See merge request espressif/esp-idf!22447
2023-02-23 12:05:13 +08:00
Armando
486c765a93
adc: remove adc_hal_conf.h
...
Macros inside adc_hal_conf.h are moved to adc_ll.h
2023-02-23 11:48:31 +08:00
Armando
c2d5c19b28
adc: ll enum renaming
2023-02-23 11:48:31 +08:00
Armando
5653018cd1
esp_adc: support selecting clock source for oneshot driver
2023-02-23 11:48:31 +08:00
Armando
d0e4d36fb6
esp_adc: support h2 oneshot mode and continuous mode
2023-02-23 11:48:31 +08:00
jingli
3a648e8ed6
ci: h2 does not support deep sleep currently, comment some codes to avoid ci error
2023-02-23 11:36:13 +08:00
jingli
4c3d1e24d7
codeclean: remove unused sleep related functions
2023-02-23 11:36:13 +08:00
Alexey Lapshin
1e3c18a94a
esp_hw_support: fix gcc-12 compile errors
2023-02-22 05:33:03 +00:00
Armando
c56eb8646b
g0: resolve MMU_PAGE_SIZE not defined in g0 build issue
2023-02-22 12:37:40 +08:00
Song Ruo Jing
987fd3208a
Merge branch 'feature/esp32h2_clock_basic_support' into 'master'
...
clk: Add basic clock support for esp32h2
Closes IDF-6265 and IDF-5973
See merge request espressif/esp-idf!21943
2023-02-21 16:16:05 +08:00
Jing Li
75a82988f1
Merge branch 'refactor/wdt_use_unified_type' into 'master'
...
wdt: refactor wdt codes to use unified type
Closes IDF-5653
See merge request espressif/esp-idf!22378
2023-02-21 09:46:06 +08:00
Song Ruo Jing
2c2a62e323
clk_tree: Add basic clock support for esp32h2
...
- Support SOC ROOT clock source switch
- Support CPU frequency change
- Support RTC SLOW clock source switch
- Support RTC SLOW clock + RC FAST calibration
Remove FPGA build for esp32h2
2023-02-20 17:15:02 +08:00
Omar Chebib
5e5343d429
TWDT: Use the new TWDT Kconfig options in the examples and tests
2023-02-17 11:22:25 +08:00
Armando
b96c370ab8
esp_hw_support: move driver/intr_types.h to esp_hw_support to make it available to all g1+ components
2023-02-15 19:52:06 +08:00
Wu Zheng Hui
113132e4f4
Merge branch 'feature/bringup_esp32c6_light_sleep_pd_top' into 'master'
...
esp32c6: support light_sleep (Stage 2: support Digital Peripheral power down)
See merge request espressif/esp-idf!22197
2023-02-15 16:17:53 +08:00
jingli
9c37441b17
wdt: refactor wdt codes to use unified type
2023-02-15 12:08:55 +08:00
wuzhenghui
a0492202b7
bugfix: unhold SPI CS pin in pd_top lightsleep
2023-02-15 11:46:41 +08:00
wuzhenghui
0b0da680d2
codeclean: turn on the regdma clock only once
2023-02-15 11:46:40 +08:00
wuzhenghui
248aa6109d
codeclean: add sleep_mode args to esp_sleep_start()
2023-02-15 11:46:40 +08:00
Li Shuai
aec3f6db1d
light sleep: supported SoC TOP domain powered down
2023-02-15 11:46:40 +08:00
Li Shuai
6e307c04a3
clock retention: supported soc and modem system power and clock sleep retention
2023-02-15 11:46:40 +08:00
fuzhibo@espressif.com
e252748d92
periph retention: runtime critical digital peripherals sleep retention support
2023-02-15 11:46:40 +08:00
Li Shuai
d097bbe40b
sleep retention: wraps the regdma link and hardware driver to provide system sleep retention (WiFi, BLE, 15.4 and digital peripheral) support
2023-02-15 11:46:40 +08:00
Li Shuai
8c18393d23
regdma: add regdma link operation api support
2023-02-15 11:46:36 +08:00
Li Shuai
d3e0e3e3b6
pau: implement the pau regdma driver for esp32c6
2023-02-15 10:45:44 +08:00
Cao Sen Miao
fd3e0b0b18
esp32h2(ci): enable target test
2023-02-15 10:20:43 +08:00
morris
e0c98da169
Merge branch 'feature/glitch_filter_h2' into 'master'
...
gpio: support glitch filter on esp32h2
Closes IDF-6286
See merge request espressif/esp-idf!22273
2023-02-14 13:07:44 +08:00
Mahavir Jain
ac7b42d742
esp_hw_support: fix test apps build for IDF_ENV_FPGA
case
2023-02-13 10:27:23 +05:30
Mahavir Jain
e4e4ffa3f4
esp32h2: enable DS peripheral support in driver and test application
2023-02-13 10:27:15 +05:30
Mahavir Jain
2974e8f487
Merge branch 'feature/apm_support_esp32c6' into 'master'
...
apm: added support for APM on esp32c6
Closes IDF-5819 and IDF-5818
See merge request espressif/esp-idf!22157
2023-02-13 12:45:41 +08:00
morris
a3f887a1fe
gpio: support glitch filter on esp32h2
2023-02-11 23:01:01 +08:00
jingli
28c7620cba
sleep: fix gpio wakeup not working properly in some cases
...
Before this fix, when we call esp_pm_configure after gpio_wakeup_enable,
the configuration of GPIO in sleep state in gpio_wakeup_enable will be
overwritten by esp_pm_configure.
2023-02-11 01:06:18 +00:00
jingli
557a1ed1a5
soc_caps: remove SOC_GPIO_SUPPORT_SLP_SWITCH
...
all esp chips support this feature
2023-02-11 01:06:18 +00:00
Kapil Gupta
30a2558450
esp_wifi: Merge wpa_supplicant and esp_wifi Kconfig
2023-02-11 07:38:45 +08:00
Sachin Billore
8d0f6dab0f
apm: added support for APM on esp32c6
...
Closes: IDF-5819 IDF-5818
2023-02-10 08:18:07 +00:00
wanlei
5300bd3b2f
spi: support H2 spi master, slave, slave_hd driver
2023-02-08 11:38:45 +08:00
morris
990c6f58a6
Merge branch 'feature/etm_support_h2' into 'master'
...
etm: add basic driver on esp32h2
Closes IDF-6225
See merge request espressif/esp-idf!22246
2023-02-08 10:42:10 +08:00
morris
6f8ee89302
etm: add basic driver on esp32h2
2023-02-07 14:54:08 +00:00
wuzhenghui
75d15e8b80
bugfix: remove redundant SOC_PM_SUPPORT_XTAL_PD wrapping
...
Closes https://github.com/espressif/esp-idf/issues/10681
2023-02-07 20:25:59 +08:00
Jing Li
409804f673
Merge branch 'feature/support_feature_depend_on_rtc_fast_mem_for_esp32c2' into 'master'
...
esp32c2: support feature(rtc time) depend on rtc fast mem
Closes IDF-3901, IDF-4239, IDF-5053, IDF-5060, and IDF-5131
See merge request espressif/esp-idf!19067
2023-02-07 15:16:01 +08:00
Song Ruo Jing
b72d759290
uart: Add support for esp32h2
2023-02-06 00:48:04 +08:00
jingli
af9c6e3175
esp32c2/rtc: fix 8md256 as rtc slow clk not work properly during deep sleep
2023-02-02 20:41:11 +08:00
jingli
2e4f0c7926
UT/esp32c2: reenable rtc clk calibration compensation UT
2023-02-02 20:26:08 +08:00
jingli
f8cc2ec86d
esp32c2: support rtc time feature depend on rtc memory, since c2 does not have rtc memory
2023-02-02 20:25:59 +08:00
Wu Zheng Hui
04987ac201
Merge branch 'feature/add_ram_loadable_app_support' into 'master'
...
feature: add ram loadable app support
See merge request espressif/esp-idf!19465
2023-02-02 10:28:13 +08:00
wuzhenghui
44df5b31af
feature: add ram loadable app support
2023-02-01 17:57:22 +08:00
Wu Zheng Hui
33ae2e1073
Merge branch 'feature/bringup_esp32c6_light_sleep_pd_cpu' into 'master'
...
esp32c6: support light_sleep (Stage 1: support CPU power down)
See merge request espressif/esp-idf!21985
2023-02-01 14:11:15 +08:00
wuzhenghui
cd9d914ba0
codeclean: clean esp32c6 rtc_sleep related code
2023-01-31 22:12:58 +08:00
Li Shuai
68594abe05
sleep: light sleep supported for esp32c6
2023-01-31 22:12:58 +08:00
wuzhenghui
a5467f42a0
codeclean: only S series chip VDDSDIO is configurable
2023-01-31 22:12:58 +08:00
Li Shuai
9b99fc9033
cpu retention: software cpu retention support for esp32c6
...
cpu retention: add riscv core sleep critical and non-critical register layout structure definition
cpu retention: add assembly subroutine for cpu critical register backup and restore
cpu retention: add cpu core critical register context backup and restore support
cpu retention: add cpu core non-critical register context backup and restore support
cpu retention: add interrupt priority register context backup and restore support
cpu retention: add cache config register context backup and restore support
cpu retention: add plic interrupt register context backup and restore support
cpu retention: add clint interrupt register context backup and restore support
cpu retention: wait icache state idle before pmu enter sleep
2023-01-31 22:12:54 +08:00
Li Shuai
1c39d64f95
cpu retention: refactor cpu retention and add cpu retention versions option in soc caps
2023-01-31 22:12:50 +08:00
Li Shuai
02f5df3b3e
Power Management: added protection to the configuration of each power domain
2023-01-31 22:12:27 +08:00
Li Shuai
2b5618606b
pmu: clean modem clock pmu related code
2023-01-31 22:12:27 +08:00
cje
0fb408cc68
pmu active state ICG map initialize and modify i2c master force enable to enable
2023-01-31 22:12:27 +08:00
Li Shuai
c0ddaa5920
lp_timer: add hal-layer codes for esp32c6
2023-01-31 22:12:27 +08:00
Li Shuai
59cf87fe7d
pmu: sleep initialization and sleep start support for esp32c6
...
Initialize the pmu sleep machine constant when pmu is initialized, and calculate
the pmu sleep time adjustment value and hardware configuration value according
to the machine constant during system sleep.
Calibrate fast OSC before each sleep and use the calibration value to calculate
PMU hardware wait cycles when use the fast OSC as the work clock.
2023-01-31 22:12:27 +08:00
morris
dbca74f1ef
gdma: prevent mutli-channels connect to the same peripheral
...
1. add check in the gdma driver, to prevent multiple channels connecting
to the same peripheral
2. memory copy DMA ID will occupy the peripheral's DMA ID on some ESP
targets (e.g. esp32c3/s3). We should search for a free one when
install async memcpy driver.
Closes https://github.com/espressif/esp-idf/issues/10575
2023-01-31 15:18:19 +08:00
Song Ruo Jing
ad55230b0a
ledc: Add support for esp32h2; Refactor ledc driver clock source selection related code
...
LEDC examples and test cases are supported on ESP32H2.
Switch to use general clock IDs for ledc_clk_cfg_t enum values.
Deprecate LEDC_USE_RTC8M_CLK.
2023-01-30 19:19:34 +08:00
Mahavir Jain
8203d40fc3
esp32h2: add support for SHA peripheral
...
Closes IDF-6275
2023-01-30 10:08:58 +05:30
Lou Tianhao
a07c736d71
bugfix: make ahb freq consistent with cpu freq
2023-01-28 10:48:51 +08:00
Guillaume Souchere
a5d6f62e7e
heap: Prevent alloc from IRAM to call dram_alloc_to_iram() on esp32c6 target
...
Since DRAM and IRAM are superposed on esp32c6 it is not necessary to convert a freshly allocated
DRAM addr to its IRAM equivalent when MALLOC_CAP_EXEC is passed to heap_caps_malloc(). Instead,
proceed with a default allocation since the address returned by multi_heap_malloc() already belongs
to the IRAM region.
Applies for esp32c6 and every boards with superposed DRAM and IRAM addresses.
2023-01-23 07:42:20 +01:00
Mahavir Jain
e7ca2f2622
Merge branch 'feature/esp32c6_enable_hmac_and_ds_support' into 'master'
...
Feature/esp32c6 enable hmac and ds support
Closes IDF-5355 and IDF-5360
See merge request espressif/esp-idf!21761
2023-01-20 20:30:54 +08:00
Martin Vychodil
a2b0068478
Merge branch 'bugfix/linux_build_errors' into 'master'
...
fix(linux): fix build errors without --skip-setting-flags
See merge request espressif/esp-idf!22063
2023-01-20 14:46:36 +08:00
Aditya Patwardhan
4084ab38a1
esp32c6/soc: Enable DS and HMAC capabilities for esp32c6 in soc_caps.h
2023-01-19 09:53:34 +05:30
Aditya Patwardhan
4831edc624
esp32c6/hal: Added support for HMAC and DS on esp32c6
...
* Update DS test_apps for esp32c6 SoC
2023-01-19 09:53:34 +05:30
Song Ruo Jing
4c8fdc31f9
gpio: Add support for esp32h2
2023-01-18 11:41:12 +08:00
Jakob Hasse
9991862a10
fix(linux): fix build errors and warnings, remove ignore file
2023-01-18 09:24:28 +08:00
morris
d9825f5165
Merge branch 'feature/add_clk_tree_get_frequency_api' into 'master'
...
clk_tree: Stage 4 - Add a general API to get the frequency of different clocks
Closes IDF-6569
See merge request espressif/esp-idf!21830
2023-01-17 17:08:23 +08:00
C.S.M
01913f6d01
Merge branch 'feature/esp32h2_build_test' into 'master'
...
ESP32H2 (CI): enable CI build stage test on esp32h2
Closes IDF-6263 and IDF-6264
See merge request espressif/esp-idf!21954
2023-01-17 13:28:11 +08:00
Marius Vikhammer
70d1dbccd8
Merge branch 'docs/enable_h2_build' into 'master'
...
docs: add support for building H2 docs
Closes IDF-6259
See merge request espressif/esp-idf!21933
2023-01-17 12:11:29 +08:00
Song Ruo Jing
2c9aa4559c
clk_tree: Add a general API to get the frequency of different clocks
...
Add basic clk_tree driver and hal implementation.
2023-01-17 11:30:24 +08:00
Cao Sen Miao
94120b82c2
esp32h2: add build test
2023-01-17 10:29:04 +08:00
Marius Vikhammer
7100b7d1ff
docs: add support for building H2 docs
2023-01-17 10:04:26 +08:00
Fu Hanxi
b02687a6c4
test: migrate linux target host test jobs into pytest-embedded
2023-01-16 10:25:55 +08:00
Armando (Dou Yiwen)
d1b8da74d8
Merge branch 'refactor/improve_adc_power_maintanance' into 'master'
...
adc: improve adc power maintanance
Closes IDF-6114 and IDF-6318
See merge request espressif/esp-idf!21151
2023-01-12 20:30:36 +08:00
morris
f7c3d791a2
Merge branch 'feature/systimer_support_esp32h2' into 'master'
...
systimer: assign counter and alarm in esp_hw_support
Closes IDF-6484, IDF-5323, and IDF-6230
See merge request espressif/esp-idf!21984
2023-01-12 11:01:17 +08:00
morris
1f3507eac0
Merge branch 'feature/gdma_support_h2' into 'master'
...
gdma: support esp32h2
Closes IDF-6222 and IDF-6238
See merge request espressif/esp-idf!21932
2023-01-11 14:04:14 +08:00
morris
6c1d98d556
systimer: assign counter and alarm in esp_hw_support
2023-01-10 17:05:49 +08:00
jiangguangming
f74a43d002
use LL function to get wakeup cause
2023-01-10 17:03:54 +08:00
jiangguangming
4b4491e736
rtc_time.c: simplify the rtc_time_get with LL function
2023-01-10 17:03:54 +08:00
jiangguangming
51ec91c637
add example deep sleep wake stub
2023-01-10 17:03:50 +08:00
morris
3681dee80e
gdma: support esp32h2
2023-01-10 16:37:02 +08:00
morris
d0b7f3214a
gdma: correct the dma trigger of uart
...
GDMA trigger actually is not assigned to UART controller, but for UHCI
controller
2023-01-10 16:37:01 +08:00
Armando
5be3c21cfc
adc: improve power logic
2023-01-09 17:10:04 +08:00
Armando
f9da48d94f
rtc: add pwdet and sar adc power related low level func
2023-01-09 17:09:01 +08:00
Armando (Dou Yiwen)
30a535db18
Merge branch 'refactor/move_mspi_timing_tuning_to_esp_hw_support' into 'master'
...
mspi: move timing tuning to esp_hw_support
Closes IDF-6470
See merge request espressif/esp-idf!21912
2023-01-06 18:47:07 +08:00
Konstantin Kondrashov
ffea490cc7
Merge branch 'feature/mac_crc' into 'master'
...
esp_hw_support(esp32): If the MAC_FACTORY CRC check fails, then INVALID_CRC instead of abort
Closes IDFGH-8989
See merge request espressif/esp-idf!21789
2023-01-06 14:50:40 +08:00
Armando
b46cfd15a2
mspi: move timing tuning to esp_hw_support
2023-01-06 14:41:20 +08:00
morris
4f37b0b0a0
Merge branch 'feature/esp32h2_clock_basic_support' into 'master'
...
WIP: clk: Add basic clock support for esp32h2
See merge request espressif/esp-idf!21865
2023-01-05 19:19:22 +08:00
Wan Lei
747214616c
Merge branch 'feature/add_api_spi_slave_trans_in_isr' into 'master'
...
spi_slave: add isr version api to add transaction in isr callback
Closes IDF-6199 and IDF-6049
See merge request espressif/esp-idf!20587
2023-01-05 12:46:01 +08:00
Mahavir Jain
650fa6dba0
Merge branch 'feature/enable_SHA_and_AES_support_for_esp32c6' into 'master'
...
Feature/enable sha and aes support for esp32c6
Closes IDF-5353 and IDF-5356
See merge request espressif/esp-idf!21782
2023-01-04 23:48:34 +08:00
wanlei
971eaa0c08
spi_slave: fix spi_slave_isr iram_safe and add test case for it
2023-01-04 15:35:04 +08:00
Aditya Patwardhan
04a9366694
esp32c6-SHA/AES support: Added sha_ll.h and aes_ll.h files in hal layer
2023-01-04 12:07:26 +05:30
Guillaume Souchere
ebbe24ac09
Merge branch 'feature/re-enable-intr-alloc-test-c2' into 'master'
...
esp-hw-support: Re-enable intr_alloc tests on esp32c2 target
Closes IDF-5061
See merge request espressif/esp-idf!21836
2023-01-04 14:25:05 +08:00
Song Ruo Jing
981d6a67b0
clk: Add basic clock support for esp32h2
2023-01-03 11:00:32 +08:00
Cao Sen Miao
a1285ff4a5
serial_jtag: fix issue that stuck after retart after C6
2023-01-03 10:38:18 +08:00
Guillaume Souchere
b5bacffbd3
esp_hw_support: allow writing in IRAM when CONFIG_ESP_SYSTEM_PMP_IDRAM_SPLIT is not set for esp32C2
...
when CONFIG_ESP_SYSTEM_PMP_IDRAM_SPLIT is not set, the PMP rule for esp32c2 shoud allow write access.
Fix esp_cpu_configure_region_protection() in cpu.c accordingly.
2023-01-02 08:41:16 +01:00
Guillaume Souchere
979525d0d8
esp-hw-support: fix interrupt allocation tests on esp32c2
...
A part of the test 'Can allocate IRAM int only with an IRAM handler' was to
allocate an intr with the handler in RTC memory which is not supported by esp32c2.
A condition was added to prevent this part of the test to execute on esp32c2 targets.
2023-01-02 08:30:20 +01:00
zhangwenxu
0479cce5d9
CI: fix fast template app due to function unused.
2022-12-30 15:25:12 +08:00
Jiang Jiang Jian
c681c92e4c
Merge branch 'feature/bringup_esp32c6_chip_wifi_rebase_master' into 'master'
...
esp_wifi: add basic support for esp32c6
Closes WIFI-5174, WIFI-5175, WIFI-5176, WIFI-5185, WIFI-5188, WIFI-5193, WIFI-5141, WIFI-5157, WIFI-5154, WIFI-5155, WIFI-5156, WIFI-5200, WIFI-5168, WIFI-5160, and WIFI-5214
See merge request espressif/esp-idf!21715
2022-12-30 10:08:29 +08:00
morris
cb7e957cc4
Merge branch 'feature/io_mux_use_pll80_c6' into 'master'
...
io_mux: support change clock source to PLL_F80M
Closes IDF-6342 and IDF-6345
See merge request espressif/esp-idf!21613
2022-12-29 22:06:52 +08:00
Jiang Guang Ming
8464186e67
Merge branch 'bugfix/update_esp_rom_rtc_header' into 'master'
...
update esp rom rtc header
See merge request espressif/esp-idf!21802
2022-12-29 18:16:13 +08:00
morris
672ac58ad5
io_mux: can set different clock source
2022-12-29 14:46:16 +08:00
lvshisheng
bba409eec1
wifi: update wifi libs to support wifi6 features and fix build error
2022-12-29 13:13:35 +08:00
Cao Sen Miao
4713a9a7f2
ESP32H2: Introduce new chip target esp32h2, hello_world example supported
2022-12-29 12:29:14 +08:00
yuexia
58b7fc1d8b
esp32c6: enable wifi
2022-12-29 11:48:35 +08:00
KonstantinKondrashov
185262c283
esp_hw_support(esp32): If the MAC_FACTORY CRC check fails, then esp_efuse_mac_get_default returns INVALID_CRC instead of abort
...
Closes https://github.com/espressif/esp-idf/issues/10401
2022-12-29 05:23:18 +08:00
Wu Zheng Hui
8a095a74d4
Merge branch 'feature/add_ieee8020154_only_caps_for_esp32hx' into 'master'
...
soc: add ieee8020154_ble_only cap for esp32hx
See merge request espressif/esp-idf!21824
2022-12-28 20:12:10 +08:00
jiangguangming
fe2984a52d
esp_hw_support: support riscv call
2022-12-28 17:35:12 +08:00
wuzhenghui
3b43b63d47
soc: add ieee8020154_only cap for esp32hx
2022-12-28 16:15:58 +08:00
Michael (XIAO Xufeng)
84a6c6f7d9
Merge branch 'bugfix/rtc_8md256_deepsleep_time_esp32' into 'master'
...
pm: Fixed sleep time inaccurate bug when select 8MD256 as rtc slow clock on ESP32
Closes IDFGH-4893
See merge request espressif/esp-idf!21558
2022-12-28 15:30:01 +08:00
Li Shuai
3ce896429c
periph clock: implemented the modem module enable, disable and reset for esp32c6
2022-12-27 21:31:59 +08:00
Li Shuai
63af1e9631
modem clock(driver): implemented the modem clock driver for esp32c6
2022-12-27 21:31:59 +08:00
wuzhenghui
aa20825659
soc_caps: rename ESP_PD_DOMAIN_RTC8M to ESP_PD_DOMAIN_FOSC
2022-12-27 21:31:21 +08:00
Li Shuai
17f9285524
esp32c6: add SOC_MODEM_CLOCK_IS_INDEPENDENT soc_cap and more pd_caps
2022-12-27 21:31:21 +08:00
cje
a0ed82525e
sleep: fix sleep time inaccurate bug when select 8MD256 as rtc slow clock on ESP32
...
Related to: https://github.com/espressif/esp-idf/issues/6687
2022-12-26 07:19:13 +00:00
laokaiyao
5333ac81bf
adc: support ADC on esp32c6 (driver/test/example)
2022-12-23 11:24:06 +08:00
laokaiyao
7a002ab7a6
rtcio: support rtcio on c6
2022-12-22 14:14:38 +08:00
Michael (XIAO Xufeng)
9aec53e83f
esp32c2: fixed chip revision of ECO2
2022-12-21 15:28:50 +08:00
Mahavir Jain
078835e358
Merge branch 'contrib/github_pr_10391' into 'master'
...
[Docs] specify Digital Signature byte order, and esp_ds_sign() clarification (GitHub PR)
Closes IDFGH-8978
See merge request espressif/esp-idf!21712
2022-12-21 13:59:00 +08:00
Chip Weinberger
d43dd9246f
[Docs] specify Digital Signature byte order, and esp_ds_sign() clarification
2022-12-19 21:30:03 -08:00
Song Ruo Jing
182e937c5a
clk_tree: Add basic clock support for esp32c6
...
- Support SOC ROOT clock source switch
- Support CPU frequency change
- Support RTC SLOW clock source switch
- Support RTC SLOW clock + RC FAST calibration
Remove FPGA build for esp32c6
2022-12-13 19:18:34 +08:00
morris
7064b668c6
Merge branch 'feature/etm_api_update' into 'master'
...
etm: introduce config structure for event/task new functions
See merge request espressif/esp-idf!21483
2022-12-12 13:12:09 +08:00
Jakob Hasse
b36c0e823f
Merge branch 'feature/linux_esp_hw_support' into 'master'
...
linux target: add support for building esp_hw_support, soc and hal components for linux target
See merge request espressif/esp-idf!21502
2022-12-12 09:59:31 +08:00
Marius Vikhammer
4ddbaa4166
linux target: add support for building esp_hw_support, soc and hal components for linux target
2022-12-09 13:59:39 +08:00
Song Ruo Jing
9402ab427b
ledc: Add basic support for esp32c6
2022-12-07 18:40:50 +08:00
morris
5c06e9cf40
etm: update etm event task new API
2022-12-07 15:43:20 +08:00
Sachin Parekh
7af998d23f
esp32c6: Enable IRAM-DRAM split using PMP
2022-12-06 14:50:55 +00:00
Sachin Parekh
2a01e66b25
esp32s3/memprot: Set permission for Icache region
2022-11-30 13:46:53 +00:00
Song Ruo Jing
56302544f6
Merge branch 'ci/enable_esp32c6_target_test_stage' into 'master'
...
CI: Enable esp32c6 target test stage
Closes IDF-5830 and IDF-5831
See merge request espressif/esp-idf!21010
2022-11-29 19:54:05 +08:00
Konstantin Kondrashov
0786539047
Merge branch 'feature/remove_efuse_dependency' into 'master'
...
esp_hw_support: Removes efuse dependency
Closes IDF-4713
See merge request espressif/esp-idf!21212
2022-11-29 18:12:26 +08:00
Song Ruo Jing
7466ddfa8c
ci: Make consistence between pytest_*.py and .build-test-rules.yml for esp32c6 (i.e. to pass check_test_scripts_build_test_rules.py)
2022-11-28 11:58:30 +08:00
Song Ruo Jing
e13a4ad963
ci: Disable some unit-test-apps for esp32c6 to pass ci build stage
2022-11-28 11:58:30 +08:00
Marius Vikhammer
6a450c4113
Merge branch 'feature/esp_hw_support_pytest' into 'master'
...
esp_hw_support: migrate to pytest
See merge request espressif/esp-idf!20938
2022-11-28 10:38:54 +08:00
KonstantinKondrashov
741e89cbaa
esp_hw_support: Removes efuse dependency
2022-11-25 19:27:33 +08:00
Marius Vikhammer
59e40fafba
esp_hw_support: move test to pytest
2022-11-25 16:21:35 +08:00
Aditya Patwardhan
22ad083ccd
Merge branch 'refactor/merge_esp_ds_code_between_targets' into 'master'
...
Merge esp_ds and hmac_hal layers for different targets
Closes IDF-3803, IDF-6144, and DOC-3973
See merge request espressif/esp-idf!21187
2022-11-25 03:59:18 +08:00
Aditya Patwardhan
aa27abb39b
esp_hw_support/esp_ds: Improve documentation for esp_ds_sign and esp_ds_encrypt_params API
2022-11-24 16:03:30 +05:30
Aditya Patwardhan
ac1f4a263b
esp_hw_support: Merge esp_ds.h file for different targets into one
2022-11-24 16:03:30 +05:30
Aditya Patwardhan
f79d8f9c07
esp_hw_support: Merge esp_ds.c file for different targets into one
2022-11-24 16:03:30 +05:30
Aditya Patwardhan
6a75fe5912
esp_hw_support: Update build system support for mergin esp_ds.c files
...
into one
2022-11-24 16:03:23 +05:30
C.S.M
28b2deaf24
Merge branch 'feature/add_target_esp32h2' into 'master'
...
ESP32-H2: Introduce new target for ESP32H2
See merge request espressif/esp-idf!21190
2022-11-24 18:31:19 +08:00
Aditya Patwardhan
efd05fdebb
esp32c3/esp_ds.c: Fix RSA_LEN_MAX variable
2022-11-24 15:53:51 +05:30
morris
4019e307f1
doc: add api reference for etm driver
2022-11-23 15:32:34 +08:00
morris
356c6bb528
gdma: support etm extension
2022-11-23 15:32:34 +08:00
morris
560ea9b754
systimer: support etm event
2022-11-23 15:32:34 +08:00
morris
00b6ec28b2
gptimer: support etm event and task
2022-11-23 15:31:33 +08:00
morris
494516d5f3
gpio: support etm extension
2022-11-23 15:31:33 +08:00
morris
fb26d0e11f
etm: added etm channel allocator
2022-11-23 15:31:33 +08:00
Cao Sen Miao
86aa4df5b5
ESP32-H2: Introduce new target for ESP32H2
2022-11-23 14:38:05 +08:00
KonstantinKondrashov
ff62e33e2d
esp_hw_support: Fix coverity warnings in mac_addr API
2022-11-18 16:16:55 +08:00
Marius Vikhammer
ffb878964a
Merge branch 'bugfix/c6_chip_info' into 'master'
...
esp-hw-support: update C6 chip info to include 802.15.4 support
See merge request espressif/esp-idf!21129
2022-11-18 09:18:04 +08:00
Konstantin Kondrashov
55578295db
Merge branch 'feature/api_to_define_user_mac_addres' into 'master'
...
esp_hw_support: Adds APIs to define user own MAC addresses without generation from the base MAC address
Closes IDFGH-5534 and IDFGH-8022
See merge request espressif/esp-idf!21036
2022-11-17 15:26:35 +08:00
Marius Vikhammer
f7a0a3040c
esp-hw-support: update C6 chip info to include 802.15.4 support
2022-11-17 14:27:26 +08:00
KonstantinKondrashov
244cf14ea8
esp_hw_support: Adds APIs to define user own MAC addresses without generation from the base MAC address
...
Closes https://github.com/espressif/esp-idf/pull/7261
Closes https://github.com/espressif/esp-idf/issues/9531
2022-11-16 19:23:10 +08:00
Marius Vikhammer
73724b0d41
Merge branch 'bugfix/c2_chip_info_gpio_range' into 'master'
...
hw-support: update C2 chip info to reflect that esp8684 has embedded flash
Closes IDFGH-8735 and IDFGH-8734
See merge request espressif/esp-idf!21064
2022-11-15 20:39:06 +08:00
Jakob Hasse
7fd27f338a
Merge branch 'bugfix/esp_ds_encrypt_param_doc' into 'master'
...
esp_ds: remove requirement of aligned and DMA capable buffer from docs
See merge request espressif/esp-idf!21012
2022-11-14 23:17:35 +08:00
Marius Vikhammer
beeef9df2c
hw-support: update C2 chip info to reflect that esp8684 has embedded flash
...
Closes https://github.com/espressif/esp-idf/issues/10175
2022-11-14 10:12:32 +08:00
Song Ruo Jing
d0a7dc3e9f
gpio: Fix IO hold function related problems
...
1. Fix deep sleep wakeup IOs can not be unhold issue
2. Correct hold related APIs' description
3. Fix gpio_force_hold_all API
docs: Add GPIO wakeup source to sleep_modes doc for ESP32C3 and C2
2022-11-11 20:39:04 +08:00
Armando
aba9f80cd2
partition: use esp_partition_munmap instead of spi_flash_munmap
2022-11-09 20:15:17 +08:00
Kevin (Lao Kaiyao)
5bed8fab49
Merge branch 'refactor/rename_h2_to_h4' into 'master'
...
esp32h2: renaming esp32h2 to esp32h4
Closes IDF-6098
See merge request espressif/esp-idf!20676
2022-11-09 19:19:43 +08:00
Mahavir Jain
b168ba98ae
esp_ds: remove requirement of aligned and DMA capable buffer
...
API `esp_ds_encrypt_params` do not require aligned and DMA capable
output buffer for C3/S3/H2/C6. Implementation in ROM code has been
updated to remove usage of DMA mode.
This commit updates the API documentation.
2022-11-09 15:24:36 +05:30
KonstantinKondrashov
1a9ca94ac6
ci: Fix environment variable IDF_CI_BUILD is not set
2022-11-08 18:23:39 +08:00
laokaiyao
8677216576
esp32h2: renaming esp32h2 to esp32h4
2022-11-08 17:05:33 +08:00
Zim Kalinowski
94c0e3bbe2
Merge branch 'bugfix/share_intr' into 'master'
...
intr_alloc: fixed freed interrupt sources not being able to be allocated again with different flags
See merge request espressif/esp-idf!20936
2022-11-07 18:34:53 +08:00
Michael (XIAO Xufeng)
c546de8d82
Merge branch 'feature/apply_new_version_logic' into 'master'
...
all: Apply new version logic (major * 100 + minor)
Closes IDF-4932 and IDF-4939
See merge request espressif/esp-idf!18787
2022-11-04 16:01:32 +08:00
Marius Vikhammer
1d5d624605
intr_alloc: fixed freed interrupt sources not being able to be allocated again with different flags
...
Mark the vector descriptor source as freed.
2022-11-04 06:39:00 +00:00
Michael (XIAO Xufeng)
f2aa736c7b
esp32c2: put v2.0 back to development stage
2022-11-03 08:36:23 +00:00
KonstantinKondrashov
1f9260d790
all: Apply new version logic (major * 100 + minor)
2022-11-03 08:36:23 +00:00
Martin Vychodil
c9c7573f71
Storage: Partition APIs moved to the new component 'esp_partition'
...
All the partition handling API functions and data-types were moved from the 'spi_flash' component to the new one named 'esp_partition'. See Storage 5.x migration guide for more details
2022-11-02 21:54:45 +01:00
Konstantin Kondrashov
b027332777
Merge branch 'bugfix/time_jump_after_reboot' into 'master'
...
esp_hw_support: Fix time jump after reboot
Closes IDFGH-7930
See merge request espressif/esp-idf!20839
2022-11-02 15:40:20 +08:00
Song Ruo Jing
be0fdfa176
soc: Add a soc cap, SOC_CLK_RC_FAST_D256_SUPPORTED, for whether the target has the RC_FAST_D256 clock
2022-11-01 11:23:26 +08:00
KonstantinKondrashov
ff8b5bc0a7
esp_hw_support: Fix time jump after reboot
...
Closes https://github.com/espressif/esp-idf/issues/9448
2022-10-31 13:57:23 +00:00
Armando
260ee86c37
rtc: united sar peripheral control
2022-10-27 16:51:25 +08:00
Aditya Patwardhan
f9565fd31d
soc/esp_ds.h: Unify esp_ds error codes for all targets
2022-10-27 11:09:25 +05:30
Aditya Patwardhan
1fe32efae6
Add esp_hmac.c file
2022-10-27 11:08:01 +05:30
Aditya Patwardhan
c8a788ca24
esp_hw_support: Merge HMAC source files into one
2022-10-27 10:59:54 +05:30
Aditya Patwardhan
a5f1820120
esp_hw_support: Merge esp_hmac.h file for different targets into one
2022-10-27 10:59:54 +05:30
Jiang Jiang Jian
f191b2f034
Merge branch 'bugfix/fix_xtal_related_rtc_params_for_esp32' into 'master'
...
esp32/rtc: fix xtal unstable in some cases when sleep
Closes ESPCS-869
See merge request espressif/esp-idf!20425
2022-10-26 15:57:48 +08:00
Song Ruo Jing
c8c9ce0a8b
Merge branch 'feature/esp32c6_gpio_support' into 'master'
...
gpio: bringup driver on esp32c6 FPGA
Closes IDF-5870 and IDF-5937
See merge request espressif/esp-idf!20364
2022-10-19 18:44:30 +08:00
Song Ruo Jing
6d24e8bcf4
gpio: Add support for esp32c6
2022-10-18 12:38:36 +08:00
Cao Sen Miao
2c9bb4eb7d
spi_flash: Support select flash mode automatically at run time(Quad flash or Octal flash)
2022-10-18 11:25:35 +08:00
wuzhenghui
6b96534c68
bugfix: esprv_intc_int_set_type() should not use bitmap parameter
2022-10-14 11:31:22 +08:00
jingli
5f60c4345e
esp_hw_support/sleep: remove redundant spinlock protection for deep sleep
2022-10-11 12:11:36 +08:00
jingli
b903a2253b
esp_hw_support/sleep: fix current leakage when hold digital io during deep sleep
2022-10-11 12:11:28 +08:00
jingli
101c2c6c3e
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-09 19:59:24 +08:00
jingli
0a44d09f4f
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-09 19:58:58 +08:00
Michael (XIAO Xufeng)
8282dca796
Merge branch 'bugfix/fix_c3_dig_dibas_limit_bug' into 'master'
...
ESP32C3: Fix system not stable bug when dbias storing in efuse is bigger than 27
Closes IDF-6048
See merge request espressif/esp-idf!20453
2022-10-08 14:56:40 +08:00
Song Ruo Jing
4eab31cb82
esp_hw_support: Fix typo on esp32s3 ets_update_cpu_frequency introduced in 23e37393a7
2022-09-30 20:45:16 +08:00
cje
4dddb6d8e8
fix system not stable bug when dbias storing in efuse is bigger than 27
2022-09-30 19:24:51 +08:00
tgotic
1a73f5c174
intr_alloc: Fixed missing portEXIT_CRITICAL_SAFE
...
Closes https://github.com/espressif/esp-idf/pull/9867
[darian@espressif.com: Updated commit message]
Signed-off-by: Darian Leung <darian@espressif.com>
2022-09-29 14:20:43 +08:00
wuzhenghui
fca7d70e05
esp32c6: add minimal ci support
...
- enable build_template_app
- enable check public headers
- enable g0 components dependency check
2022-09-26 20:32:13 +08:00
wuzhenghui
fbc19fad70
memory_utils: Modify esp_ptr_in_diram_iram to be compatible with esp32c6
2022-09-26 20:32:13 +08:00
wuzhenghui
23e37393a7
esp32c6: add esp_hw_support
2022-09-26 20:32:13 +08:00
Michael (XIAO Xufeng)
eb290ecd12
Merge branch 'doc/usj_sw_reset_alive_bbpll_doc' into 'master'
...
usb_serial_jtag: fixed the docs that we can use usj in sleep modes
See merge request espressif/esp-idf!20096
2022-09-22 15:30:41 +08:00
morris
ff6855c4b1
gdma: migrate ut to pytest
2022-09-22 10:44:57 +08:00
Michael (XIAO Xufeng)
a0bf87ee5d
usb_serial_jtag: fixed the docs that we can use usj in sleep modes
...
Related to: https://github.com/espressif/esp-idf/issues/8507 , https://github.com/espressif/esp-idf/issues/8884
2022-09-22 01:36:06 +08:00
jingli
05a2fbe810
esp_hw_support/clk_cali: fix xtal32k error detect
2022-09-21 03:03:25 +00:00
Linda
4723974419
docs: update gpios serving as wakeup source in esp32s2 and esp32s3
2022-09-16 11:23:53 +00:00
Omar Chebib
53c7dd4efc
WDT: implement interrupt wdt and task wdt for ESP32-C2
...
ESP32-C2 has a single group timer, thus it will use it for the interrupt watchdog,
which is more critical than the task watchdog. The latter is implement in
software thanks to the `esp_timer`component.
2022-09-15 14:37:59 +08:00
Pavlo Hamov
726e985b34
adc: esp32s2: fix unit to offset calculation
...
eFuse offset is screwed up on 4.4 to 5.0 transition
Closes https://github.com/espressif/esp-idf/issues/9705
Closes https://github.com/espressif/esp-idf/pull/9715
2022-09-06 20:35:39 +08:00
wuzhenghui
82ffe7e438
replacing reset by register operations with ROM interfaces to decouple the effects of register name changes
2022-08-31 01:59:36 +00:00
Armando
2d44dc1eed
mmu: driver framework, for vaddr maintenance
...
This commit gives basic mmu driver framework. Now it is able to maintain
mmu virtual address usage on esp32, esp32s2 and esp32s3. Usage to
external virtual address should rely on mmu functions to know which
address range is available, instead of hardcoded.
This commit also improves psram memory that is added to the heap
allocator. Now it's added to the heap, according to the memory
alignment.
Closes https://github.com/espressif/esp-idf/issues/8295
2022-08-26 17:59:06 +08:00
Michael (XIAO Xufeng)
bc0ccd9b6d
Merge branch 'bugfix/rtc_periph_ulp_touch' into 'master'
...
sleep_modes: allow using touch/ULP with RTC_PERIPH domain (including EXT0 wakeup source)
Closes IDF-4528
See merge request espressif/esp-idf!19209
2022-08-25 12:27:29 +08:00
Michael (XIAO Xufeng)
aff90b9853
sleep_modes: allow using touch/ULP with RTC_PERIPH domain (including EXT0 wakeup source)
2022-08-25 12:27:28 +08:00
Mahavir Jain
0d5f3081ac
Merge branch 'contrib/github_pr_8224' into 'master'
...
Reduce error log when calling esp_efuse_mac_get_custom() (GitHub PR)
Closes IDFGH-6580
Closes https://github.com/espressif/esp-idf/pull/8224
See merge request espressif/esp-idf!19705
2022-08-24 14:40:02 +08:00
Marius Vikhammer
7a900bad7f
docs: fix documentation wrongly stating ESP_SLEEP_WAKEUP_GPIO is light sleep only
...
ESP_SLEEP_WAKEUP_GPIO is also a valid deep sleep wakeup cause on targets
with SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP
Closes https://github.com/espressif/esp-idf/issues/9567
2022-08-23 16:16:43 +08:00
0xFEEDC0DE64
f16d8a3e54
Reduced error log when calling esp_efuse_mac_get_custom()
2022-08-23 04:35:34 +00:00
Michael (XIAO Xufeng)
0a2e5a7774
Merge branch 'feat/support_esp32c2_uart' into 'master'
...
uart: update console docs about frequency for ESP32-C2, move frequency of clock sources out of HAL
Closes IDF-5424 and IDF-4332
See merge request espressif/esp-idf!19274
2022-08-22 14:24:26 +08:00
Michael (XIAO Xufeng)
e7dbfd65cb
Merge branch 'feature/support_7.2.8_soc/pvt-dig' into 'master'
...
rtc: auto adjust LDO voltage based on pvt-dig saved in efuse
Closes IDF-4873
See merge request espressif/esp-idf!16365
2022-08-22 11:43:07 +08:00
songruojing
304a8f142d
esp32c6: introduce the target
...
Add esp32c6 target to tools and Kconfig
Create directories and files that are essential for `idf.py --preview set-target esp32c6`
2022-08-19 11:13:02 +08:00
Jing Li
b51d4dfacd
Merge branch 'bugfix/fix_clk_cali_logic_for_c2' into 'master'
...
esp32c2/clk_cali: fix rtc slow clk cali logic
See merge request espressif/esp-idf!19553
2022-08-17 11:11:19 +08:00
Michael (XIAO Xufeng)
746f4b814c
uart: move frequency of clock sources out of HAL
2022-08-15 18:55:43 +00:00
laokaiyao
62ab4456a8
touch_sleep: complete the support for touch sleep
2022-08-15 20:04:57 +08:00
zlq
80c821a9aa
1.add ldo parameters in efuse table; 2.set ldo based on pvt-efuse; 3.ldo voltage is changed based on cpu freq
2022-08-15 18:03:55 +08:00
jingli
c70094f64a
esp32c2/clk_cali: fix rtc slow clk cali logic
2022-08-15 16:31:54 +08:00
morris
0d881fc9e0
driver: specify the interrupt priority
...
Closes https://github.com/espressif/esp-idf/issues/9520
2022-08-15 14:46:56 +08:00
Darian Leung
a73dd07d12
esp_hw_support: Fix esp_light_sleep_start() deadlock
...
esp_light_sleep_start() will stall the other CPU via esp_ipc_isr_stall_other_cpu(). After stalling the other CPU,
will call esp_clk_... API which themselves take locks. If the other stalled CPU is holding those locks, this will
result in a deadlock.
This commit adds a workaround calling esp_clk_private_lock() to take the lock before stalling the other CPU.
2022-08-10 18:52:32 +08:00
Darian Leung
2a6c6c18f7
esp_hw_support: esp_clk should use spinlock instead of mutex
...
esp_clk used to be protected using _lock_t (i.e., a FreeRTOS Mutex). However, esp_clk API is current called from
from critical sections, thus mutex should not be used (as they can be blocking).
This commit updates esp_clk to use spinlocks for critical sections instead.
2022-08-10 18:52:32 +08:00
Jing Li
c25c254666
Merge branch 'feature/further_support_esp32c2_sleep' into 'master'
...
esp32c2/sleep: further support sleep for esp32c2 with 26MHz XTAL
Closes IDF-5544
See merge request espressif/esp-idf!19017
2022-08-08 13:26:15 +08:00
Michael (XIAO Xufeng)
bba57249ea
Merge branch 'feature/support_7.2.9_soc/pvt_dig' into 'master'
...
esp32c2: support auto adjust LDO voltage based on pvt-dig
Closes IDF-5731 and IDF-4940
See merge request espressif/esp-idf!19267
2022-08-08 12:55:11 +08:00
jingli
ee3423834e
kconfig: refactor xtal freq kconfig to common configuration item
2022-08-05 19:12:29 +08:00
zlq
7d8f10423e
1.add ldo parameters in efuse table; 2.set ldo dbias based on pvt-efuse; 3.add pll cali stop function; 4. add efuse_ocode
2022-08-05 14:24:51 +08:00
Wu Zheng Hui
4c3322ed60
Merge branch 'bugfix/fix_esp32s3_cache_data_memory_wrong_attr' into 'master'
...
bugfix: esp32s3 DCache data memory is retention dma inaccessible
Closes IDFCI-1409, IDFCI-1410, IDFCI-1411, IDFCI-1412, and IDFCI-1413
See merge request espressif/esp-idf!19365
2022-08-05 10:42:52 +08:00
Li Shuai
4afc115397
Power Management: fix the issue of sleeping time error beacause external 32kHz xtal does not exist
2022-08-04 14:01:34 +08:00
Ivan Grokhotkov
401c10ecfb
build system: re-add -Wno-format as private flag for some components
2022-08-03 16:42:47 +04:00
wuzhenghui
3ef46780ef
bugfix: malloc retention buffer with MALLOC_CAP_RETENTION caps
2022-08-03 20:07:43 +08:00
Song Ruo Jing
842efaf753
Merge branch 'bugfix/rtc_fastmem_lpu_c3_h2' into 'master'
...
sleep: fix wrong register access to set/clear rtc fast mem low power mode on c3 and h2
Closes IDF-5746
See merge request espressif/esp-idf!19361
2022-08-03 19:52:24 +08:00
morris
307d26659e
Merge branch 'bugfix/rmt_hw_issue' into 'master'
...
rmt: only use register to control the IDLE state (hardware issue workaround)
See merge request espressif/esp-idf!19344
2022-08-03 17:01:44 +08:00
songruojing
e8915e14e7
esp_hw_support: fix wrong register access to set/clear rtc fast mem low power mode on c3 and h2
2022-08-03 14:33:13 +08:00
morris
45524408df
coverity: fix uninit variable issue in driver
...
Related CID:
389832, 389838, 389880, 286743, 286752, 395156, 291011, 396001, 396002
2022-08-03 10:46:50 +08:00
morris
031adc01c4
gpio: add test with -O0
2022-08-02 23:07:06 +08:00
Jiang Jiang Jian
b885499c74
Merge branch 'refactor/move_common_adc_part_to_hw_support' into 'master'
...
esp_adc: move esp_adc out of g1 dependency list
Closes IDF-5637
See merge request espressif/esp-idf!19159
2022-08-01 15:39:45 +08:00
wuzhenghui
7cb9304b65
Clean IRAM and DRAM address space conversion macros
2022-07-29 17:07:39 +08:00
Armando
5e6a16380a
esp_adc: move adc common hw related code into esp_hw_support
2022-07-28 03:49:48 +00:00
jingli
7211b0a89a
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-07-28 11:10:58 +08:00
morris
5e50ec1d66
systimer: add helper functions to convert between tick and us
2022-07-25 16:08:52 +08:00
Darian
c8ee369a7c
Merge branch 'feature/deprecate-old-cpu-api' into 'master'
...
HAL: Deprecate old CPU/SoC/Interrupt Controller HAL API
Closes IDF-4919 and IDF-5032
See merge request espressif/esp-idf!18987
2022-07-23 00:37:33 +08:00
morris
741b031e83
soc: added SOC_TOUCH_SENSE_SUPPORTED macro
2022-07-22 00:12:36 +00:00
Guillaume Souchere
50a58b4a83
esp_hw_support: Fix formatting of intr_alloc.h and test_panic.c
2022-07-22 00:06:06 +08:00
Guillaume Souchere
0bac33ed41
esp_system: Remove deprecate section from esp_cpu.h
...
- Remove esp_cpu_in_ocd_mode() from esp_cpu.h. Users should call esp_cpu_dbgr_is_attached() instead.
- Remove esp_cpu_get_ccount() from esp_cpu.h. Users should call esp_cpu_get_cycle_count() instead.
- Remove esp_cpu_set_ccount() from esp_cpu.h. Users should call esp_cpu_set_cycle_count() instead.
- Other IDF components updated to call esp_cpu_dbgr_is_attached(), esp_cpu_get_cycle_count() and esp_cpu_set_cycle_count() as well.
2022-07-22 00:06:06 +08:00
Guillaume Souchere
dcae121d80
hal: Deprecate soc_hal.h and soc_ll.h interface
...
This commit marks all functions in soc_hal.h and soc_ll.h as deprecated.
Users should use functions from esp_cpu.h instead.
Also added missing wrap funcions for esp_cpu_stall() in test_panic.c files.
2022-07-22 00:06:06 +08:00
Guillaume Souchere
6005cc9163
hal: Deprecate interrupt_controller_hal.h, cpu_hal.h and cpu_ll.h interfaces
...
This commit marks all functions in interrupt_controller_hal.h, cpu_ll.h and cpu_hal.h as deprecated.
Users should use functions from esp_cpu.h instead.
2022-07-22 00:06:06 +08:00
Darian Leung
781d06af73
esp_hw_support: Remove compare_set.h API
...
This function removes the following legacy atomic CAS functions:
From compare_set.h (file removed):
- compare_and_set_native()
- compare_and_set_extram()
From portmacro.h
- uxPortCompareSet()
- uxPortCompareSetExtram()
Users should call esp_cpu_compare_and_set() instead as this function hides the details
of atomic CAS on internal and external RAM addresses.
Due to the removal of compare_set.h, some missing header includes are also fixed in this commit.
2022-07-22 00:06:06 +08:00
Darian Leung
d37fa7e244
esp_hw_support: Update spinlocks to use esp_cpu_compare_and_set()
...
esp_cpu_compare_and_set() abstracts the atomic compare-and-set instruction by
hiding the details of whether the target variable is in internal or external
RAM. This commit updates "spinlocks.h" as follows:
- esp_cpu_compare_and_set() is now called instead of "compare_set.h"
- Refactored spinlock logic to be more optimized and have more stringent sanity checks
2022-07-22 00:06:06 +08:00
Darian Leung
64117a0c59
esp_system: Fix esp_cpu_compare_and_set()
...
This commit fixes esp_cpu_compare_and_set() in the following ways
- Removed call to esp_ptr_external_ram() as it incurred > 80 CPU cycles (due to multiple nested
function calls, and those functions not being in IRAM). We now check manually if the pointer
is in external RAM for increased speed.
- Fixed infinite wait when attempting to get the external_ram_cas_lock. The function should
return immediatley if any part of the compare and set call fails.
- The preprocessor conditions of esp_cpu_compare_and_set() to depend on CONFIG_SPIRAM instead
of SOC_SPIRAM_SUPPORTED. Even if the target supports SPIRAM, we only need the external RAM
compare and set feature if SPIRAM is enabled.
Also fixed incorrect inclusion of esp_intr_alloc.h in esp_cpu.h
2022-07-22 00:06:06 +08:00
Jing Li
66395a5c00
system/sleep: further fix spi flash/ram current leakage
2022-07-21 19:14:26 +08:00
Ivan Grokhotkov
230e732018
Merge branch 'feature/system_init_priorities' into 'master'
...
esp_system: introduce priorities for startup functions
Closes IDFGH-5683 and IDF-4954
See merge request espressif/esp-idf!18159
2022-07-14 06:22:25 +08:00
Ivan Grokhotkov
02f28ef32a
Merge branch 'bugfix/esp_error_check_func_addr' into 'master'
...
esp_err: two minor issues
Closes IDFGH-7530
See merge request espressif/esp-idf!18665
2022-07-14 04:14:16 +08:00
Mahavir Jain
20e21fb29d
Merge branch 'refactor/remove_rom_deps' into 'master'
...
RFC: remove dependency to target-specific ROM headers
Closes IDF-1968
See merge request espressif/esp-idf!18206
2022-07-13 16:44:44 +08:00
Jiang Jiang Jian
b610b47a83
Merge branch 'feature/esp32s3_memprot_additional_improvements' into 'master'
...
[System/Security] Memprot after-merge improvements (v5.0)
Closes IDF-5263 and IDF-5208
See merge request espressif/esp-idf!18893
2022-07-13 15:48:20 +08:00
Jakob Hasse
33a3616635
refactor (bootloader_support, efuse)!: remove target-specific rom includes
...
The following two functions in bootloader_support are private now:
* esp_secure_boot_verify_sbv2_signature_block()
* esp_secure_boot_verify_rsa_signature_block()
They have been moved into private header files
inside bootloader_private/
* Removed bootloader_reset_reason.h and
bootloader_common_get_reset_reason() completely.
Alternative in ROM component is available.
* made esp_efuse.h independent of target-specific rom header
2022-07-13 10:29:02 +08:00
Ivan Grokhotkov
ca7c9947fc
esp_system: fix address printed by ESP_ERROR_CHECK
...
...to point to the calling function, not to _esp_error_check_failed.
2022-07-12 17:01:47 +02:00
Ivan Grokhotkov
0e53b32d2e
esp_hw_support: perform sleep initialization using ESP_SYSTEM_INIT_FN
2022-07-12 16:58:15 +02:00
Song Ruo Jing
ea97cc93ea
Merge branch 'feature/c2_systimer_26mhz' into 'master'
...
esp32c2: 26 MHz XTAL support: Kconfig option, systimer support
Closes IDF-5412 and IDF-5413
See merge request espressif/esp-idf!18835
2022-07-11 16:17:25 +08:00
Marius Vikhammer
6cc871d793
Merge branch 'feature/ulp_riscv_adc' into 'master'
...
ulp-riscv: add support for using ADC as well as an example show-casing it.
Closes IDFGH-7564 and IDF-1714
See merge request espressif/esp-idf!18767
2022-07-11 12:30:31 +08:00
songruojing
ef813b23fa
rtc: esp32c2 support 26MHz xtal in startup code and rtc_clk.c
2022-07-11 12:24:58 +08:00
Marius Vikhammer
e8b5096f52
ulp-riscv: add support for using ADC as well as an example show-casing it.
2022-07-11 09:31:22 +08:00
Martin Vychodil
0c87ae2a91
System/Security: Memprot API unified (ESP32S3)
...
Added missing features and improvements
2022-07-09 22:57:51 +02:00
Ivan Grokhotkov
672e70a023
esp_hw_support: add 26 MHz XTAL option for esp32c2
...
Some esp32c2 boards will be produced with a 26 MHz XTAL. This commit
adds the basic Kconfig option for this type of hardware.
Support for CONFIG_ESP32C2_XTAL_FREQ_26 in other areas of IDF will be
implemented in subsequent commits.
2022-07-08 15:04:17 +08:00
Michael (XIAO Xufeng)
a58362a429
Merge branch 'feature/efuse_rev_major_minor' into 'master'
...
efuse: Adds major and minor versions
See merge request espressif/esp-idf!18255
2022-07-07 11:48:54 +08:00
Song Ruo Jing
b662f4b74f
Merge branch 'feature/support_26M_32M_xtal_bbpll_c2' into 'master'
...
support c2 26M/32M xtal for bbpll
Closes IDF-5485
See merge request espressif/esp-idf!18769
2022-07-06 21:17:52 +08:00
Marius Vikhammer
cf41c255bb
Merge branch 'bugfix/cache_disabled_log_c3' into 'master'
...
esp_hw_support: always inline cpu_hal_set_vecbase to avoid issues at -O0
See merge request espressif/esp-idf!18630
2022-07-06 09:55:20 +08:00
cje
e16165f263
support c2 26M/32M xtal for bbpll
2022-07-05 17:45:03 +08:00
KonstantinKondrashov
0f8ff5aa15
efuse: Adds major and minor versions and others
2022-07-05 14:38:27 +08:00
Martin Vychodil
29c0703d7e
Merge branch 'bugfix/esp32s3_memprot_wrong_check_unicore' into 'master'
...
System/Security: fix missing checks for CPU-count sensitive Memprot APIs (ESP32S3)
Closes IDF-5401
See merge request espressif/esp-idf!18834
2022-07-04 16:41:45 +08:00
Marius Vikhammer
4720607229
Merge branch 'bugfix/c2_mac_address' into 'master'
...
mac addr: fix wrong offset being used for C2 BT mac address
Closes IDF-5046
See merge request espressif/esp-idf!18717
2022-07-04 14:04:13 +08:00
Omar Chebib
7e42038c86
Merge branch 'refactor/move_regi2c_headers' into 'master'
...
Refactor: move regi2c_*.h header files from esp_hw_support to soc component
See merge request espressif/esp-idf!18676
2022-07-04 11:32:30 +08:00
Mahavir Jain
cd1555ec03
Merge branch 'esp32c2_check_ocd_mode' into 'master'
...
esp32c2: check ocd mode before configure memprot
See merge request espressif/esp-idf!18655
2022-07-04 11:22:25 +08:00
Martin Vychodil
ee9aa9a302
System/Security: fix missing checks for CPU-count sensitive Memprot APIs (ESP32S3)
...
Some of the Memory Protection (internal) API functions dealing with per-CPU operations were missing appropriate handling of the CPU count actually configured by CONFIG_FREERTOS_UNICORE. The flaw was fixed across all the places found in the code as the issue was of general type
2022-07-02 20:12:56 +00:00
Cao Sen Miao
a690a87829
spi_flash: Remove legacy spi_flash drivers
2022-07-01 11:01:34 +08:00
Omar Chebib
cd48baf979
Refactor: move regi2c_*.h header files from esp_hw_support to soc component
...
When creating G0 layer, some regi2c_*.h headers were moved out from
esp_hw_support (G1) to soc (G0). In order to be consistent with that change,
move all the remaining regi2c_*.h headers to soc too.
2022-06-30 09:40:44 +00:00