esp-idf/components
Ivan Grokhotkov 6e9d60ef70 rtc_clk_init: handle case when XTAL frequency has already been set
On first reset, ROM code writes the estimated XTAL frequency into
RTC_APB_FREQ_REG (aka STORE5). If the application doesn’t specify exact
XTAL frequency (which is always the case for now), rtc_clk_init will
guess what kind of XTAL is used (26M or 40M), based on the estimated
frequency. Later, detected frequency is written into RTC_XTAL_FREQ_REG
(aka STORE4).

When the application switches clock source to PLL, APB frequency changes
and RTC_APB_FREQ_REG is updated. If the application encounters an RTC
WDT reset, RTC_APB_FREQ_REG will not be updated prior to reset. Once the
application starts up again, it will attempt to auto-detect XTAL
frequency based on RTC_APB_FREQ_REG, which now has value of 80000000.
This will fail, and rtc_clk_xtal_freq_estimate will fall back to the
default value of 26 MHz. Due to an incorrect XTAL frequency, PLL
initialization will also take incorrect path, and PLL will run at a
different frequency. Depending on the application this may cause just
garbage output on UART or a crash (if WiFi is used).
2017-04-21 10:33:58 +08:00
..
app_update Enable checks for encrypted flash in OTA 2017-04-11 19:10:26 +08:00
aws_iot AWS IoT Device SDK Support 2017-03-13 17:23:29 +08:00
bootloader Merge branch 'feature/esp32_d2wd_support' into 'master' 2017-04-14 20:57:39 +08:00
bootloader_support Merge branch 'bugfix/bootloader_error_handling_code' into 'master' 2017-04-13 15:28:49 +08:00
bt component/bt: transfer bluedroid timer events to be handled by BTC task 2017-04-14 18:49:30 +08:00
coap coap: Initialise/update the libcoap submodule 2017-01-10 11:12:02 +11:00
cxx cxx: add iostreams test 2017-01-11 15:03:14 +08:00
driver Fix uart tx function block issue 2017-04-12 16:57:37 +08:00
esp32 Merge branch 'bugfix/tw11779_softAP_crash_when_wifi_connect' into 'master' 2017-04-19 14:34:53 +08:00
espcoredump bugfix: fixed path to esptool when there is no compiled python module for it 2017-03-21 13:30:38 +03:00
esptool_py esptool: Update to include ESP32-D2WD support (and other SPI flash remapping) 2017-04-13 16:25:15 +10:00
ethernet ethernet: Fix typo in log message 2017-03-22 15:22:27 +08:00
expat Build system: Raise warning level 2016-11-16 15:57:34 +11:00
fatfs fatfs: Support for Long Filenames 2017-03-08 09:54:40 +11:00
freertos esp32: Adds functionality for application tracing over JTAG 2017-04-17 23:26:29 +03:00
idf_test component/bt: implement classic Bluetooth profiles A2DP(sink) and AVRCP(controller) 2017-04-10 16:12:21 +08:00
jsmn Add jsmn JSON parser component 2017-03-07 10:18:47 +11:00
json cJSON:Add float format process 2017-01-09 17:51:48 +08:00
log esp32: Adds functionality for application tracing over JTAG 2017-04-17 23:26:29 +03:00
lwip Merge branch 'feature/tw11250_add_tcp_delay_statistics' into 'master' 2017-04-13 15:29:36 +08:00
mbedtls Merge branch 'bugfix/mbedtls_non_blocking_sockets' into 'master' 2017-03-15 10:39:53 +08:00
mdns Add AFL fuzz test 2017-04-05 09:23:09 +03:00
micro-ecc micro-ecc: Add submodule dependency 2016-11-17 09:18:51 +11:00
newlib Merge branch 'feature/deep_sleep_wakeup_from_touch' into 'master' 2017-03-08 14:27:58 +08:00
nghttp components/coap: Add libcoap port for ESP32 platform 2016-12-30 15:05:26 +08:00
nvs_flash nvs: print page state as text in nvs_dump 2017-03-15 17:28:07 +08:00
openssl components/openssl : Fix compilation error when openssl debugging is enabled 2017-02-20 09:45:50 +08:00
partition_table partition_table: update unit test 2017-03-04 17:45:04 +08:00
sdmmc esp32: add [ignore] tag to some unit test cases for CI 2017-01-18 17:08:20 +08:00
soc rtc_clk_init: handle case when XTAL frequency has already been set 2017-04-21 10:33:58 +08:00
spi_flash Merge branch 'feature/esp32_d2wd_support' into 'master' 2017-04-14 20:57:39 +08:00
tcpip_adapter give the AP and STA netifs different names for ease of debugging lwip 2017-04-11 20:40:36 +08:00
ulp ulp: add build system integration and example 2017-03-27 12:41:00 +08:00
vfs docs: use custom roles to generate GitHub links 2017-01-20 17:22:47 +08:00
wpa_supplicant wpa2 enterprise: change the type macro to platform default macro ESP_PLATFORM. 2016-11-25 16:56:09 +08:00
xtensa-debug-module trace: add Kconfig options for app level trace 2017-04-17 22:19:14 +03:00