espressif: Add warning for unsupported chip revision
Added checking and warning for ESP32, ESP32-S2, ESP32-C3, ESP32-S3
unsupported chip revisions on their initialization.
Made respectively changes for build system and documentation.
Signed-off-by: Almir Okato <almir.okato@espressif.com>
diff --git a/boot/espressif/main.c b/boot/espressif/main.c
index 6fe93a2..6e59b00 100644
--- a/boot/espressif/main.c
+++ b/boot/espressif/main.c
@@ -93,7 +93,9 @@
int main()
{
- bootloader_init();
+ if (bootloader_init() != ESP_OK) {
+ FIH_PANIC;
+ }
BOOT_LOG_INF("Enabling RNG early entropy source...");
bootloader_random_enable();