在espressif IDE 2.10下使用IDF5.02,使用官方的例程 hdeeprom,编译后下载,在终端下监视CPU无限重启。终端中相关提示如下:
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xf (SPI_FAST_FLASH_BOOT)
Saved PC:0x40380598
0x40380598: esp_restart_noos_dig at D:/Espressif/frameworks/esp-idf-v5.0.2/components/esp_system/esp_system.c:64 (discriminator 1)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5820,len:0x16a8
load:0x403cc710,len:0x968
load:0x403ce710,len:0x2e78
entry 0x403cc710
I (24) boot: ESP-IDF v5.0.2-dirty 2nd stage bootloader
I (24) boot: compile
time 11:01:27
I (24) boot: chip revision: v0.4
I (26) boot.esp32c3: SPI Speed : 80MHz
I (31) boot.esp32c3: SPI Mode : DIO
I (36) boot.esp32c3: SPI Flash Size : 2MB
I (40) boot: Enabling RNG early entropy source...
I (46) boot: Partition Table:
I (49) boot: ## Label Usage Type ST Offset Length
I (57) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (64) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (72) boot: 2 factory factory app 00 00 00010000 00100000
I (79) boot: End of partition table
I (83) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=09220h ( 37408) map
I (97) esp_image: segment 1: paddr=00019248 vaddr=3fc8da00 size=012f4h ( 4852) load
I (101) esp_image: segment 2: paddr=0001a544 vaddr=40380000 size=05ad4h ( 23252) load
I (113) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=16b74h ( 93044) map
I (131) esp_image: segment 4: paddr=00036b9c vaddr=40385ad4 size=07d70h ( 32112) load
I (141) boot: Loaded app from partition at offset 0x10000
I (142) boot: Disabling RNG early entropy source...
I (153) cpu_start: Pro cpu up.
I (161) cpu_start: Pro cpu start user code
I (162) cpu_start: cpu freq: 160000000 Hz
I (162) cpu_start: Application information:
I (165) cpu_start: Project name: spi_eeprom
I (170) cpu_start: App version: 1
I (174) cpu_start: Compile time: Sep 24 2023 15:10:56
I (180) cpu_start: ELF file SHA256: 14f7f2313a12e02b...
I (186) cpu_start: ESP-IDF: v5.0.2-dirty
I (192) cpu_start: Min chip rev: v0.3
I (196) cpu_start: Max chip rev: v0.99
I (201) cpu_start: Chip rev: v0.4
I (206) heap_init: Initializing. RAM available for dynamic allocation:
I (213) heap_init: At 3FC8FBB0 len 0004CB60 (306 KiB): DRAM
I (219) heap_init: At 3FCDC710 len 00002950 (10 KiB): STACK/DRAM
I (226) heap_init: At 50000020 len 00001FE0 (7 KiB): RTCRAM
I (233) spi_flash: detected chip: generic
I (237) spi_flash: flash io: dio
W (241) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (254) cpu_start: Starting scheduler.
I (259) main: Initializing bus SPI2...
I (259) main: Initializing device...
I (259) gpio: GPIO[10]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (269) main: Write: Hello World!
ESP_ERROR_CHECK failed: esp_err_t 0x107 (ESP_ERR_TIMEOUT) at 0x42006b54
0x42006b54: app_main at H:/esp/ykspace/hd_eeprom/main/spi_eeprom_main.c:112 (discriminator 1)
file: "./main/spi_eeprom_main.c" line 112
func: app_main
expression: ret
abort() was called at PC 0x40386271 on core 0
0x40386271: _esp_error_check_failed at D:/Espressif/frameworks/esp-idf-v5.0.2/components/esp_system/esp_err.c:47
Core 0 register dump:
MEPC : 0x403807ec RA : 0x4038627c SP : 0x3fc92a50 GP : 0x3fc8e200
0x403807ec: panic_abort at D:/Espressif/frameworks/esp-idf-v5.0.2/components/esp_system/panic.c:423
0x4038627c: __ubsan_include at D:/Espressif/frameworks/esp-idf-v5.0.2/components/esp_system/ubsan.c:313
TP : 0x3fc89a94 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130
S0/FP : 0x00000004 S1 : 0x3fc92ab4 A0 : 0x3fc92a7c A1 : 0x3fc92ab2
A2 : 0x00000000 A3 : 0x3fc92aa9 A4 : 0x00000001 A5 : 0x3fc90000
A6 : 0x7a797877 A7 : 0x76757473 S2 : 0x00000000 S3 : 0x00000000
S4 : 0x00000000 S5 : 0x00000000 S6 : 0x00000000 S7 : 0x00000000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x6e6d6c6b T4 : 0x6a696867 T5 : 0x66656463 T6 : 0x62613938
MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000007 MTVAL : 0x00000000
0x40380001: _vector_table at ??:?
MHARTID : 0x00000000
Stack memory:
3fc92a50: 0x3c0254ec 0x42006b58 0x3fc92ab0 0x4038bfce 0x00000001 0x3fc937c8 0x60004000 0x3fc8e63c
0x42006b58: app_main at H:/esp/ykspace/hd_eeprom/main/spi_eeprom_main.c:115
0x4038bfce: abort at D:/Espressif/frameworks/esp-idf-v5.0.2/components/newlib/abort.c:35 (discriminator 3)
3fc92a70: 0x3fc92ab4 0x3fc8e658 0x3fc92ab0 0x726f6261 0x20292874 0x20736177 0x6c6c6163 0x61206465
3fc92a90: 0x43502074 0x34783020 0x36383330 0x20313732 0x63206e6f 0x2065726f 0x00000030 0x00000000
3fc92ab0: 0x3fc90030 0x38333034 0x31373236 0x00000000 0x00000000 0x00000000 0x00000000 0x40386274
0x40386274: esp_system_abort at D:/Espressif/frameworks/esp-idf-v5.0.2/components/esp_system/esp_system.c:152
3fc92ad0: 0x00000000 0x00000000 0x00000000 0x42006b58 0x00000000 0x00000010 0x3fc8fb90 0x4200a2e8
0x42006b58: app_main at H:/esp/ykspace/hd_eeprom/main/spi_eeprom_main.c:115
0x4200a2e8: task_wdt_timer_feed at D:/Espressif/frameworks/esp-idf-v5.0.2/components/esp_system/task_wdt/task_wdt.c:103
3fc92af0: 0x4200a0ee 0x00000001 0x3fc934ac 0x4200a414 0x00000000 0x00000000 0x00000000 0x6c6c6548
0x4200a0ee: task_wdt_isr at D:/Espressif/frameworks/esp-idf-v5.0.2/components/esp_system/task_wdt/task_wdt.c:504
0x4200a414: add_entry at D:/Espressif/frameworks/esp-idf-v5.0.2/components/esp_system/task_wdt/task_wdt.c:204
3fc92b10: 0x6f57206f 0x21646c72 0x00000000 0x3fc937c8 0x00000001 0x0000000a 0x00000002 0x00000001
3fc92b30: 0x00000007 0x00000002 0x00000006 0xffffffff 0xffffffff 0x00000000 0x00000000 0x00000000
3fc92b50: 0x00000000 0x00000020 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x4201602c
0x4201602c: main_task at D:/Espressif/frameworks/esp-idf-v5.0.2/components/freertos/FreeRTOS-Kernel/portable/port_common.c:132 (discriminator 2)
3fc92b70: 0x00000000 0x00001388 0x00000001 0x00000000 0x00000000 0x00000000 0x00000000 0x4038886a
0x4038886a: vPortTaskWrapper at D:/Espressif/frameworks/esp-idf-v5.0.2/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:131
3fc92b90: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fc92bb0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000154 0x3fc929b0 0x00000004 0x3fc8f458
3fc92bd0: 0x3fc8f458 0x3fc92bc4 0x3fc8f450 0x00000018 0x3fc93a5c 0x3fc93a5c 0x3fc92bc4 0x00000000
3fc92bf0: 0x00000001 0x3fc91bc0 0x6e69616d 0x0f0ab900 0x02455cea 0x00cb9033 0x00000000 0x3fc92bb0
3fc92c10: 0x00000001 0x00000000 0x00000000 0x00000000 0x00000000 0x3fc905b0 0x3fc90618 0x3fc90680
3fc92c30: 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000 0x00000000 0x4200c460 0x00000000
0x4200c460: _cleanup_r at ??:?
3fc92c50: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc92c70: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc92c90: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc92cb0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc92cd0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc92cf0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc92d10: 0x00000000 0x3f000000 0x00000600 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fc92d30: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fc92d50: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fc92d70: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fc92d90: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fc92db0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fc92dd0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fc92df0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fc92e10: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fc92e30: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5