cancel
Showing results for 
Search instead for 
Did you mean: 

BSP_LCD & GUI_ Functions cause HardFault

idrissmc
Associate III

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

3 REPLIES 3
TDK
Guru

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".

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

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".