Skip to main content
XXien.1
Associate
April 10, 2021
Solved

D2 domain clocks are not ready

  • April 10, 2021
  • 1 reply
  • 920 views

Hello,

I've got a STM32H745BI on custom board and I cannot get it working. The program always jumps to the error handler at

while((__HAL_RCC_GET_FLAG(RCC_FLAG_D2CKRDY) != RESET) && (timeout-- > 0));
 if ( timeout < 0 )
 {
 Error_Handler();
 }

I've found in the reference manual that D2CKRDY is D2 domain clocks ready flag, so it's probably some sort of clock issue. I'm using the internal oscillator. What could be wrong? Thanks :)

0693W000008zBggQAE.jpg0693W000008zBglQAE.jpg

This topic has been closed for replies.
Best answer by XXien.1

I've figured it out! The problem was that it is dual code MCU but I have never programmed the second M4 core. So the M7 was waiting for the M4 to initialize, but it never did...

If you have the same problem, the solution si really simple: Just upload empty (default) program to the M4 CPU.

1 reply

XXien.1
XXien.1AuthorBest answer
Associate
April 12, 2021

I've figured it out! The problem was that it is dual code MCU but I have never programmed the second M4 core. So the M7 was waiting for the M4 to initialize, but it never did...

If you have the same problem, the solution si really simple: Just upload empty (default) program to the M4 CPU.