cancel
Showing results for 
Search instead for 
Did you mean: 

hal_delay causes a hard fault

idrissmc
Associate III

hello,

i'm debugging this code suddenly i got a hard fault as shown in the figure:

0693W000002lZSCQA2.png

how can I solve this

11 REPLIES 11

how to solve that clive?

in the stm32f746xx.h I got as you said: DMA2D_BASE is equal to that

Do a "find-in-files" or grep the source files.

Figure out where YOUR CODE is initializing these structures and devices.

Figure out how/when these functions are called.

Perhaps you're randomly calling HAL_DMA2D_DeInit() with a structure that's not viable?

Look for HAL_DMA2D_Init() usage.

There is order and sequence at work here, you can't put the cart in front of the horse, structures need to be set up properly before you call functions that depend on their content.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..