Skip to main content
Mapyam
Associate II
August 1, 2022
Question

How to solve HardFault or MemManage Handler for STM32H743?

  • August 1, 2022
  • 1 reply
  • 2630 views

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?

This topic has been closed for replies.

1 reply

Pavel A.
August 1, 2022

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.

Mapyam
MapyamAuthor
Associate II
August 4, 2022

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?