2022-07-31 09:40 PM
Hello,
I have implemented some source code on my original borad with STM32H743.
(ex. use HAL_UART_DMA, HAL_SAI_DMA, and more.)
I run without Breakpoint, but HardFault occurs.
However, I run with Breakpoint, HardFault does not occur.
According to the Fault exception viewer, HardFault Error Message is "The processor has attempted to execute an undefined instruction (CFSR.UNDEFINSTR)."
What is different with and without breakpoints?
2022-08-01 01:07 AM
Looks like timing issue.
Do you overclock to 480 MHz?
If the program runs off the internal flash, try to increase number of flash wait states.
2022-08-04 06:33 AM
This occurred when frequency was reduced from 480MHz to 400MHz.
I referred to the datasheet and set Flash Latency.
However, the program seems to stop at the same point.
Is there a different cause?