KonstantinKondrashov
0a71dce1ef
reset_reasons: EFUSE_RST is treated as POWERON_RST
...
ESP32 does not have the EFUSE_RST, the rest chips has this reset reason.
2022-06-22 17:56:32 +08:00
KonstantinKondrashov
50606887b2
esp_hw_support: Fix time spent in light sleep when RTC is used for gettimeofday
...
The esp_timer was not advanced correctly.
2022-06-09 14:51:44 +00:00
jingli
8309e3e5ce
esp_hw_support/sleep: fix cannot lightsleep again after a wakeup from ULP
...
Since ulp wakeup signal are connected to ulp int raw(except esp32), we
need to clear ulp int raw before sleep when ulp wakeup enabled. Otherwise,
if the ulp int raw is already set, chip will not sleep properly.
Closes https://github.com/espressif/esp-idf/issues/6229
2022-05-19 23:54:29 +08:00
Jiang Jiang Jian
f60bbf5172
Merge branch 'feature/esp32c3_apptrace_v4.3' into 'release/v4.3'
...
apptrace: refactoring & esp32c3 support (v4.3)
See merge request espressif/esp-idf!17878
2022-05-18 02:09:44 +08:00
Alexey Gerenkov
d06fac5c8b
apptrace: Adds ESP32-C3 support
2022-05-13 16:23:46 +03:00
Michael (XIAO Xufeng)
58f378602f
Merge branch 'feature/usb_serial_default_option_v4.3' into 'release/v4.3'
...
vfs_usb_serial: set secondary selection for making usb port can output under default menu (backport v4.3)
See merge request espressif/esp-idf!18062
2022-05-13 17:24:33 +08:00
Alexey Gerenkov
fa6655cbcf
apptrace: Refactors apptrace for better support various tracing HW
2022-05-13 08:45:31 +00:00
Cao Sen Miao
0f2aa2eae4
vfs_usb_serial: set secondary selection for making usb port can output under default menu
2022-05-12 12:23:35 +08:00
jingli
92ccc5fa95
fix _rtc_slow_length being incorrectly optimized by compiler
2022-05-01 23:22:05 +08:00
Armando
fe5a5284ba
sleep: restore analog calibration registers after waking up from light sleep
...
Closes https://github.com/espressif/esp-idf/issues/8287
Closes https://github.com/espressif/esp-idf/issues/7921
2022-03-07 21:58:42 +08:00
Michael (XIAO Xufeng)
f8e45766b5
sleep: fixed ext1 cannot wakeup via RTCIO >= 18 issue
2022-02-18 11:10:49 +08:00
Cao Sen Miao
9c4b96d63b
USB_SERIAL_JTAG: Fix the issue that there is no rom log when restarting
2022-02-10 10:33:40 +08:00
Michael (XIAO Xufeng)
ab5c956bdf
Merge branch 'bugfix/esp_timer_before_init_v4.3' into 'release/v4.3'
...
esp_timer: allow querying the timer before esp_timer_init is called (backport v4.3)
See merge request espressif/esp-idf!15772
2021-11-24 16:44:56 +00:00
Omar Chebib
e615a9546b
Sleep: fix wrong debug level
...
Fix usage of ESP_LOGD in sleep_modes.c which triggers a panic when
used in debug log level.
* Closes https://github.com/espressif/esp-idf/issues/7942
2021-11-22 16:42:48 +08:00
Ivan Grokhotkov
b5fe84a250
esp_timer: allow querying the timer before esp_timer_init is called
2021-11-02 17:33:07 +08:00
Konstantin Kondrashov
8140b10a16
esp_system: Adds sync of FRC & RTC counters in esp_restart (v4.3)
2021-10-28 17:33:46 +00:00
Konstantin Kondrashov
fa85714845
Systimer reset alternative on S2 (and others) (v4.3)
2021-10-28 08:00:28 +00:00
Mahavir Jain
28f8ac5f12
cpu_start: rename function to add core prefix for more clarity
2021-10-21 08:09:14 +05:30
Mahavir Jain
76e606ab32
cpu_start: let individual core clear its interrupt matrix
...
There was race condition where interrupt entries set by APP cpu core
could have been cleared during PRO cpu startup.
This was causing "cache access error" not being detected for ESP32 APP
CPU core.
This fix allows to NOT modify or clear any entries set by other core
(APP or PRO) and thus avoiding any race conditions during startup code.
2021-10-21 08:03:55 +05:30
morris
eef5add97e
Merge branch 'bugfix/fix_esp32s2_deep_sleep_timer_wake_up_fail_backport_v4.3' into 'release/v4.3'
...
rtc: fix esp32s2 fall into sleep forever when deep-sleep time is set to 0(backport v4.3)
See merge request espressif/esp-idf!13560
2021-10-19 04:44:47 +00:00
Cao Sen Miao
ce9e615679
Merge branch 'feature/esp32c3_usbjtagserial_v4.3' into 'release/v4.3'
...
usb_serial_jtag: support usb_serial_jtag on esp32c3(backport v4.3)
See merge request espressif/esp-idf!15319
2021-10-14 10:38:02 +00:00
Song Ruo Jing
75916a8758
Merge branch 'bugfix/cpu_reset_perip_clk_disable_v4.3' into 'release/v4.3'
...
esp_system: Peripheral clocks faulty become disabled during cpu reset
See merge request espressif/esp-idf!15482
2021-10-13 10:04:13 +00:00
songruojing
023bbe5cb1
esp_system: fix the bug that some peripheral clocks are being disabled during cpu reset for esp32s2, c3, s3
2021-10-12 11:37:17 +08:00
Jeroen Domburg
d6cdb3e0ae
usb_serial_jtag: support usb_serial_jtag on esp32c3
...
USB serial/jtag controller: Add vfs (logging/printf), panic handler, gdb support.
See merge request espressif/esp-idf!12925
2021-10-11 17:34:24 +08:00
Cao Sen Miao
ea06ee1ad6
spi_flash: move the unlock patch to bootloader and add support for GD
2021-10-11 10:52:52 +08:00
Mahavir Jain
c990c8f752
Merge branch 'bugfix/memprot_bad_esp_restart_check_v4.3_3' into 'release/v4.3'
...
System/Security: wrong check of the Memprot feature in esp_restart()/panic_restart() (v4.3)
See merge request espressif/esp-idf!15424
2021-10-10 13:01:23 +00:00
Martin Vychodil
ec6745a137
System/Security: wrong check of the Memprot feature in esp_restart()/panic_restart()
...
esp_restart()/panic_restart() never resets the Digital system (so far required only by the Memprot feature) as there's a typo in the corresponding #define:
it checks CONFIG_ESP_SYSTEM_CONFIG_MEMPROT_FEATURE instead of CONFIG_ESP_SYSTEM_MEMPROT_FEATURE.
Issue fixed.
IDF-4094
2021-10-05 11:58:31 +02:00
Li Shuai
aac59ed5ec
Power Management: add XTAL power domain to control whether external 40MHz xtal is powered down during sleep
2021-09-28 11:21:31 +08:00
Li Shuai
4ef6e37fcb
Power Management: add RTC8M power domain to control whether internal 8m oscillator is powered down during sleep
2021-09-28 11:19:57 +08:00
Li Shuai
3f17cc2ab8
light sleep: fix Flash leakage when its CS pin has no hardware pullup
2021-09-17 16:28:47 +08:00
Li Shuai
acdf49a5ac
light sleep: fix SPIRAM leakage when its CS pin has no hardware pullup
2021-09-17 16:28:47 +08:00
Jiang Jiang Jian
3908360e46
Merge branch 'feature/support_bss_in_psram_for_esp32s2_v4.3' into 'release/v4.3'
...
[system] Allow .bss segment placed in external memory for ESP32-S2 ( backport v4.3)
See merge request espressif/esp-idf!14946
2021-09-15 08:09:42 +00:00
Wu Zheng Hui
4fd6d3deae
Adjust the variable name &
...
Add mapping support for different sizes of spi ram
2021-09-15 16:09:33 +08:00
Mahavir Jain
94667365d3
Merge branch 'esp32c3/override_assert_v4.3' into 'release/v4.3'
...
newlib: Override __assert and __assert_func (v4.3)
See merge request espressif/esp-idf!14685
2021-09-09 13:24:01 +00:00
David Čermák
51f1bc3ced
Merge branch 'bugfix/cmake_compiler_warn_write_string_v4.3' into 'release/v4.3'
...
Build: Fix CMake to pass -Wwrite-string compiler flag if enabled (v4.3)
See merge request espressif/esp-idf!14426
2021-09-09 09:49:33 +00:00
Marius Vikhammer
e741161b2e
Merge branch 'bugfix/renable_unit_tests_v4.3' into 'release/v4.3'
...
ci: enable previously disabled unit tests (v4.3)
See merge request espressif/esp-idf!13775
2021-09-08 09:03:32 +00:00
Sachin Parekh
cc9d354ba8
Update tests for assert and abort
...
- Place panic_abort in IRAM
- Added abort, assert test case in case of cache disabled
- Expect assert instead of abort in a freertos_mutex test
2021-09-08 16:32:09 +08:00
David Cermak
dd1de21216
panic/memprot: Fix minor const string correction on panic print
2021-08-18 19:29:44 +08:00
Martin Vychodil
b04705cfe2
system/security: Memprot bypassing mitigation
...
Check Memprot lock bit(s) during the system startup, abort/reset on any Memprot parts found locked during this phase.
There is no legal reason to disallow the Memprot configuration by the system, so it's either a critical bug in the
application or an malicious attempt to bypass the system security.
Error message is printed before digital system reset.
Closes IDF-2700
2021-08-02 12:18:46 +02:00
Renz Bagaporo
b07276265a
esp32s2: reset systimer clk on startup
2021-07-30 10:13:46 +08:00
Marius Vikhammer
00c304535f
system: enable C3 light sleep related example tests
2021-07-29 09:29:29 +08:00
Marius Vikhammer
0b8ed8d76e
ci: enable previously disabled unit tests
2021-07-29 09:29:29 +08:00
Chen Yi Qun
eb01aaacc7
fix esp32s2 fall into sleep forever when deep-sleep time is set to 0
...
(backport v4.3)
2021-07-19 21:11:04 +08:00
Angus Gratton
1fc288556c
esp_system: Reconfigure the WDTs at the start of the panic handler
...
This is mostly important on ESP32 ECO3 with the
ESP32_ECO3_CACHE_LOCK_FIX, because when we stall the other CPU core
before we disable the TG1 WDT then the first CPU can get stuck
in WDT ISR handle_livelock_int routine waiting for the other CPU.
2021-07-06 09:59:39 +08:00
Ivan Grokhotkov
c836cef1a5
Merge branch 'bugfix/add_exception_emergency_pool_again_4.3' into 'release/v4.3'
...
[esp_system]: added __cxx_eh_arena_size_get again (backport 4.3)
See merge request espressif/esp-idf!14132
2021-06-30 07:30:39 +00:00
Li Shuai
139afb094e
fix wifi mac sleep bug when wifi is initialized multiple times
2021-06-29 10:26:02 +08:00
Jakob Hasse
58583f187e
[esp_system]: added __cxx_eh_arena_size_get again
...
* This function has been accidentally removed.
It is necessary to provide the emergency
exception memory pool size for C++ code.
Since our libstdc++ always has exceptions
enabled, this function must exist here even if
-fno-exception is set for user code.
2021-06-24 12:19:34 +08:00
Marius Vikhammer
8efb2bb1ed
ci: run Example_GENERIC for C3
...
Add support for running example_GENERIC tests for C3 on label.
Fix examples that fail.
2021-05-20 14:32:47 +10:00
Jiang Jiang Jian
e6f96717ff
Merge branch 'bugfix/remove_uart2_c3_v4.3' into 'release/v4.3'
...
uart: remove misleading ld files and soc defs for UART2 (v4.3)
See merge request espressif/esp-idf!13394
2021-05-13 04:11:32 +00:00
Marius Vikhammer
38aa99d63d
soc: merge C3 caps into a single soc_caps.h
2021-05-11 15:20:54 +08:00