乐鑫技术交流
直播中

张辉

7年用户 1352经验值
私信 关注
[问答]

ESP32 C3下载后提示SHA256校验失败是怎么回事?

下载后反复重启,提示SHA256校验失败

错误日志:

I (113) boot:  2 factory          factory app      00 00 00010000 00100000

I (120) boot: End of partition table

I (124) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=08f18h ( 36632) map

I (139) esp_image: segment 1: paddr=00018f40 vaddr=3fc8be00 size=01cb4h (  7348) load

I (143) esp_image: segment 2: paddr=0001abfc vaddr=40380000 size=0541ch ( 21532) load

I (154) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=189a8h (100776) map

I (173) esp_image: segment 4: paddr=000389d0 vaddr=4038541c size=06858h ( 26712) load

I (179) esp_image: segment 5: paddr=0003f230 vaddr=50000000 size=00010h (    16) load

I (183) boot: Loaded app from partition at offset 0x10000

I (185) boot: Disabling RNG early entropy source...

I (202) cpu_start: Pro cpu up.

I (850) cpu_start: Pro cpu start user code

I (850) cpu_start: cpu freq: 160000000

I (850) cpu_start: Application information:

I (853) cpu_start: Project name:     template-app

I (858) cpu_start: App version:      1

I (863) cpu_start: Compile time:     Jan  7 2022 17:52:36

I (869) cpu_start: ELF file SHA256:  6fb4adea717aa9a7...

I (875) cpu_start: ESP-IDF:          v4.3.2

I (880) heap_init: Initializing. RAM available for dynamic allocation:

I (887) heap_init: At 3FC8EAF0 len 00031510 (197 KiB): DRAM

I (893) heap_init: At 3FCC0000 len 0001F060 (124 KiB): STACK/DRAM

I (900) heap_init: At 50000010 len 00001FF0 (7 KiB): RTCRAM

I (906) spi_flash: detected chip: generic

I (911) spi_flash: flash io: dio

I (915) sleep: Configure to isolate all GPIO pins in sleep state

I (922) sleep: Enable automatic switching of GPIO sleep configuration

I (929) cpu_start: Starting scheduler.

ESP-ROM:esp32c3-api1-20210207

Build:Feb  7 2021

rst:0x7 (TG0WDT_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)

Saved PC:0x40380082

0x40380082: _panic_handler at vectors.S.obj:?



SPIWP:0xee

mode:DIO, clock div:1

load:0x3fcd6100,len:0x1920

load:0x403ce000,len:0x8d4

load:0x403d0000,len:0x2dc0

SHA-256 comparison failed:

Calculated: 5b22f2c8671e99063e16d07d5df3b67838f61966e56775c48551f0b5f27d28b4

Expected: fd47b58dc5c833512bf854099d0c65303c396b06e85e012c609efc23ead39b67

Attempting to boot anyway...

entry 0x403ce000

I (53) boot: ESP-IDF v4.3.2 2nd stage bootloader

I (53) boot: compile time 17:52:45

I (54) boot: chip revision: 3

I (55) boot.esp32c3: SPI Speed      : 80MHz

I (60) boot.esp32c3: SPI Mode       : DIO

I (65) boot.esp32c3: SPI Flash Size : 4MB

W (69) boot.esp32c3: PRO CPU has been reset by WDT.

E (75) boot.esp32c3: WDT reset info dump is not supported yet

I (81) boot: Enabling RNG early entropy source...

I (87) boot: Partition Table:

I (90) boot: ## Label            Usage          Type ST Offset   Length

I (98) boot:  0 nvs              WiFi data        01 02 00009000 00006000

I (105) boot:  1 phy_init         RF data          01 01 0000f000 00001000

I (113) boot:  2 factory          factory app      00 00 00010000 00100000

I (120) boot: End of partition table

I (124) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=08f18h ( 36632) map

I (139) esp_image: segment 1: paddr=00018f40 vaddr=3fc8be00 size=01cb4h (  7348) load

I (143) esp_image: segment 2: paddr=0001abfc vaddr=40380000 size=0541ch ( 21532) load

I (154) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=189a8h (100776) map

I (173) esp_image: segment 4: paddr=000389d0 vaddr=4038541c size=06858h ( 26712) load

I (179) esp_image: segment 5: paddr=0003f230 vaddr=50000000 size=00010h (    16) load

I (183) boot: Loaded app from partition at offset 0x10000

I (185) boot: Disabling RNG early entropy source...

I (202) cpu_start: Pro cpu up.

I (850) cpu_start: Pro cpu start user code

I (850) cpu_start: cpu freq: 160000000

I (850) cpu_start: Application information:

I (853) cpu_start: Project name:     template-app

I (858) cpu_start: App version:      1

I (863) cpu_start: Compile time:     Jan  7 2022 17:52:36

I (869) cpu_start: ELF file SHA256:  6fb4adea717aa9a7...

I (875) cpu_start: ESP-IDF:          v4.3.2

I (880) heap_init: Initializing. RAM available for dynamic allocation:

I (887) heap_init: At 3FC8EAF0 len 00031510 (197 KiB): DRAM

I (893) heap_init: At 3FCC0000 len 0001F060 (124 KiB): STACK/DRAM

I (900) heap_init: At 50000010 len 00001FF0 (7 KiB): RTCRAM

I (906) spi_flash: detected chip: generic

I (911) spi_flash: flash io: dio

I (915) sleep: Configure to isolate all GPIO pins in sleep state

I (922) sleep: Enable automatic switching of GPIO sleep configuration

I (929) cpu_start: Starting scheduler.

更多回帖

发帖
×
20
完善资料,
赚取积分