mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
arch/xtensa/esp32: Add CONFIG_ESP32_IGNORE_CHIP_REVISION_CHECK
This commit add the option that was missing in the esp32_start.c to ignore the chip version for boards with old ESP32 silicon tape out. Signed-off-by: Alan C. Assis <acassis@gmail.com>
This commit is contained in:
committed by
Alan C. Assis
parent
a3ada5ce30
commit
3bf8b55d64
@@ -207,6 +207,19 @@ config ESP32_RUN_IRAM
|
||||
This loads all of NuttX inside IRAM. Used to test somewhat small
|
||||
images that can fit entirely in IRAM.
|
||||
|
||||
config ESP32_IGNORE_CHIP_REVISION_CHECK
|
||||
bool "Ignore CHIP Revision Check"
|
||||
default n
|
||||
---help---
|
||||
Some old ESP32 chips (before ESP32 ECO V3) has some issues
|
||||
related to PSRAM Cache Bug, 32KHz crystal stability and
|
||||
fault injection regarding security boot. So it is always
|
||||
recommended to use an ESP32 ECO V3 or new chip. However some
|
||||
old boards are still available in the market or in some users'
|
||||
hand and in this case it is necessary to enable this bypass to
|
||||
use this boards.
|
||||
WARNING: Use it only for your own board, not in a product.
|
||||
|
||||
menu "ESP32 Peripheral Selection"
|
||||
|
||||
source "arch/xtensa/src/common/espressif/Kconfig"
|
||||
|
||||
@@ -300,7 +300,7 @@ static noreturn_function void __esp32_start(void)
|
||||
|
||||
if (chip_rev < 300)
|
||||
{
|
||||
#ifndef ESP32_IGNORE_CHIP_REVISION_CHECK
|
||||
#ifndef CONFIG_ESP32_IGNORE_CHIP_REVISION_CHECK
|
||||
ets_printf("ERROR: NuttX supports ESP32 chip revision >= v3.0"
|
||||
" (chip revision is v%" PRId32 ".%01ld)\n",
|
||||
chip_rev / 100, chip_rev % 100);
|
||||
|
||||
Reference in New Issue
Block a user