嗨对话小组,
当DA14638提起时,__bkpt(0)ocurrs。
如何分析这种问题。
请帮帮我检查。
谢谢。
__retained_code void hw_watchdog_handle_int(无符号长*异常_args)
{
//由于WDOG超时而达到这一点
uint16_t pmu_ctrl_reg = crg_top-> pmu_ctrl_reg;
pmu_ctrl_reg | =((1 << crg_top_pmu_ctrl_reg_ble_sleep_pos)| / *关闭ble * /
(1 << CRG_TOP_PMU_CTRL_REG_FTDF_SLEEP_POS)|/ *关闭FTDF * /
(1 << CRG_TOP_PMU_CTRL_REG_RADIO_SLEEP_POS)|/ *关闭无线电PD * /
(1 << CRG_TOP_PMU_CTRL_REG_PERIPH_SLEEP_POS));/ *关闭外围电源域* /
crg_top-> pmu_ctrl_reg = pmu_ctrl_reg;
reg_set_bit(crg_top,clk_radio_reg,ble_lp_reset);/ *重置BLE LP定时器* /
#if(dg_configimage_setup == development_mode)
hw_watchdog_freeze();//停止wdog.
启用_debugger;
if(异常_args!= null){
*(valaTile unsigned long *)(status_base)=异常_args [0];// r0.
*(varatile unsigned long *)(status_base + 0x04)= Exception_args [1];// r1.
*(valaTile unsigned long *)(status_base + 0x08)= Exception_args [2];// r2.
*(valaTile unsigned long *)(status_base + 0x0c)=例外[3];// r3.
*(volatile unsigned long *)(status_base + 0x10)=异常_RGS [4];// r12.
*(valatile unsigned long *)(status_base + 0x14)=异常_rgs [5];// lr.
*(valaTile unsigned long *)(status_base + 0x18)= Exception_args [6];// PC.
*(valatile unsigned long *)(status_base + 0x1c)=异常_args [7];// psr.
*(varatile unsigned long *)(status_base + 0x20)=(unsigned long)异常_rgs_args;//堆栈指针
*(volatile unsigned long *)(status_base + 0x24)=(*((varatile unsigned long *)(0xe000ed28))));// cfsr.
*(valatile unsigned long *)(status_base + 0x28)=(*((varatile unsigned long *)(0xe000ed2c)))));// HFSR.
*(valatile unsigned long *)(status_base + 0x2c)=(*((volatile unsigned long *)(0xe000ed30)))));// dfsr.
*(valaTile unsigned long *)(status_base + 0x30)=(*((varatile unsigned long *)(0xe000ed3c)))));// AFSR.
*(volatile unsigned long *)(status_base + 0x34)=(*((volatile unsigned long *)(0xe000ed34))));// mmar.
*(valatile unsigned long *)(status_base + 0x38)=(*((valatile unsigned long *)(0xe000ed38)))));// bfar.
}
hw_cpm_assert_trigger_gpio();
if(reg_getf(crg_top,sys_stat_reg,dbg_is_active)){
__bkpt(0); //在调试时,此停止。
}
否则{
而(1);
}
#else // dg_configimage_setup == development_mode
if(异常_args!= null){
nmi_event_data [0] = nmi_magic_number;
nmi_event_data [1] =异常_args [0];// r0.
nmi_event_data [2] = Exception_args [1];// r1.
nmi_event_data [3] =异常_rgs [2];// r2.
nmi_event_data [4] =异常_RGS [3];// r3.
nmi_event_data [5] =异常_rgs [4];// r12.
nmi_event_data [6] =异常_rgs [5];// lr.
nmi_event_data [7] =异常_RGS [6];// PC.
nmi_event_data [8] =异常_args [7];// psr.
}
//等待重置发生
而(1);
#endif // dg_configimage_setup == development_mode
}
我附着截图。
嗨Xuguodong,
请再次检查您的最后一条评论,然后尝试附加正确的文件 - 这里我们只能为对话产品提供支持。亚博电竞菠菜
关于您的初始问题,请参阅调试技术教程为了分析WDOG ..
谢谢,PM_DIALOG.
谢谢你的剧烈。