1, data type default issue caused enter “hard fault during debug”
void HardFault_Handler(void)
{
/* if Hard Fault exception occurs, go to infinite loop */
if(CoreDebug->DHCSR & 1)
{//check c DEBUGEN == 1 -> Debugger connected
__breakpoint(0); //halt program excuation here
}
while (1);
}
1.1 Compile report the below issue
#warning “Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)“

1.2 solution. add setting in keil/ C++
,__FPU_PRESENT,__FPU_USED













![[附源码]计算机毕业设计绿色生活交流社区网站Springboot程序](https://img-blog.csdnimg.cn/0fb4171aa08946cf99bfb84dde599aa2.png)




![[附源码]Python计算机毕业设计Django物业管理系统](https://img-blog.csdnimg.cn/b6ee11bd17c24510aca5f05c84db5b69.png)

