OVMS3-idf/components/bootloader_support
Ivan Grokhotkov 178e5b25e6 bootloader: check previously used clock frequency at run time
In the situation when bootloader was compiled for 240MHz, and app was
compiled for 160MHz, and the chip is a revision 0 chip, the
bootloader will assume that the application has also been running at
240MHz. This will cause the chip to lock up later. Modify this to use
a run time check of DPORT_CPUPERIOD_SEL, which indicates which of the
PLL frequencies was used.

Closes https://github.com/espressif/esp-idf/issues/2731.
2019-02-26 17:02:34 +08:00
..
include bootloader: Add support of anti-rollback 2019-02-14 18:51:43 +08:00
include_bootloader bootloader: account for load address when mapping cache pages 2019-01-19 14:44:55 +08:00
src bootloader: check previously used clock frequency at run time 2019-02-26 17:02:34 +08:00
test bootloader: verify that loaded image does not overlap bootloader code 2018-10-26 12:44:10 +08:00
CMakeLists.txt CMake : Secure Boot support added 2018-11-06 17:09:55 +05:30
component.mk bootloader_support: exclude bootloader_init.c when building app 2018-10-02 01:20:04 +00:00
Makefile.projbuild Secure boot: Correctly re-sign if signing key changes, better error if missing 2016-12-01 23:49:12 -08:00
README.rst Refactor existing bootloader common functionality into bootloader_support component 2016-11-02 17:58:41 +11:00

Bootloader Support Component
============================

Overview
--------

"Bootloader support" contains APIs which are used by the bootloader but are also needed for the main app.

Code in this component needs to be aware of being executed in a bootloader environment (no RTOS available, BOOTLOADER_BUILD macro set) or in an esp-idf app environment (RTOS running, need locking support.)