4189| 2
|
JPG 图片解码失败 |
1金钱
最佳答案估计是指针出错或者是数据溢出吧
你在HardFault_Handler函数的while前面加上
if (CoreDebug->DHCSR & 1) { //check C_DEBUGEN == 1 -> Debugger Connected
__breakpoint(0); // halt program execution here
}
然后debug,调出call strack窗口,找到HardFault右键show caller code,就能定位到出问题的代码。
| ||
| ||
| ||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-6-8 10:01
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网