Skip to main content
idrissmc
Associate III
August 26, 2020
Question

BSP_LCD & GUI_ Functions cause HardFault

  • August 26, 2020
  • 1 reply
  • 1723 views

0693W000002lC18QAE.pnghello everyone,

I'm getting this error; when I debug then launch the program, the GUI_ functions cause a hardfault, so I tried to change the main to start with the following (shown in the figure) with the BSP_LCD functions but I get same problem, how can I solve this. In BSP_LCD_Init() ther's no problem.0693W000002lBzCQAU.png

0693W000002lC0eQAE.png

0693W000002lC0yQAE.png

This topic has been closed for replies.

1 reply

TDK
August 26, 2020

Examine SCB registers to figure out the source of the hardfault.

"If you feel a post has answered your question, please click ""Accept as Solution""."
idrissmc
idrissmcAuthor
Associate III
August 26, 2020

Be more specific, There are a variety of registers in that block! And which field/bit I have to examine?

TDK
August 26, 2020
Examine the ones relevant for hard faults. I’m not intending to hold your hand through the process. There are 10 or so registers, it is quite manageable to determine which are relevant and which are not.
"If you feel a post has answered your question, please click ""Accept as Solution""."