Skip to main content
gfxfloro
Associate III
Nov 21, 2019 12:10 PM UTC
Solved

IDE the culprit for Hard Faults?

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.

This topic has been closed for replies.
Markus GIRDLAND
Markus GIRDLANDBest answer
ST Employee
Nov 22, 2019 8:21 AM UTC

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

6 replies

Markus GIRDLAND
ST Employee
Nov 21, 2019 1:38 PM UTC

What happens if you create a new workspace?

gfxfloro
gfxfloroAuthor
Associate III
Nov 21, 2019 2:21 PM UTC

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

waclawek.jan
Super User
Nov 21, 2019 5:00 PM UTC

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

JW

Pavel A.
Nov 21, 2019 6:29 PM UTC

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

-- pa

Markus GIRDLAND
Markus GIRDLANDBest answer
ST Employee
Nov 22, 2019 8:21 AM UTC

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