This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 3bf8b55d642e698a25d8f54eaebac6a660e05a42 Author: Alan Carvalho de Assis <[email protected]> AuthorDate: Sat Dec 20 17:56:18 2025 -0300 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 <[email protected]> --- arch/xtensa/src/esp32/Kconfig | 13 +++++++++++++ arch/xtensa/src/esp32/esp32_start.c | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/xtensa/src/esp32/Kconfig b/arch/xtensa/src/esp32/Kconfig index 8144929a69b..3594aa5d27a 100644 --- a/arch/xtensa/src/esp32/Kconfig +++ b/arch/xtensa/src/esp32/Kconfig @@ -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" diff --git a/arch/xtensa/src/esp32/esp32_start.c b/arch/xtensa/src/esp32/esp32_start.c index a7c9f241ccb..0b95dae720e 100644 --- a/arch/xtensa/src/esp32/esp32_start.c +++ b/arch/xtensa/src/esp32/esp32_start.c @@ -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);
