OpenOCD debug issue

Sysprogs forums Forums VisualGDB OpenOCD debug issue

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21934
    mattia
    Participant

    Hello,

    I’m debugging the ESP32 using OpenOCD. I did a program with 5 task created, that works without any problem until I try to insert a breakpoint.

    In that case, I often get an error (Received a SIGINT: Interrupt:

    and my Inline GDB Stub Output:

    cpu0: esp32_fetch_all_regs (line 234): DSR (8000CC13) indicates DIR instruction generated an exception!
    Target halted. PRO_CPU: PC=0x400D2587 (active) APP_CPU: PC=0x80004801
    The target is not in the halted nor running stated, stepi/continue ignored.

    ), the program resets and I find myself in the “esp_vApplicationIdleHook()” task, and I can’t go on debugging.

    The problem seems to be related to the breakpoint stop, because otherwise the program keeps increasing my counter without any error. What could it be related? It seems like a watchdog that can’t be stopped in time.

    Thank you,

    Mattia

    #21935
    support
    Keymaster

    Hi,

    Sorry, this doesn’t look like any known issue, so we can only suggest the generic steps to narrow it down. Please try checking if the problem can be reproduced on a basic LEDBlink project. If not, please try comparing the project structure – the created threads, called functions, configuration settings, etc. until you find the setting that triggers the issue.

    You can also try creating a separate thread with just a loop of sleep() calls and see if setting breakpoints there works.

    Let us know your findings and we will try to suggest a workaround.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.