Page 1 of 1

复位后,程序正常。JTAG调试就Guru Meditation Error,Memory protection fault是什么原因引起的?

Posted: Fri Nov 20, 2020 3:56 pm
by vsf_simon
esp32_debug.png
esp32_debug.png (152.42 KiB) Viewed 4554 times
程序下载后,按复位是可以正常运行的,并且可以输入命令正确执行
但是通过JTAG调试的时候,openocd读取了一些信息后,会提示drop 'dbg' connection

有时候,串口没多的提示,有时候会提示Guru错误:
Guru Meditation Error: Core 0 panic'ed (Memory protection fault).
Read operation at address 0x50000004 not permitted.

Setting breakpoint at 0x40022340 and returning...

openocd的提示,也是dropped 'gdb' connection

Re: 复位后,程序正常。JTAG调试就Guru Meditation Error,Memory protection fault是什么原因引起的?

Posted: Fri Nov 20, 2020 4:00 pm
by vsf_simon
Debug Console的输出如下:
Remote debugging using :3333
Running executable
0x4009d96a in esp_pm_impl_waiti () at C:/Users/SimonQian/.espressif/esp-idf/components/esp_pm/pm_impl.c:533
533 asm("waiti 0");
Not implemented stop reason (assuming exception): undefined
JTAG tap: esp32s2.cpu tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
esp32s2: Target halted, PC=0x40022340, debug_reason=00000001
esp32s2: Core 0 was reset.
esp32s2: Target halted, PC=0x40000400, debug_reason=00000000
Register cache flushed.


目标芯片是esp32s2

Re: 复位后,程序正常。JTAG调试就Guru Meditation Error,Memory protection fault是什么原因引起的?

Posted: Fri Nov 20, 2020 10:08 pm
by ESP_igrr
Hi Simon,
Could you try disabling CONFIG_ESP32S2_MEMPROT_FEATURE in menuconfig? It is under Component Config -> ESP32-S2 specific -> Memory Protection.