We observe strange behavior of ESP32.
If breakpoint is set then error becomes:
"Guru Meditation Error: Core 0 panic'ed (Cache disabled but cached memory region accessed)."
Or if jtag debugging is used and step over F10 key used - the same behavior.
If running without breakpoints or by F5 in jtag debugging program works correctly.
It has begin yesterday on different PC on different projects.
In earlier times breakpoints worked well.
Log is below:
Code: Select all
I (486) cpu_start: App cpu up.
I (509) cpu_start: Pro cpu start user code
I (509) cpu_start: cpu freq: 160000000
I (509) cpu_start: Application information:
I (514) cpu_start: Project name: h2000_plus_esp
I (519) cpu_start: App version: 72796fbb-dirty
I (525) cpu_start: Compile time: Feb 2 2022 09:38:15
I (531) cpu_start: ELF file SHA256: a5ebd62d977f1dd4...
I (537) cpu_start: ESP-IDF: v4.3.1-dirty
I (542) heap_init: Initializing. RAM available for dynamic allocation:
I (549) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (556) heap_init: At 3FFC62C0 len 00019D40 (103 KiB): DRAM
I (562) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (568) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (575) heap_init: At 400905CC len 0000FA34 (62 KiB): IRAM
I (581) spi_flash: detected chip: generic
I (585) spi_flash: flash io: dio
I (592) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
Re-enable cpu cache.
Guru Meditation Error: Core 0 panic'ed (Cache disabled but cached memory region accessed).
Core 0 register dump:
PC : 0x40081f6c PS : 0x00060634 A0 : 0x8010eaa8 A1 : 0x3ffccfa0
0x40081f6c: esp_dport_access_reg_read at C:/Users/Solynin/Desktop/esp-idf/components/esp32/dport_access.c:242
A2 : 0x00000140 A3 : 0x00000000 A4 : 0x00060023 A5 : 0x00060023
A6 : 0x00000001 A7 : 0x00000001 A8 : 0x80083612 A9 : 0x3ffccf80
A10 : 0x3ff10140 A11 : 0x00000000 A12 : 0x3ffb7730 A13 : 0x00000000
A14 : 0x0000001f A15 : 0x00000000 SAR : 0x00000014 EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0x00000000
Backtrace:0x40081f69:0x3ffccfa0 0x4010eaa5:0x3ffccfc0 0x4010cec6:0x3ffccfe0 0x400d9905:0x3ffcd000 0x4018ca5d:0x3ffcd150
0x40081f69: esp_dport_access_int_abort at C:/Users/Solynin/Desktop/esp-idf/components/esp32/dport_access.c:197
0x4010eaa5: spi_flash_cache2phys at C:/Users/Solynin/Desktop/esp-idf/components/spi_flash/flash_mmap.c:403
0x4010cec6: esp_ota_get_running_partition at C:/Users/Solynin/Desktop/esp-idf/components/app_update/esp_ota_ops.c:556
0x400d9905: app_main at D:/WORK/PROJECTS/esp32_prj/ESP_PRJ/ws/common/main_user.c:282
0x4018ca5d: main_task at C:/Users/Solynin/Desktop/esp-idf/components/freertos/port/port_common.c:133 (discriminator 2)
ELF file SHA256: a5ebd62d977f1dd4
CPU halted.
Errors in openocd log:
Code: Select all
Info : Set GDB target to 'esp32.cpu0'
Error: Failed to get flash maps (4294967295)!
Warn : Failed to get flash mappings (-4)!
Warn : address 0x400d9908 not writable
Error: esp32.cpu0: Failed to write breakpoint instruction (-4)!
Error: esp32.cpu0: Failed to add SW breakpoint!
Error: can't add breakpoint: unknown reason