最近产品在运行的时候会进入到hardfault中断中,打印信息如下:
00> <error> hardfault: HARD FAULT at 0x00000000
00> <error> hardfault: R0: 0x00000000 R1: 0x0002A60D R2: 0xCAFEBABE R3: 0xCAFEBABE
00> <error> hardfault: R12: 0x00000000 LR: 0xFFFFFFE9 PSR: 0x20000012
00> <error> hardfault: Cause: The processor has attempted to execute an instruction that makes illegal use of the EPSR.
但我用keil仿真了一天,也没跑进hardfault中断,像hardfault错误一般都是怎么排除的?