cancel
Showing results for 
Search instead for 
Did you mean: 

IDE the culprit for Hard Faults?

gfxfloro
Senior

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

6 REPLIES 6
Markus GIRDLAND
ST Employee

What happens if you create a new workspace?

gfxfloro
Senior

Seems to me like that worked! Thank you, that saved me a lot of headache

Please select Markus's post as Best, that also marks the thread as solved.

JW

No, please don't close it yet.... How come that a new workspace fixed it? Some debugger settings at workspace level soured?

-- pa

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

Would require for the debugger to mess with the target - and screw it up.