OVMS3-idf/components/bootloader_support/src
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
..
bootloader_clock.c bugfix/rtc_clk_32k_bootstrap: Fix starting 32k RTC 2018-03-21 13:27:56 +05:00
bootloader_flash.c bootloader: Calculate SHA-256 of image while loading/verifying 2017-07-19 18:25:17 +10:00
bootloader_random.c log: Remove non-static TAG variables 2017-12-15 10:59:48 +11:00
bootloader_sha.c bootloader: Calculate SHA256 hash of image on every boot 2017-07-19 18:31:59 +10:00
efuse.c esp32: Add KConfig option to disable ROM Console fallback on first boot 2017-08-29 14:52:00 +10:00
esp_image_format.c secure boot: Fix enabling secure boot on first bootloader boot 2017-08-23 11:19:42 +10:00
flash_encrypt.c flash encryption: Also always disable ROM BASIC console when enabling flash encryption 2017-08-29 14:52:00 +10:00
flash_partitions.c Protect partition table by MD5 checksum 2018-02-05 11:36:03 +01:00
secure_boot.c bootloader: Combine loading from flash & verifying to save boot time 2017-07-19 18:25:17 +10:00
secure_boot_signatures.c bootloader: Calculate SHA256 hash of image on every boot 2017-07-19 18:31:59 +10:00