espressif: Add ESP32-C3 initial basic support
ESP32-C3 target added to the Espressif port, CMakeLists, and
added related files to ESP32-C3 target directory as well.
Signed-off-by: Almir Okato <almir.okato@espressif.com>
diff --git a/boot/espressif/port/esp_loader.c b/boot/espressif/port/esp_loader.c
index 932f2c0..6e8d2cb 100644
--- a/boot/espressif/port/esp_loader.c
+++ b/boot/espressif/port/esp_loader.c
@@ -6,11 +6,14 @@
#include <string.h>
#include <soc/soc.h>
-#include <soc/dport_reg.h>
#include "soc/soc_memory_layout.h"
#include <bootloader_flash.h>
#include <bootloader_flash_priv.h>
+#if defined(CONFIG_IDF_TARGET_ESP32) || defined(CONFIG_IDF_TARGET_ESP32S2)
+#include <soc/dport_reg.h>
+#endif
+
#include "rom/cache.h"
#include "rom/efuse.h"
#include "rom/ets_sys.h"
@@ -87,7 +90,7 @@
}
if (!esp_ptr_in_iram((void *)load_header.entry_addr)) {
- MCUBOOT_LOG_ERR("Application entry point is not in IRAM. Aborting");
+ MCUBOOT_LOG_ERR("Application entry point (0x%x) is not in IRAM. Aborting", load_header.entry_addr);
FIH_PANIC;
}