diff --git a/components/esp_system/port/cpu_start.c b/components/esp_system/port/cpu_start.c index 8073f2023c5..05cf7e5c677 100644 --- a/components/esp_system/port/cpu_start.c +++ b/components/esp_system/port/cpu_start.c @@ -572,6 +572,9 @@ MSPI_INIT_ATTR void sys_rtc_init(const soc_reset_reason_t *rst_reas) #if CONFIG_IDF_TARGET_ESP32P4 #define RWDT_RESET RESET_REASON_CORE_RWDT #define MWDT_RESET RESET_REASON_CORE_MWDT +#elif CONFIG_IDF_TARGET_ESP32S31 +#define RWDT_RESET RESET_REASON_CORE_RWDT +#define MWDT_RESET RESET_REASON_CORE_MWDT0 #else #define RWDT_RESET RESET_REASON_CORE_RTC_WDT #define MWDT_RESET RESET_REASON_CORE_MWDT0 diff --git a/docs/en/api-guides/bootloader.rst b/docs/en/api-guides/bootloader.rst index 5bde5e8a217..4c5863d3877 100644 --- a/docs/en/api-guides/bootloader.rst +++ b/docs/en/api-guides/bootloader.rst @@ -146,11 +146,11 @@ Bootloader Size --------------- {IDF_TARGET_MAX_BOOTLOADER_SIZE:default = "80 KB (0x14000 bytes)", esp32 = "48 KB (0xC000 bytes)", esp32s2, esp32s3, esp32c2, esp32c3, esp32c6, esp32h2, esp32h21, esp32p4 = "64 KB (0x10000 bytes)"} -{IDF_TARGET_MAX_PARTITION_TABLE_OFFSET:default = "0x11000", esp32 = "0xE000", esp32c5, esp32h4 = "0x17000", esp32c61 = "0x15000", esp32p4 = "0x13000"} +{IDF_TARGET_MAX_PARTITION_TABLE_OFFSET:default = "0x11000", esp32 = "0xE000", esp32c5, esp32h4, esp32s31 = "0x17000", esp32c61 = "0x15000", esp32p4 = "0x13000"} .. Above is calculated as: 0x1000 at start of flash + IDF_TARGET_MAX_BOOTLOADER_SIZE + 0x1000 signature sector // for esp32 0x0 at start of flash + IDF_TARGET_MAX_BOOTLOADER_SIZE + 0x1000 signature sector // for esp32s2, esp32s3, esp32c2, esp32c3, esp32c6, esp32c61, esp32h2, esp32h21 - 0x2000 at start of flash + IDF_TARGET_MAX_BOOTLOADER_SIZE + 0x1000 signature sector // for Key Manager supported targets: esp32c5, esp32h4, esp32p4 + 0x2000 at start of flash + IDF_TARGET_MAX_BOOTLOADER_SIZE + 0x1000 signature sector // for Key Manager supported targets: esp32c5, esp32h4, esp32p4, esp32s31 When enabling additional bootloader functions, including :doc:`/security/flash-encryption` or Secure Boot, and especially if setting a high :ref:`CONFIG_BOOTLOADER_LOG_LEVEL` level, then it is important to monitor the bootloader .bin file's size. diff --git a/docs/zh_CN/api-guides/bootloader.rst b/docs/zh_CN/api-guides/bootloader.rst index 83396708e69..50acdd716e2 100644 --- a/docs/zh_CN/api-guides/bootloader.rst +++ b/docs/zh_CN/api-guides/bootloader.rst @@ -146,11 +146,11 @@ ESP-IDF 二级引导加载程序位于 flash 的 {IDF_TARGET_CONFIG_BOOTLOADER_O --------------------- {IDF_TARGET_MAX_BOOTLOADER_SIZE:default = "80 KB (0x14000 字节)", esp32 = "48 KB (0xC000 字节)", esp32s2, esp32s3, esp32c2, esp32c3, esp32c6, esp32h2, esp32h21, esp32p4 = "64 KB (0x10000 字节)"} -{IDF_TARGET_MAX_PARTITION_TABLE_OFFSET:default = "0x11000", esp32 = "0xE000", esp32c5, esp32h4 = "0x17000", esp32c61 = "0x15000", esp32p4 = "0x13000"} +{IDF_TARGET_MAX_PARTITION_TABLE_OFFSET:default = "0x11000", esp32 = "0xE000", esp32c5, esp32h4, esp32s31 = "0x17000", esp32c61 = "0x15000", esp32p4 = "0x13000"} .. Above is calculated as: 0x1000 at start of flash + IDF_TARGET_MAX_BOOTLOADER_SIZE + 0x1000 signature sector // for esp32 0x0 at start of flash + IDF_TARGET_MAX_BOOTLOADER_SIZE + 0x1000 signature sector // for esp32s2, esp32s3, esp32c2, esp32c3, esp32c6, esp32c61, esp32h2, esp32h21 - 0x2000 at start of flash + IDF_TARGET_MAX_BOOTLOADER_SIZE + 0x1000 signature sector // for Key Manager supported targets: esp32c5, esp32h4, esp32p4 + 0x2000 at start of flash + IDF_TARGET_MAX_BOOTLOADER_SIZE + 0x1000 signature sector // for Key Manager supported targets: esp32c5, esp32h4, esp32p4, esp32s31 当需要启用额外的引导加载程序功能,包括 :doc:`/security/flash-encryption` 或安全启动,尤其是设置高级别 :ref:`CONFIG_BOOTLOADER_LOG_LEVEL` 时,监控引导加载程序 .bin 文件的大小变得非常重要。 diff --git a/examples/custom_bootloader/.build-test-rules.yml b/examples/custom_bootloader/.build-test-rules.yml index d6c1b265ae5..e2eb879f50f 100644 --- a/examples/custom_bootloader/.build-test-rules.yml +++ b/examples/custom_bootloader/.build-test-rules.yml @@ -18,10 +18,6 @@ examples/custom_bootloader/bootloader_hooks: - bootloader_support examples/custom_bootloader/bootloader_multiboot: - disable: - - if: IDF_TARGET in ["esp32s31"] - temporary: true - reason: not support yet # TODO: [ESP32S31] IDF-14663 disable_test: - if: IDF_TARGET not in ["esp32s3", "esp32c3"] reason: Testing on two diff architectures is sufficient diff --git a/examples/custom_bootloader/bootloader_multiboot/README.md b/examples/custom_bootloader/bootloader_multiboot/README.md index 8e66635cbb7..5b98c498dba 100644 --- a/examples/custom_bootloader/bootloader_multiboot/README.md +++ b/examples/custom_bootloader/bootloader_multiboot/README.md @@ -1,5 +1,5 @@ -| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-H21 | ESP32-H4 | ESP32-P4 | ESP32-S2 | ESP32-S3 | -| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | --------- | -------- | -------- | -------- | -------- | +| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-H21 | ESP32-H4 | ESP32-P4 | ESP32-S2 | ESP32-S3 | ESP32-S31 | +| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | --------- | -------- | -------- | -------- | -------- | --------- | # Bootloader override