2019-11-21 04:10 AM
Hi,
I'm using the F469I-DISCO Board, since a couple of days I can't pause the execution of my program, without it causing a Hard Fault after continuing. I know it doesn't have anything to do with my code, because I took old projects, which ran fine and tried to debug them, and the hard fault handler triggers again.
The Hard Fault Handler reads: Attempt to do exception with bad value in EXEC_RETURN number (INVCP).
PC and LR just point to the last executed function, but since it always occurs in different parts of code, this doesn't really help.
The only thing I could think of was the IDE being at fault, if I remember correctly these things happened, after I set some printf breakpoints, but I removed them all.
Are there any things I can set in the IDE, because even after creating a new project the hard fault gets triggered.
Solved! Go to Solution.
2019-11-22 12:21 AM
My guess would be that something got corrupted in the settings. It might be possible to save the old workspace by deleting all the .pdom files located at:
C:\Users\UserName\STM32CubeIDE\Workspace\.metadata\.plugins\org.eclipse.cdt.core
2019-11-21 05:38 AM
What happens if you create a new workspace?
2019-11-21 06:21 AM
Seems to me like that worked! Thank you, that saved me a lot of headache
2019-11-21 09:00 AM
Please select Markus's post as Best, that also marks the thread as solved.
JW
2019-11-21 10:29 AM
No, please don't close it yet.... How come that a new workspace fixed it? Some debugger settings at workspace level soured?
-- pa
2019-11-22 12:21 AM
My guess would be that something got corrupted in the settings. It might be possible to save the old workspace by deleting all the .pdom files located at:
C:\Users\UserName\STM32CubeIDE\Workspace\.metadata\.plugins\org.eclipse.cdt.core
2019-11-22 12:55 AM
Would require for the debugger to mess with the target - and screw it up.