Skip to main content
KSOdin2
Associate III
Jan 17, 2022 1:31 PM UTC
Question

Updating the firmware on my STM32H745ZI-Q causes CPU2 not to boot and times out in error_handler(). Is there a way to use an older firmware?

I have updated the firmware on my STM32H745ZI-Q and when I run in debug mode the code runs until:

while((__HAL_RCC_GET_FLAG(RCC_FLAG_D2CKRDY) != RESET) && (timeout-- > 0));

 if ( timeout < 0 )

 {

 Error_Handler();

 }

The code stops in the error handler.

Is there a way to use an older firmware version or is there something I am missing?

This topic has been closed for replies.

2 replies

TDK
Jan 17, 2022 11:41 PM UTC

Debug the M4 core and see where it gets stuck, if anywhere. Ensure option bytes are set so that it boots and a valid program is uploaded for it.

"If you feel a post has answered your question, please click ""Accept as Solution""."
KSOdin2
KSOdin2Author
Associate III
Jan 19, 2022 9:14 AM UTC

That worked perfectly thank you. I just ran debug on the M4 (I was trying to debug the M7) and clicked play. Then went back to the M7 debug and it worked. Thank you again for your help