cancel
Showing results for 
Search instead for 
Did you mean: 

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?

KSOdin2
Associate III

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?

2 REPLIES 2
TDK
Guru

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
Associate III

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