【问题标题】:cortex-m3 can't debug. reason - SIGINTcortex-m3 无法调试。原因 - 信号
【发布时间】:2015-04-13 07:24:01
【问题描述】:

我尝试调试 cortex-M3 微控制器。固件中启用了 SysTick 中断。所以我无法调试程序。我得到了什么:

 C:\Users\al\Desktop\eclipse\arm-toolchain\bin>arm-none-eabi-gdb.exe ../../work_d
    ir/mdr1986be91_94_dev_board/Debug/mdr1986be91_94_dev_board.elf
    GNU gdb (Sourcery G++ Lite 2011.03-42) 7.2.50.20100908-cvs
    ...
    (gdb) target remote localhost:3333
    ...
    (gdb) c
    Continuing.

    Program received signal SIGINT, Interrupt.
    0x0000001c in ?? ()
        at ../Libraries/MDR32F9Qx_StdPeriph_Driver/src/MDR32F9Qx_rst_clk.c:1642
    1642        statusreg = MDR_BKP->REG_0F;
    (gdb)

发生中断时停止调试。如何解决?

【问题讨论】:

  • OpenOCD 配置和.gdbinit 中有什么?
  • GDBinit 文件为空。配置文件为:source [find interface/ftdi/olimex-arm-usb-ocd-h.cfg] source [find target/mdr32f9q2i.cfg]

标签: gdb cortex-m3


【解决方案1】:

您可以使用句柄命令告诉调试器不要停止在某些信号上。所以你的情况是:

处理 SIGINT nostop

更多信息in gdb manual

【讨论】:

  • 感谢您的回答。如果我设置 nostop 命令,我将进入循环:程序收到信号 SIGINT,中断。 mdr32f9q2i.cpu -- 双重故障后清除锁定
  • 我面临同样的问题。似乎在使用 Particle Photon 调试盾和 OpenOCD/GNU 调试器方面我缺少一些东西。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2023-04-05
  • 1970-01-01
  • 1970-01-01
  • 2021-05-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多