]> granicus.if.org Git - esp-idf/commit
bootloader: workaround for clock switching bug in ESP32 rev. 0
authorIvan Grokhotkov <ivan@espressif.com>
Wed, 14 Jun 2017 09:56:32 +0000 (17:56 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 15 Jun 2017 10:15:35 +0000 (18:15 +0800)
commit75658ee29b67712e0c91d987865e306a89dca0f1
treea4ceda070464303dae9cefb09bb73ee7bc1809a9
parentf114ef4a6aa304b05408768112ba545b6477fd73
bootloader: workaround for clock switching bug in ESP32 rev. 0

In ESP32 rev. 0, switching between 240MHz and 80MHz (even via an
intermediate frequency of 40MHz) may cause the chip to lock up.
The bootloader used to enable 80MHz CPU clock at startup, which could
cause lock up after software reset. With this change, if 240MHz CPU
clock is enabled in menuconfig, bootloader will also use 240MHz to avoid
lock-up.
components/bootloader/src/main/bootloader_start.c