2020-08-27 08:27 AM
hello,
i'm debugging this code suddenly i got a hard fault as shown in the figure:
how can I solve this
2020-08-28 10:23 AM
how to solve that clive?
in the stm32f746xx.h I got as you said: DMA2D_BASE is equal to that
2020-08-28 10:41 AM
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.