程序出现InstrFetchProhibited错误

linshc
Posts: 59
Joined: Mon Feb 21, 2022 2:06 am

程序出现InstrFetchProhibited错误

Postby linshc » Mon Sep 18, 2023 1:02 pm

使用的idf版本为IDF-5.1版本,使用的芯片为ESP32s3。正常跑的程序,我注释掉一个log之后,就出现了这个错误,并一直发生重启。此时不断电,等重启发生一段时间后,程序又能正常运行。我用usb-jtag进行调试时,也可以正常运行。
1.请问出现这种情况,应该如何进行排查
2.以下为错误段的跟踪打印,memcpy in ROM是否由这个引起的呢?

Code: Select all

Guru Meditation Error: Core  0 panic'ed (InstrFetchProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x00000000  PS      : 0x00060c30  A0      : 0x82119718  A1      : 0x3fcebf40
A2      : 0x00000000  A3      : 0x3c13fd4c  A4      : 0x00000007  A5      : 0x00000000
A6      : 0xb33fffff  A7      : 0xb33fffff  A8      : 0x8202a3f4  A9      : 0x3fcebf10
A10     : 0x3fcebf50  A11     : 0x00000000  A12     : 0x00000000  A13     : 0x00060c23
A14     : 0xb33fffff  A15     : 0xb33fffff  SAR     : 0x0000001c  EXCCAUSE: 0x00000014
EXCVADDR: 0x00000000  LBEG    : 0x40056f5c  LEND    : 0x40056f72  LCOUNT  : 0x00000000
0x40056f5c: memcpy in ROM

0x40056f72: memcpy in ROM

Backtrace: 0xfffffffd:0x3fcebf40 0x42119715:0x3fcebfc0 0x421191ba:0x3fcebff0 0x4202b6e5:0x3fcec030 0x4202b933:0x3fcec050 0x4202c5d8:0x3fcec070 0x40384889:0x3fcec0a0
0x42119715: handler_execute at C:/Espressif/frameworks/esp-idf-v5.1/components/esp_event/esp_event.c:137

0x421191ba: esp_event_loop_run at C:/Espressif/frameworks/esp-idf-v5.1/components/esp_event/esp_event.c:582 (discriminator 3)

0x4202b6e5: esp_mqtt_dispatch_event at C:/Espressif/frameworks/esp-idf-v5.1/components/mqtt/esp-mqtt/mqtt_client.c:985

0x4202b933: esp_mqtt_dispatch_event_with_msgid at C:/Espressif/frameworks/esp-idf-v5.1/components/mqtt/esp-mqtt/mqtt_client.c:960

0x4202c5d8: esp_mqtt_task at C:/Espressif/frameworks/esp-idf-v5.1/components/mqtt/esp-mqtt/mqtt_client.c:1549

0x40384889: vPortTaskWrapper at C:/Espressif/frameworks/esp-idf-v5.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162

ELF file SHA256: 8b2aa4c346796e58

Rebooting...

Who is online

Users browsing this forum: No registered users and 94 guests