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

vsf_simon
Posts: 12
Joined: Mon Nov 02, 2020 7:30 pm

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

Postby vsf_simon » Fri Nov 20, 2020 3:56 pm

esp32_debug.png
esp32_debug.png (152.42 KiB) Viewed 264 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

vsf_simon
Posts: 12
Joined: Mon Nov 02, 2020 7:30 pm

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

Postby vsf_simon » Fri Nov 20, 2020 4:00 pm

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

ESP_igrr
Posts: 1682
Joined: Tue Dec 01, 2015 8:37 am

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

Postby ESP_igrr » Fri Nov 20, 2020 10:08 pm

Hi Simon,
Could you try disabling CONFIG_ESP32S2_MEMPROT_FEATURE in menuconfig? It is under Component Config -> ESP32-S2 specific -> Memory Protection.

Who is online

Users browsing this forum: No registered users and 2 guests