Skip to main content
gfxfloro
Associate III
November 21, 2019
Solved

IDE the culprit for Hard Faults?

  • November 21, 2019
  • 3 replies
  • 1346 views

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.
Best answer by Markus GIRDLAND

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

3 replies

Markus GIRDLAND
ST Employee
November 21, 2019

What happens if you create a new workspace?

gfxfloro
gfxfloroAuthor
Associate III
November 21, 2019

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

waclawek.jan
Super User
November 21, 2019

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

JW

Pavel A.
Super User
November 21, 2019

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
ST Employee
November 22, 2019

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