雷竞技电竞平台对话半导体客户支持- SDK5.04硬故障 https://support.dialog-semiconductor.com/resource-keywords/sdk504-hardfault 调试下载出错的问题 https://support.dialog-semiconductor.com/%E8%B0%83%E8%AF%95%E4%B8%8B%E8%BD%BD%E5%87%BA%E9%94%99%E7%9A%84%E9%97%AE%E9%A2%98
论坛: href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件-对话框- 9 csmartbond % E2 % % E2 % 80% 80% 9 d % E7%B3%BB % E5 % 88% 97% e4%bd % 8 8 e % E5 % % E8 % 9 f % E8 % 80% 97% 93% 9 E2 % d % E7 % 89% 99% 80% 94% e8%bd % AF % E4%BB % B6”“=“sioc:容器sioc:论坛”属性=“rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件/ /对话框“Smartbond”系列低功耗蓝牙——软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >官网下载的SDK5.04。没改动过,编译ble_app_security工程,调试下载出现以下问题:< / p > < p >如果(DEVELOPMENT_DEBUG) < br / > {< br / > wdg_freeze ();//停止WDOG
SetBits16(SYS_CTRL_REG, DEBUGGER_ENABLE, 1);//启用调试器能够重新加载

*(volatile unsigned long *)(STATUS_BASE) = hardfault_args[0];// R0
*(volatile unsigned long *)(STATUS_BASE + 0x04) = hardfault_args[1];// R1
*(volatile unsigned long *)(STATUS_BASE + 0x08) = hardfault_args[2];// R2
*(volatile unsigned long *)(STATUS_BASE + 0x0C) = hardfault_args[3];// R3
*(volatile unsigned long *)(STATUS_BASE + 0x10) = hardfault_args[4];// R12
*(volatile unsigned long *)(STATUS_BASE + 0x14) = hardfault_args[5]; // LR
*(volatile unsigned long *)(STATUS_BASE + 0x18) = hardfault_args[6]; // PC
*(volatile unsigned long *)(STATUS_BASE + 0x1C) = hardfault_args[7]; // PSR
*(volatile unsigned long *)(STATUS_BASE + 0x20) = (unsigned long)hardfault_args; // Stack Pointer

*(volatile unsigned long *)(STATUS_BASE + 0x24) = (*((volatile unsigned long *)(0xE000ED28))); // CFSR
*(volatile unsigned long *)(STATUS_BASE + 0x28) = (*((volatile unsigned long *)(0xE000ED2C))); // HFSR
*(volatile unsigned long *)(STATUS_BASE + 0x2C) = (*((volatile unsigned long *)(0xE000ED30))); // DFSR
*(volatile unsigned long *)(STATUS_BASE + 0x30) = (*((volatile unsigned long *)(0xE000ED3C))); // AFSR
*(volatile unsigned long *)(STATUS_BASE + 0x34) = (*((volatile unsigned long *)(0xE000ED34))); // MMAR
*(volatile unsigned long *)(STATUS_BASE + 0x38) = (*((volatile unsigned long *)(0xE000ED38))); // BFAR

if ((GetWord16(SYS_STAT_REG) & DBG_IS_UP) == DBG_IS_UP)
__asm("BKPT #0\n"); //调试下载死在这里
else
{
while(1);
}
又试了下SDK5.04的其他工程:app_sleepmode。 编译调试下载没出现这个问题,一切正常。 这个问题是咋回事?

Device: 
2016年8月19日星期五09:51:39 +0000 白菜 4454年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/%E8%B0%83%E8%AF%95%E4%B8%8B%E8%BD%BD%E5%87%BA%E9%94%99%E7%9A%84%E9%97%AE%E9%A2%98#comments