OVMS3-idf/components/esp32
Konstantin Kondrashov f7df532ec0 bugfix/rtc_clk_32k_bootstrap: Fix starting 32k RTC
1. External 32kHz crystal is started for too long or it may not start at all. It is often observed at the first start.
2. At the first start, it is possible that the crystal did not start. And the recorded period was recorded as 0. Which led to a division error by zero during the transition to the deep sleep mode (Maybe somewhere else).
3. Added a unit test to test a new method of oscillation an external crystal.
4. Added a new method of oscillating of an external crystal. The legs of the crystal are fed with a 32 kHz frequency.

The new method eliminates these errors.

Added unit test: `\esp-idf\components\soc\esp32\test\test_rtc_clk.c`: `make TEST_COMPONENTS=soc`
- 8 Test starting external RTC crystal. Will pass.

`Bootstrap cycles for external 32kHz crystal` - is specified in the file Kconfig by default 100.

QA tested a new method of oscillation the crystal on 25 boards. The supply of square waves on the crystal showed a 100% result in contrast to the previous method of launching the crystal. After the tests, the old method was deleted.

Closes TW19143
2018-03-21 13:27:56 +05:00
..
hwcrypto hwcrypto: Fix bug with concurrent SHA access 2017-08-25 16:08:03 +10:00
include Fix esp_sleep_wakeup_cause_t docs. Merges https://github.com/espressif/esp-idf/pull/1634 2018-02-20 20:22:14 +01:00
ld freertos: Adds C11 TLS support 2018-02-07 18:46:57 +03:00
lib@b6f1255f23 Bugfix of wpa2 task assert when suddenly disconnect 2018-03-12 21:41:24 +08:00
test watchdog: enable INT WDT unit test 2017-12-01 20:10:26 +08:00
brownout.c brownout detector: enable by default 2017-07-10 17:25:55 +08:00
cache_err_int.c esp32: fix cache error interrupt handler 2017-09-08 09:59:09 +08:00
clk.c bugfix/rtc_clk_32k_bootstrap: Fix starting 32k RTC 2018-03-21 13:27:56 +05:00
component.mk build: Remove explict -lstdc++-psram-workaround 2018-01-11 10:32:02 +11:00
core_dump.c freertos: deprecate XT_CLOCK_FREQ 2017-10-18 14:19:19 +08:00
cpu_start.c Add option to continue running (with less ram) if psram is enabled but not detected 2018-02-12 13:44:11 +08:00
crosscore_int.c crosscore_int: add support for FREQ_SWITCH event 2017-10-18 12:31:38 +08:00
dport_access.c esp32: exclude DPORT-related code in single core mode 2017-09-22 12:07:05 +08:00
dport_panic_highint_hdl.S esp32: exclude DPORT-related code in single core mode 2017-09-22 12:07:05 +08:00
esp_clk_internal.h bugfix/rtc_clk_32k_bootstrap: Fix starting 32k RTC 2018-03-21 13:27:56 +05:00
esp_err_to_name.c Make it easier to look up error messages 2018-02-15 14:19:03 +01:00
esp_err_to_name.c.in Make it easier to look up error messages 2018-02-15 14:19:03 +01:00
esp_timer.c esp_timer: fix for the case when timer is deleted in callback 2017-11-29 11:44:46 +08:00
esp_timer_esp32.c component/esp32: fix esp_timer bug 2018-02-28 10:49:45 +08:00
esp_timer_impl.h esp_timer: add support for frequency scaling 2017-10-18 14:19:18 +08:00
ets_timer_legacy.c wifi/bt coexistence: Fix disabled cache access race when writing to flash 2017-10-16 19:47:33 +08:00
event_default_handlers.c log: Remove non-static TAG variables 2017-12-15 10:59:48 +11:00
event_loop.c esp_event_send: check if the event loop is initialized 2017-06-05 11:01:26 +08:00
fast_crypto_ops.c Add the fast crypto function in supplicant 2017-08-09 21:36:13 +08:00
freertos_hooks.c New Task Watchdog API (Revert of Revert) 2017-11-02 16:47:51 +08:00
gdbstub.c Fix small bug in gdbstub where it sometimes would not return a valid stop reason, timing out gdb. Also clean up the code a bit. 2016-12-02 17:42:11 +08:00
hw_random.c freertos: deprecate XT_CLOCK_FREQ 2017-10-18 14:19:19 +08:00
int_wdt.c Dump the frame of the other core when interrupt watchdog happens 2018-01-18 23:10:29 +00:00
intr_alloc.c Add esp_intr_set_in_iram 2017-12-08 05:46:34 +03:00
ipc.c fix buffer overflow in ipc.c 2017-11-27 18:47:40 +08:00
Kconfig bugfix/rtc_clk_32k_bootstrap: Fix starting 32k RTC 2018-03-21 13:27:56 +05:00
lib_printf.c uart_tx_wait_idle: fix issue with last character not transmitted 2016-12-08 01:42:37 +08:00
libhal.a Initial public version 2016-08-17 23:08:22 +08:00
Makefile.projbuild build: Remove explict -lstdc++-psram-workaround 2018-01-11 10:32:02 +11:00
panic.c Dump the frame of the other core when interrupt watchdog happens 2018-01-18 23:10:29 +00:00
phy.h soc: add source code of rtc_clk, rtc_pm 2017-04-11 15:45:54 +08:00
phy_init.c components/phy: add IRAM_ATTR attribute to the two APIs used in phy calibration 2018-01-26 17:12:59 +08:00
phy_init_data.h component/esp32 : update phy & rtc 2017-10-17 18:02:42 +08:00
pm_esp32.c pm: initial implementation for ESP32 2017-10-18 14:19:16 +08:00
pm_impl.h pm: initial implementation for ESP32 2017-10-18 14:19:16 +08:00
pm_locks.c pm: initial version of power management APIs 2017-10-18 14:19:16 +08:00
pm_trace.c pm: support for tracing using GPIOs 2017-10-18 14:19:18 +08:00
pm_trace.h pm: support for tracing using GPIOs 2017-10-18 14:19:18 +08:00
restore.c esp_system: remove link time dependency on WiFi stack 2017-06-15 18:15:36 +08:00
sleep_modes.c soc/rtc: add function to get/set VDDSDIO configuration 2017-11-03 15:49:09 +08:00
smartconfig.c Refractor smartconfig 2017-09-13 16:55:30 +08:00
smartconfig.h Refractor smartconfig 2017-09-13 16:55:30 +08:00
spiram.c Add option to continue running (with less ram) if psram is enabled but not detected 2018-02-12 13:44:11 +08:00
spiram_psram.c Fix the clock subsystem so it doesn't undo the weird condition spiram_psram.c jams the enable/reset bits of SPI3 in when 80MHz mode is selected anymore 2017-12-19 19:12:58 +08:00
spiram_psram.h Add initial SPI RAM support. This adds support for an ESP-PSRAM32 chip connected to the default flash pins and GPIO 16 and 17. The RAM is mapped to address 0x3F800000, but otherwise ignored by esp-idf as of yet. 2017-09-04 12:05:49 +08:00
stack_check.c esp32: Adds Stack Smashing Protection Feature 2017-11-17 12:08:36 +03:00
system_api.c esp32: remove duplicate definition of system_restore 2018-01-28 19:26:37 +08:00
task_wdt.c watchdogs: make sure timer group peripherals are enabled 2017-12-01 20:10:26 +08:00
wifi_init.c esp32: add power management hooks for WiFi library 2017-10-18 14:19:19 +08:00
wifi_internal.c Allocate some memories in SPIRAM first. 2017-10-13 10:11:24 +08:00